🐛(component): 修复 table 组件因 loading 加载时机产生的错位
This commit is contained in:
parent
06ce321357
commit
5abad236ee
@ -448,22 +448,13 @@ const classes = computed(() => {
|
||||
});
|
||||
|
||||
watch(
|
||||
() => props.height,
|
||||
() => [props.height, props.maxHeight, props.dataSource],
|
||||
() => {
|
||||
nextTick(() => {
|
||||
getScrollWidth();
|
||||
});
|
||||
})
|
||||
}
|
||||
);
|
||||
|
||||
watch(
|
||||
() => props.maxHeight,
|
||||
() => {
|
||||
nextTick(() => {
|
||||
getScrollWidth();
|
||||
});
|
||||
}
|
||||
);
|
||||
)
|
||||
|
||||
onMounted(() => {
|
||||
getScrollWidth();
|
||||
|
Loading…
Reference in New Issue
Block a user