From 617b01338cf4a8d88da529dae7da878b52b30c3b Mon Sep 17 00:00:00 2001 From: xachary <179740385@qq.com> Date: Thu, 23 Nov 2023 09:10:21 +0800 Subject: [PATCH] fix: fullscreen-modal width wrong (#3321) * fix: fullscreen-modal width wrong * fix: ModalWrapper expose setModalHeight missing --- src/components/Modal/src/components/ModalWrapper.vue | 2 +- src/components/Modal/src/index.less | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Modal/src/components/ModalWrapper.vue b/src/components/Modal/src/components/ModalWrapper.vue index 392fc10d4..1c3791884 100644 --- a/src/components/Modal/src/components/ModalWrapper.vue +++ b/src/components/Modal/src/components/ModalWrapper.vue @@ -150,5 +150,5 @@ } } - defineExpose({ scrollTop }); + defineExpose({ scrollTop, setModalHeight }); diff --git a/src/components/Modal/src/index.less b/src/components/Modal/src/index.less index 0606feae3..e9df7c9d0 100644 --- a/src/components/Modal/src/index.less +++ b/src/components/Modal/src/index.less @@ -4,10 +4,12 @@ .ant-modal { inset: 0 !important; width: 100% !important; + max-width: 100%; height: 100%; &-content { height: 100%; + overflow: hidden; } }