Tree: add checkOnClickNode (#11111)

This commit is contained in:
杨奕
2018-05-10 18:01:49 +08:00
committed by GitHub
parent 1ff01a77f9
commit 68db03fc22
7 changed files with 27 additions and 5 deletions

View File

@@ -167,6 +167,11 @@
if (this.tree.expandOnClickNode) {
this.handleExpandIconClick();
}
if (this.tree.checkOnClickNode) {
this.handleCheckChange(null, {
target: { checked: !this.node.checked }
});
}
this.tree.$emit('node-click', this.node.data, this.node, this);
},