为什么要清空选中列表?

This commit is contained in:
2023-02-03 16:01:08 +08:00
parent 27e4a48bd6
commit 05e5b84c5c
4 changed files with 91 additions and 96 deletions

View File

@@ -264,8 +264,9 @@ watch(
() => props.dataSource,
() => {
tableDataSource.value = [...props.dataSource];
tableSelectedKeys.value = [];
tableSelectedKey.value = s;
// 为什么修改数据就要把选中清空? 我要清空不会自己清吗?
// tableSelectedKeys.value = [];
// tableSelectedKey.value = s;
},
{ deep: true }
);