fix(BasicModal): 修复BasicModal添加wrapClassName样式异常问题 (#3726)
* fix(BasicModal): 全屏样式异常 * fix(BasicModal): 修复BasicModal添加wrapClassName样式异常问题 * fix(BasicModal): 修复BasicModal添加wrapClassName样式异常问题
This commit is contained in:
parent
c9966b1f13
commit
13b031eef9
|
|
@ -151,8 +151,11 @@
|
||||||
...unref(getMergeProps),
|
...unref(getMergeProps),
|
||||||
open: unref(openRef),
|
open: unref(openRef),
|
||||||
};
|
};
|
||||||
attr['wrapClassName'] =
|
if (attr?.['wrapClassName'] === unref(getWrapClassName)) {
|
||||||
`${attr?.['wrapClassName'] || ''} ${unref(getWrapClassName)}` + 'vben-basic-modal-wrap';
|
attr['wrapClassName'] = `${attr?.['wrapClassName'] || ''} ` + prefixCls;
|
||||||
|
} else {
|
||||||
|
attr['wrapClassName'] = `${unref(getWrapClassName) || ''}` + prefixCls;
|
||||||
|
}
|
||||||
if (unref(fullScreenRef)) {
|
if (unref(fullScreenRef)) {
|
||||||
return omit(attr, ['height', 'title']);
|
return omit(attr, ['height', 'title']);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
@prefix-cls: ~'@{namespace}-basic-modal-wrap';
|
@modal-prefix-cls: ~'@{namespace}-basic-modal';
|
||||||
|
|
||||||
.fullscreen-modal {
|
.fullscreen-modal {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.@{prefix-cls} {
|
.@{modal-prefix-cls} {
|
||||||
.ant-modal {
|
.ant-modal {
|
||||||
width: 520px;
|
width: 520px;
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue