fix: table loop problem, close #5543
parent
04752880af
commit
cb6d0bd411
|
@ -508,10 +508,17 @@ export default defineComponent<TableProps<DefaultRecordType>>({
|
||||||
});
|
});
|
||||||
onUpdated(() => {
|
onUpdated(() => {
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
|
const scrollWidth = scrollBodyRef.value?.scrollWidth || 0;
|
||||||
|
const clientWidth = scrollBodyRef.value?.clientWidth || 0;
|
||||||
|
if (
|
||||||
|
scrollBodySizeInfo.value.scrollWidth !== scrollWidth ||
|
||||||
|
scrollBodySizeInfo.value.clientWidth !== clientWidth
|
||||||
|
) {
|
||||||
scrollBodySizeInfo.value = {
|
scrollBodySizeInfo.value = {
|
||||||
scrollWidth: scrollBodyRef.value?.scrollWidth || 0,
|
scrollWidth,
|
||||||
clientWidth: scrollBodyRef.value?.clientWidth || 0,
|
clientWidth,
|
||||||
};
|
};
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue