fix: table fixed shadow error, close #5996

This commit is contained in:
tangjinzhou 2022-10-04 11:15:12 +08:00
parent 23a8368894
commit 775e48d428

View File

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