fix: table fixed shadow error, close #5996

pull/6019/head
tangjinzhou 2022-10-04 11:15:12 +08:00
parent 23a8368894
commit 775e48d428
1 changed files with 9 additions and 5 deletions

View File

@ -490,11 +490,15 @@ export default defineComponent<TableProps<DefaultRecordType>>({
}, 100); }, 100);
}; };
watch([horizonScroll, () => props.data, () => props.columns], () => { watch(
if (horizonScroll.value) { [horizonScroll, () => props.data, () => props.columns],
triggerOnScroll(); () => {
} if (horizonScroll.value) {
}); triggerOnScroll();
}
},
{ flush: 'post' },
);
const [scrollbarSize, setScrollbarSize] = useState(0); const [scrollbarSize, setScrollbarSize] = useState(0);
useProvideSticky(); useProvideSticky();