test tree

This commit is contained in:
2023-05-18 09:55:23 +08:00
parent 53e1658503
commit 326b5598ba
4 changed files with 29 additions and 23 deletions

View File

@@ -18018,11 +18018,13 @@ const _sfc_main$J = defineComponent({
loadNodeList();
}, { deep: true, immediate: true });
watch(() => props.checkedKeys, () => {
console.log("\u91CD\u65B0\u52A0\u8F7D", unWatch.value);
if (!unWatch.value) {
console.log("\u91CD\u65B0\u52A0\u8F7D");
loadNodeList();
}
nextTick(() => {
console.log("\u91CD\u65B0\u52A0\u8F7D", unWatch.value);
if (!unWatch.value) {
console.log("\u91CD\u65B0\u52A0\u8F7D");
loadNodeList();
}
});
}, {
deep: true
});
@@ -18031,9 +18033,9 @@ const _sfc_main$J = defineComponent({
const { checkedKeys } = tree.value.getKeys();
unWatch.value = true;
emit("update:checkedKeys", checkedKeys);
setTimeout(() => {
nextTick(() => {
unWatch.value = false;
}, 0);
});
}
}, { deep: true });
onMounted(() => {