add tree 可以不选中父子
This commit is contained in:
parent
d9e8704a6b
commit
9ce9d66cbe
@ -53,7 +53,6 @@ const _sfc_main$1 = defineComponent({
|
||||
emit("node-click", node);
|
||||
}
|
||||
function handleChange(checked, node) {
|
||||
debugger;
|
||||
props.tree.setCheckedKeys(checked, props.checkStrictly || props.selectParent, node);
|
||||
}
|
||||
function handleIconClick(node) {
|
||||
@ -308,7 +307,6 @@ class Tree {
|
||||
setCheckedKeys(checked, checkStrictly, node) {
|
||||
node.isChecked = checked;
|
||||
console.log(node, checkStrictly, 186);
|
||||
debugger;
|
||||
if (!checkStrictly) {
|
||||
if (node.parentNode) {
|
||||
this.setParentChecked(checked, node.parentNode);
|
||||
|
@ -17650,7 +17650,6 @@ const _sfc_main$K = defineComponent({
|
||||
emit("node-click", node);
|
||||
}
|
||||
function handleChange(checked, node) {
|
||||
debugger;
|
||||
props.tree.setCheckedKeys(checked, props.checkStrictly || props.selectParent, node);
|
||||
}
|
||||
function handleIconClick(node) {
|
||||
@ -17905,7 +17904,6 @@ class Tree {
|
||||
setCheckedKeys(checked, checkStrictly, node) {
|
||||
node.isChecked = checked;
|
||||
console.log(node, checkStrictly, 186);
|
||||
debugger;
|
||||
if (!checkStrictly) {
|
||||
if (node.parentNode) {
|
||||
this.setParentChecked(checked, node.parentNode);
|
||||
|
@ -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);
|
||||
|
136
umd/index.js
136
umd/index.js
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user