test tree
This commit is contained in:
parent
eb3f2e831c
commit
8f88083070
@ -303,7 +303,7 @@ class Tree {
|
||||
}
|
||||
setCheckedKeys(checked, checkStrictly, node) {
|
||||
node.isChecked = checked;
|
||||
if (!node.selectParent) {
|
||||
if (node.selectParent) {
|
||||
return false;
|
||||
}
|
||||
if (!checkStrictly) {
|
||||
@ -391,7 +391,7 @@ const _sfc_main = defineComponent({
|
||||
};
|
||||
} },
|
||||
hideicon: { type: Boolean },
|
||||
selectParent: { type: Boolean, default: true }
|
||||
selectParent: { type: Boolean, default: false }
|
||||
},
|
||||
emits: ["update:checkedKeys", "update:expandKeys", "node-click"],
|
||||
setup(__props, { emit }) {
|
||||
|
@ -17900,7 +17900,7 @@ class Tree {
|
||||
}
|
||||
setCheckedKeys(checked, checkStrictly, node) {
|
||||
node.isChecked = checked;
|
||||
if (!node.selectParent) {
|
||||
if (node.selectParent) {
|
||||
return false;
|
||||
}
|
||||
if (!checkStrictly) {
|
||||
@ -17988,7 +17988,7 @@ const _sfc_main$J = defineComponent({
|
||||
};
|
||||
} },
|
||||
hideicon: { type: Boolean },
|
||||
selectParent: { type: Boolean, default: true }
|
||||
selectParent: { type: Boolean, default: false }
|
||||
},
|
||||
emits: ["update:checkedKeys", "update:expandKeys", "node-click"],
|
||||
setup(__props, { emit }) {
|
||||
|
@ -66,7 +66,7 @@ const props = withDefaults(defineProps<TreeProps>(), {
|
||||
title: "title",
|
||||
};
|
||||
},
|
||||
selectParent:true
|
||||
selectParent:false
|
||||
});
|
||||
|
||||
const slots = useSlots();
|
||||
|
@ -186,7 +186,7 @@ class Tree {
|
||||
node: TreeData
|
||||
) {
|
||||
node.isChecked = checked;
|
||||
if (!node.selectParent) {
|
||||
if (node.selectParent) {
|
||||
return false;
|
||||
}
|
||||
if (!checkStrictly) {
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user