test table
This commit is contained in:
@@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user