update node opening/closing
This commit is contained in:
@@ -41,7 +41,7 @@ export default {
|
||||
|
||||
methods: {
|
||||
onOpen (childId) {
|
||||
this.$emit('open-child', childId)
|
||||
this.$emit('open-child', { childId })
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -71,8 +71,8 @@ export default {
|
||||
methods: {
|
||||
toCommaList,
|
||||
|
||||
onOpen (siblingId) {
|
||||
this.$parent.$emit('open-node', siblingId)
|
||||
onOpen (parentId) {
|
||||
this.$parent.$emit('open-node', { parentId })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user