diff --git a/components/vc-table/Table.tsx b/components/vc-table/Table.tsx index 91a7f9a01..5434520de 100644 --- a/components/vc-table/Table.tsx +++ b/components/vc-table/Table.tsx @@ -508,10 +508,17 @@ export default defineComponent<TableProps<DefaultRecordType>>({ }); onUpdated(() => { nextTick(() => { - scrollBodySizeInfo.value = { - scrollWidth: scrollBodyRef.value?.scrollWidth || 0, - clientWidth: scrollBodyRef.value?.clientWidth || 0, - }; + const scrollWidth = scrollBodyRef.value?.scrollWidth || 0; + const clientWidth = scrollBodyRef.value?.clientWidth || 0; + if ( + scrollBodySizeInfo.value.scrollWidth !== scrollWidth || + scrollBodySizeInfo.value.clientWidth !== clientWidth + ) { + scrollBodySizeInfo.value = { + scrollWidth, + clientWidth, + }; + } }); });