From aa03c87383c703ddce7759bd7ba114709f2f5241 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=B0=8F=E6=B0=91?= Date: Tue, 10 Oct 2023 11:39:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20ScrollContainer=E7=9A=84=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E9=97=AE=E9=A2=98=20#3046=20(#3119)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Container/src/ScrollContainer.vue | 10 +++++++++- .../Modal/src/components/ModalWrapper.vue | 12 ++++++------ src/components/Scrollbar/src/Scrollbar.vue | 14 ++++++++++++++ 3 files changed, 29 insertions(+), 7 deletions(-) diff --git a/src/components/Container/src/ScrollContainer.vue b/src/components/Container/src/ScrollContainer.vue index ca190034540..2580eec9aa8 100644 --- a/src/components/Container/src/ScrollContainer.vue +++ b/src/components/Container/src/ScrollContainer.vue @@ -1,5 +1,10 @@ @@ -13,6 +18,9 @@ export default defineComponent({ name: 'ScrollContainer', components: { Scrollbar }, + props: { + scrollHeight: { type: Number }, + }, setup() { const scrollbarRef = ref>(null); diff --git a/src/components/Modal/src/components/ModalWrapper.vue b/src/components/Modal/src/components/ModalWrapper.vue index 3fe44d1b101..9c5ad687afe 100644 --- a/src/components/Modal/src/components/ModalWrapper.vue +++ b/src/components/Modal/src/components/ModalWrapper.vue @@ -1,5 +1,5 @@