test tree
This commit is contained in:
parent
53e1658503
commit
326b5598ba
@ -1,5 +1,5 @@
|
|||||||
import { w as withInstall } from "../badge/index2.js";
|
import { w as withInstall } from "../badge/index2.js";
|
||||||
import { defineComponent, useSlots, computed, resolveComponent, openBlock, createElementBlock, Fragment, renderList, normalizeClass, createElementVNode, createVNode, unref, withModifiers, createBlock, createCommentVNode, renderSlot, createTextVNode, toDisplayString, withCtx, createSlots, ref, watch, onMounted, nextTick } from "vue";
|
import { defineComponent, useSlots, computed, resolveComponent, openBlock, createElementBlock, Fragment, renderList, normalizeClass, createElementVNode, createVNode, unref, withModifiers, createBlock, createCommentVNode, renderSlot, createTextVNode, toDisplayString, withCtx, createSlots, ref, watch, nextTick, onMounted } from "vue";
|
||||||
import { _ as _sfc_main$2E, a as _sfc_main$2 } from "../checkbox/index2.js";
|
import { _ as _sfc_main$2E, a as _sfc_main$2 } from "../checkbox/index2.js";
|
||||||
import { _ as _sfc_main$3 } from "../transition/index2.js";
|
import { _ as _sfc_main$3 } from "../transition/index2.js";
|
||||||
const _hoisted_1 = ["onClick"];
|
const _hoisted_1 = ["onClick"];
|
||||||
@ -421,11 +421,13 @@ const _sfc_main = defineComponent({
|
|||||||
loadNodeList();
|
loadNodeList();
|
||||||
}, { deep: true, immediate: true });
|
}, { deep: true, immediate: true });
|
||||||
watch(() => props.checkedKeys, () => {
|
watch(() => props.checkedKeys, () => {
|
||||||
console.log("\u91CD\u65B0\u52A0\u8F7D", unWatch.value);
|
nextTick(() => {
|
||||||
if (!unWatch.value) {
|
console.log("\u91CD\u65B0\u52A0\u8F7D", unWatch.value);
|
||||||
console.log("\u91CD\u65B0\u52A0\u8F7D");
|
if (!unWatch.value) {
|
||||||
loadNodeList();
|
console.log("\u91CD\u65B0\u52A0\u8F7D");
|
||||||
}
|
loadNodeList();
|
||||||
|
}
|
||||||
|
});
|
||||||
}, {
|
}, {
|
||||||
deep: true
|
deep: true
|
||||||
});
|
});
|
||||||
@ -434,9 +436,9 @@ const _sfc_main = defineComponent({
|
|||||||
const { checkedKeys } = tree.value.getKeys();
|
const { checkedKeys } = tree.value.getKeys();
|
||||||
unWatch.value = true;
|
unWatch.value = true;
|
||||||
emit("update:checkedKeys", checkedKeys);
|
emit("update:checkedKeys", checkedKeys);
|
||||||
setTimeout(() => {
|
nextTick(() => {
|
||||||
unWatch.value = false;
|
unWatch.value = false;
|
||||||
}, 0);
|
});
|
||||||
}
|
}
|
||||||
}, { deep: true });
|
}, { deep: true });
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
16
lib/index.js
16
lib/index.js
@ -18018,11 +18018,13 @@ const _sfc_main$J = defineComponent({
|
|||||||
loadNodeList();
|
loadNodeList();
|
||||||
}, { deep: true, immediate: true });
|
}, { deep: true, immediate: true });
|
||||||
watch(() => props.checkedKeys, () => {
|
watch(() => props.checkedKeys, () => {
|
||||||
console.log("\u91CD\u65B0\u52A0\u8F7D", unWatch.value);
|
nextTick(() => {
|
||||||
if (!unWatch.value) {
|
console.log("\u91CD\u65B0\u52A0\u8F7D", unWatch.value);
|
||||||
console.log("\u91CD\u65B0\u52A0\u8F7D");
|
if (!unWatch.value) {
|
||||||
loadNodeList();
|
console.log("\u91CD\u65B0\u52A0\u8F7D");
|
||||||
}
|
loadNodeList();
|
||||||
|
}
|
||||||
|
});
|
||||||
}, {
|
}, {
|
||||||
deep: true
|
deep: true
|
||||||
});
|
});
|
||||||
@ -18031,9 +18033,9 @@ const _sfc_main$J = defineComponent({
|
|||||||
const { checkedKeys } = tree.value.getKeys();
|
const { checkedKeys } = tree.value.getKeys();
|
||||||
unWatch.value = true;
|
unWatch.value = true;
|
||||||
emit("update:checkedKeys", checkedKeys);
|
emit("update:checkedKeys", checkedKeys);
|
||||||
setTimeout(() => {
|
nextTick(() => {
|
||||||
unWatch.value = false;
|
unWatch.value = false;
|
||||||
}, 0);
|
});
|
||||||
}
|
}
|
||||||
}, { deep: true });
|
}, { deep: true });
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
@ -103,11 +103,13 @@ watch(
|
|||||||
watch(
|
watch(
|
||||||
() => props.checkedKeys,
|
() => props.checkedKeys,
|
||||||
() => {
|
() => {
|
||||||
console.log("重新加载",unWatch.value)
|
nextTick(()=>{
|
||||||
if (!unWatch.value) {
|
console.log("重新加载",unWatch.value)
|
||||||
console.log("重新加载")
|
if (!unWatch.value) {
|
||||||
loadNodeList();
|
console.log("重新加载")
|
||||||
}
|
loadNodeList();
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
deep: true
|
deep: true
|
||||||
@ -121,9 +123,9 @@ watch(
|
|||||||
const { checkedKeys } = tree.value.getKeys();
|
const { checkedKeys } = tree.value.getKeys();
|
||||||
unWatch.value = true;
|
unWatch.value = true;
|
||||||
emit("update:checkedKeys", checkedKeys);
|
emit("update:checkedKeys", checkedKeys);
|
||||||
setTimeout(() => {
|
nextTick(() => {
|
||||||
unWatch.value = false;
|
unWatch.value = false;
|
||||||
}, 0);
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ deep: true }
|
{ deep: true }
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user