From ce480c5d664d03536c2077fdb469e57c0fbf79a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=89=8D=E7=AB=AF=E7=88=B1=E7=A0=81=E5=A3=AB?= Date: Sat, 4 Mar 2023 14:08:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3BasicModal=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E5=8A=A8=E6=80=81:wrapClassName=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E8=A2=ABuseFullScreen=20hooks=E8=A6=86=E7=9B=96=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(#2598)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Modal/src/BasicModal.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Modal/src/BasicModal.vue b/src/components/Modal/src/BasicModal.vue index 89bc8798c..959e6db62 100644 --- a/src/components/Modal/src/BasicModal.vue +++ b/src/components/Modal/src/BasicModal.vue @@ -139,8 +139,9 @@ ...attrs, ...unref(getMergeProps), visible: unref(visibleRef), - wrapClassName: unref(getWrapClassName), }; + attr['wrapClassName'] = `${attr?.['wrapClassName'] || ''} ${unref(getWrapClassName)}`; + if (unref(fullScreenRef)) { return omit(attr, ['height', 'title']); }