Feature: Added toggle() method to the node passed to TreeNode.click() handler.
This commit is contained in:
@@ -272,7 +272,10 @@ export default {
|
||||
},
|
||||
|
||||
click() {
|
||||
this.rootNode.$emit('click', this.model)
|
||||
this.rootNode.$emit('click', {
|
||||
toggle: this.toggle,
|
||||
...this.model
|
||||
})
|
||||
},
|
||||
|
||||
addChild(isLeaf) {
|
||||
|
Reference in New Issue
Block a user