Commit ce480c5d664d03536c2077fdb469e57c0fbf79a1
Committed by
GitHub
1 parent
7f5e415d
fix: 解决BasicModal弹窗动态:wrapClassName属性被useFullScreen hooks覆盖的问题 (#2598)
Showing
1 changed file
with
2 additions
and
1 deletions
src/components/Modal/src/BasicModal.vue
@@ -139,8 +139,9 @@ | @@ -139,8 +139,9 @@ | ||
139 | ...attrs, | 139 | ...attrs, |
140 | ...unref(getMergeProps), | 140 | ...unref(getMergeProps), |
141 | visible: unref(visibleRef), | 141 | visible: unref(visibleRef), |
142 | - wrapClassName: unref(getWrapClassName), | ||
143 | }; | 142 | }; |
143 | + attr['wrapClassName'] = `${attr?.['wrapClassName'] || ''} ${unref(getWrapClassName)}`; | ||
144 | + | ||
144 | if (unref(fullScreenRef)) { | 145 | if (unref(fullScreenRef)) { |
145 | return omit(attr, ['height', 'title']); | 146 | return omit(attr, ['height', 'title']); |
146 | } | 147 | } |