update node opening/closing

This commit is contained in:
axolotle
2021-06-22 16:16:25 +02:00
parent 5d8cd184dc
commit 5ab6e19cde
7 changed files with 32 additions and 16 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ export default {
methods: {
onOpen (childId) {
this.$emit('open-child', childId)
this.$emit('open-child', { childId })
}
},
+2 -2
View File
@@ -71,8 +71,8 @@ export default {
methods: {
toCommaList,
onOpen (siblingId) {
this.$parent.$emit('open-node', siblingId)
onOpen (parentId) {
this.$parent.$emit('open-node', { parentId })
}
}
}