test table

This commit is contained in:
2023-05-17 14:38:47 +08:00
parent 89a638b782
commit 9942139736
4 changed files with 8 additions and 4 deletions

View File

@@ -238,7 +238,8 @@ const findFinalNode = (level: number, columns: any[]) => {
findFinalNode(0, tableColumns.value);
const tableSelectedKeys = ref<Recordable[]>([...props.selectedKeys]);
// 你浅拷贝他干什么呀
const tableSelectedKeys = ref<Recordable[]>(props.selectedKeys);
const tableExpandKeys = ref<Recordable[]>([...props.expandKeys]);
watch(
@@ -314,6 +315,7 @@ watch(
hasChecked.value = false;
}
if(tableSelectedKeys.value != props.selectedKeys){
console.log("初始化赋值触发修改",tableSelectedKeys.value,props.selectedKeys)
emit("update:selectedKeys", tableSelectedKeys.value);
}
},