test tree

This commit is contained in:
Theluyuan 2023-05-15 10:08:06 +08:00
parent 4b56b2b09c
commit fc825565d7
4 changed files with 4 additions and 4 deletions

View File

@ -53,7 +53,7 @@ const _sfc_main$1 = defineComponent({
emit("node-click", node); emit("node-click", node);
} }
function handleChange(checked, node) { function handleChange(checked, node) {
props.tree.setCheckedKeys(checked, props.checkStrictly && props.selectParent, node); props.tree.setCheckedKeys(checked, props.checkStrictly || props.selectParent, node);
} }
function handleIconClick(node) { function handleIconClick(node) {
node.isLeaf = !node.isLeaf; node.isLeaf = !node.isLeaf;

View File

@ -17650,7 +17650,7 @@ const _sfc_main$K = defineComponent({
emit("node-click", node); emit("node-click", node);
} }
function handleChange(checked, node) { function handleChange(checked, node) {
props.tree.setCheckedKeys(checked, props.checkStrictly && props.selectParent, node); props.tree.setCheckedKeys(checked, props.checkStrictly || props.selectParent, node);
} }
function handleIconClick(node) { function handleIconClick(node) {
node.isLeaf = !node.isLeaf; node.isLeaf = !node.isLeaf;

View File

@ -83,7 +83,7 @@ function recursiveNodeClick(node: TreeData) {
} }
function handleChange(checked: boolean, node: TreeData) { function handleChange(checked: boolean, node: TreeData) {
props.tree.setCheckedKeys(checked, props.checkStrictly && props.selectParent, node); props.tree.setCheckedKeys(checked, props.checkStrictly || props.selectParent, node);
} }
function handleIconClick(node: TreeData) { function handleIconClick(node: TreeData) {

File diff suppressed because one or more lines are too long