test tree

This commit is contained in:
2023-05-15 09:12:50 +08:00
parent eb3f2e831c
commit 8f88083070
5 changed files with 8 additions and 8 deletions

View File

@@ -66,7 +66,7 @@ const props = withDefaults(defineProps<TreeProps>(), {
title: "title",
};
},
selectParent:true
selectParent:false
});
const slots = useSlots();

View File

@@ -186,7 +186,7 @@ class Tree {
node: TreeData
) {
node.isChecked = checked;
if (!node.selectParent) {
if (node.selectParent) {
return false;
}
if (!checkStrictly) {