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