Skip to content

Commit 6fd14bf

Browse files
committed
[bugfix] 修复scoped下子节点会选择父节点的bug
1 parent 266b60a commit 6fd14bf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/components/treeLi.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,9 @@ export default {
240240
},
241241
checkedChange() {
242242
const { checked = false } = this.item;
243-
this.theParentChecked(checked, this.halfcheck);
244-
// if (!checked) {
245-
// this.$set(this.item, 'selected', checked)
246-
// }
243+
if(!this.scoped) {
244+
this.theParentChecked(checked, this.halfcheck);
245+
}
247246
}
248247
}
249248
};

0 commit comments

Comments
 (0)