test tree

This commit is contained in:
2023-05-15 11:02:44 +08:00
parent 23c229f9ed
commit d9e6e75275
4 changed files with 68 additions and 62 deletions

View File

@@ -137,6 +137,7 @@ class Tree {
}
setChildrenChecked(checked: boolean, nodes: TreeData[]) {
console.log("走赋值子节点了")
var ableCount = 0;
var checkCount = 0;
const len = nodes.length;
@@ -163,6 +164,7 @@ class Tree {
}
setParentChecked(checked: boolean, parent: TreeData) {
console.log("走赋值父节点了")
if (!parent) {
return;
}