Skip to content

Commit 775e48d

Browse files
committed
fix: table fixed shadow error, close #5996
1 parent 23a8368 commit 775e48d

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

components/vc-table/Table.tsx

+9-5
Original file line numberDiff line numberDiff line change
@@ -490,11 +490,15 @@ export default defineComponent<TableProps<DefaultRecordType>>({
490490
}, 100);
491491
};
492492

493-
watch([horizonScroll, () => props.data, () => props.columns], () => {
494-
if (horizonScroll.value) {
495-
triggerOnScroll();
496-
}
497-
});
493+
watch(
494+
[horizonScroll, () => props.data, () => props.columns],
495+
() => {
496+
if (horizonScroll.value) {
497+
triggerOnScroll();
498+
}
499+
},
500+
{ flush: 'post' },
501+
);
498502

499503
const [scrollbarSize, setScrollbarSize] = useState(0);
500504
useProvideSticky();

0 commit comments

Comments
 (0)