mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-19 12:04:02 +08:00
Tree: add checkOnClickNode (#11111)
This commit is contained in:
@@ -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);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user