test table
This commit is contained in:
parent
89a638b782
commit
9942139736
@ -1058,7 +1058,7 @@ const _sfc_main = defineComponent({
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
findFinalNode(0, tableColumns.value);
|
findFinalNode(0, tableColumns.value);
|
||||||
const tableSelectedKeys = ref([...props.selectedKeys]);
|
const tableSelectedKeys = ref(props.selectedKeys);
|
||||||
const tableExpandKeys = ref([...props.expandKeys]);
|
const tableExpandKeys = ref([...props.expandKeys]);
|
||||||
watch(() => props.selectedKeys, () => {
|
watch(() => props.selectedKeys, () => {
|
||||||
tableSelectedKeys.value = props.selectedKeys;
|
tableSelectedKeys.value = props.selectedKeys;
|
||||||
@ -1103,6 +1103,7 @@ const _sfc_main = defineComponent({
|
|||||||
hasChecked.value = false;
|
hasChecked.value = false;
|
||||||
}
|
}
|
||||||
if (tableSelectedKeys.value != props.selectedKeys) {
|
if (tableSelectedKeys.value != props.selectedKeys) {
|
||||||
|
console.log("\u521D\u59CB\u5316\u8D4B\u503C\u89E6\u53D1\u4FEE\u6539", tableSelectedKeys.value, props.selectedKeys);
|
||||||
emit("update:selectedKeys", tableSelectedKeys.value);
|
emit("update:selectedKeys", tableSelectedKeys.value);
|
||||||
}
|
}
|
||||||
}, { deep: true, immediate: true });
|
}, { deep: true, immediate: true });
|
||||||
|
@ -19492,7 +19492,7 @@ const _sfc_main$D = defineComponent({
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
findFinalNode(0, tableColumns.value);
|
findFinalNode(0, tableColumns.value);
|
||||||
const tableSelectedKeys = ref([...props.selectedKeys]);
|
const tableSelectedKeys = ref(props.selectedKeys);
|
||||||
const tableExpandKeys = ref([...props.expandKeys]);
|
const tableExpandKeys = ref([...props.expandKeys]);
|
||||||
watch(() => props.selectedKeys, () => {
|
watch(() => props.selectedKeys, () => {
|
||||||
tableSelectedKeys.value = props.selectedKeys;
|
tableSelectedKeys.value = props.selectedKeys;
|
||||||
@ -19537,6 +19537,7 @@ const _sfc_main$D = defineComponent({
|
|||||||
hasChecked.value = false;
|
hasChecked.value = false;
|
||||||
}
|
}
|
||||||
if (tableSelectedKeys.value != props.selectedKeys) {
|
if (tableSelectedKeys.value != props.selectedKeys) {
|
||||||
|
console.log("\u521D\u59CB\u5316\u8D4B\u503C\u89E6\u53D1\u4FEE\u6539", tableSelectedKeys.value, props.selectedKeys);
|
||||||
emit("update:selectedKeys", tableSelectedKeys.value);
|
emit("update:selectedKeys", tableSelectedKeys.value);
|
||||||
}
|
}
|
||||||
}, { deep: true, immediate: true });
|
}, { deep: true, immediate: true });
|
||||||
|
@ -238,7 +238,8 @@ const findFinalNode = (level: number, columns: any[]) => {
|
|||||||
|
|
||||||
findFinalNode(0, tableColumns.value);
|
findFinalNode(0, tableColumns.value);
|
||||||
|
|
||||||
const tableSelectedKeys = ref<Recordable[]>([...props.selectedKeys]);
|
// 你浅拷贝他干什么呀
|
||||||
|
const tableSelectedKeys = ref<Recordable[]>(props.selectedKeys);
|
||||||
const tableExpandKeys = ref<Recordable[]>([...props.expandKeys]);
|
const tableExpandKeys = ref<Recordable[]>([...props.expandKeys]);
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
@ -314,6 +315,7 @@ watch(
|
|||||||
hasChecked.value = false;
|
hasChecked.value = false;
|
||||||
}
|
}
|
||||||
if(tableSelectedKeys.value != props.selectedKeys){
|
if(tableSelectedKeys.value != props.selectedKeys){
|
||||||
|
console.log("初始化赋值触发修改",tableSelectedKeys.value,props.selectedKeys)
|
||||||
emit("update:selectedKeys", tableSelectedKeys.value);
|
emit("update:selectedKeys", tableSelectedKeys.value);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user