fix(Modal): 全屏modal样式问题 #3019 (#3020)

This commit is contained in:
invalid w
2023-09-13 16:32:00 +08:00
committed by GitHub
parent f4149c2f1d
commit 1ac8c56c6b
2 changed files with 4 additions and 4 deletions

View File

@@ -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"
@@ -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']);
}

View File

@@ -13,7 +13,7 @@
}
}
.vben-basic-modal .ant-modal {
.vben-basic-modal-wrap .ant-modal {
width: 520px;
padding-bottom: 0;