🐛(component): 简化 table 文档

This commit is contained in:
就眠儀式
2022-10-09 17:14:56 +08:00
parent 2dfb21701b
commit fbfb86166c
3 changed files with 22 additions and 17 deletions

View File

@@ -266,11 +266,7 @@ watch(
tableDataSource.value = [...props.dataSource];
tableSelectedKeys.value = [];
tableSelectedKey.value = s;
nextTick(() => {
getScrollWidth();
});
},
{ deep: true }
}, { deep: true }
);
const changeAll = (isChecked: boolean) => {
@@ -451,12 +447,14 @@ watch(
() => [props.height, props.maxHeight, props.dataSource],
() => {
nextTick(() => {
console.log("触发");
getScrollWidth();
});
}
);
onMounted(() => {
getScrollWidth();
getFixedColumn();