Skip to content

Commit

Permalink
fix(Modal): 全屏modal样式问题 #3019 (#3020)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjue666 committed Sep 13, 2023
1 parent f4149c2 commit 1ac8c56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/Modal/src/BasicModal.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<Modal v-bind="getBindValue" @cancel="handleCancel" wrapClassName="vben-basic-modal">
<Modal v-bind="getBindValue" @cancel="handleCancel">
<template #closeIcon v-if="!$slots.closeIcon">
<ModalClose
:canFullscreen="getProps.canFullscreen"
Expand Down Expand Up @@ -140,8 +140,8 @@
...unref(getMergeProps),
open: unref(openRef),
};
attr['wrapClassName'] = `${attr?.['wrapClassName'] || ''} ${unref(getWrapClassName)}`;
attr['wrapClassName'] =
`${attr?.['wrapClassName'] || ''} ${unref(getWrapClassName)}` + 'vben-basic-modal-wrap';
if (unref(fullScreenRef)) {
return omit(attr, ['height', 'title']);
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Modal/src/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}
}

.vben-basic-modal .ant-modal {
.vben-basic-modal-wrap .ant-modal {
width: 520px;
padding-bottom: 0;

Expand Down

0 comments on commit 1ac8c56

Please sign in to comment.