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