🐛(component): 修复 table 组件 height 属性改变时单元格错位

This commit is contained in:
就眠儀式 2022-08-11 22:44:31 +08:00
parent fe2157de55
commit fa84d00a00

View File

@ -437,6 +437,18 @@ const classes = computed(() => {
]; ];
}); });
watch(() => props.height, () => {
nextTick(() => {
getScrollWidth();
})
})
watch(() => props.maxHeight, () => {
nextTick(() => {
getScrollWidth();
})
})
onMounted(() => { onMounted(() => {
getScrollWidth(); getScrollWidth();
getFixedColumn(); getFixedColumn();