test tree
This commit is contained in:
16
lib/index.js
16
lib/index.js
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user