Feature: Added toggle() method to the node passed to TreeNode.click() handler.

This commit is contained in:
Barry Jones
2020-09-08 15:35:17 +01:00
parent 5500a36492
commit 0f04f7edba
2 changed files with 5 additions and 2 deletions

View File

@@ -272,7 +272,10 @@ export default {
},
click() {
this.rootNode.$emit('click', this.model)
this.rootNode.$emit('click', {
toggle: this.toggle,
...this.model
})
},
addChild(isLeaf) {