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();