Browse Source
fix(BasicModal): 修复BasicModal添加wrapClassName样式异常问题 (#3726)
* fix(BasicModal): 全屏样式异常
* fix(BasicModal): 修复BasicModal添加wrapClassName样式异常问题
* fix(BasicModal): 修复BasicModal添加wrapClassName样式异常问题
pull/3732/head
zhang
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
7 additions and
4 deletions
-
src/components/Modal/src/BasicModal.vue
-
src/components/Modal/src/index.less
|
|
@ -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; |
|
|
|