add tree 可以不选中父子
This commit is contained in:
@@ -83,7 +83,6 @@ function recursiveNodeClick(node: TreeData) {
|
||||
}
|
||||
|
||||
function handleChange(checked: boolean, node: TreeData) {
|
||||
debugger
|
||||
props.tree.setCheckedKeys(checked, props.checkStrictly || props.selectParent, node);
|
||||
}
|
||||
|
||||
|
||||
@@ -186,7 +186,6 @@ class Tree {
|
||||
) {
|
||||
node.isChecked = checked;
|
||||
console.log(node,checkStrictly,186)
|
||||
debugger
|
||||
if (!checkStrictly) {
|
||||
if (node.parentNode) {
|
||||
this.setParentChecked(checked, node.parentNode);
|
||||
|
||||
Reference in New Issue
Block a user