We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0475288 commit cb6d0bdCopy full SHA for cb6d0bd
components/vc-table/Table.tsx
@@ -508,10 +508,17 @@ export default defineComponent<TableProps<DefaultRecordType>>({
508
});
509
onUpdated(() => {
510
nextTick(() => {
511
- scrollBodySizeInfo.value = {
512
- scrollWidth: scrollBodyRef.value?.scrollWidth || 0,
513
- clientWidth: scrollBodyRef.value?.clientWidth || 0,
514
- };
+ const scrollWidth = scrollBodyRef.value?.scrollWidth || 0;
+ const clientWidth = scrollBodyRef.value?.clientWidth || 0;
+ if (
+ scrollBodySizeInfo.value.scrollWidth !== scrollWidth ||
515
+ scrollBodySizeInfo.value.clientWidth !== clientWidth
516
+ ) {
517
+ scrollBodySizeInfo.value = {
518
+ scrollWidth,
519
+ clientWidth,
520
+ };
521
+ }
522
523
524
0 commit comments