From 051ba684ca40bd6912a1b2a9a3ab46e7eeada6d0 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:54:17 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(component):=20update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../component/src/component/table/index.vue | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/package/component/src/component/table/index.vue b/package/component/src/component/table/index.vue index 9468b5d3..bc12613a 100644 --- a/package/component/src/component/table/index.vue +++ b/package/component/src/component/table/index.vue @@ -437,17 +437,23 @@ const classes = computed(() => { ]; }); -watch(() => props.height, () => { - nextTick(() => { - getScrollWidth(); - }) -}) +watch( + () => props.height, + () => { + nextTick(() => { + getScrollWidth(); + }); + } +); -watch(() => props.maxHeight, () => { - nextTick(() => { - getScrollWidth(); - }) -}) +watch( + () => props.maxHeight, + () => { + nextTick(() => { + getScrollWidth(); + }); + } +); onMounted(() => { getScrollWidth();