From fa84d00a008b0a9709e5578e22056b1626ec84d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com> Date: Thu, 11 Aug 2022 22:44:31 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(component):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=20table=20=E7=BB=84=E4=BB=B6=20height=20=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E6=94=B9=E5=8F=98=E6=97=B6=E5=8D=95=E5=85=83=E6=A0=BC=E9=94=99?= =?UTF-8?q?=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package/component/src/component/table/index.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/package/component/src/component/table/index.vue b/package/component/src/component/table/index.vue index 2197e196..9468b5d3 100644 --- a/package/component/src/component/table/index.vue +++ b/package/component/src/component/table/index.vue @@ -437,6 +437,18 @@ const classes = computed(() => { ]; }); +watch(() => props.height, () => { + nextTick(() => { + getScrollWidth(); + }) +}) + +watch(() => props.maxHeight, () => { + nextTick(() => { + getScrollWidth(); + }) +}) + onMounted(() => { getScrollWidth(); getFixedColumn();