|
@@ -227,14 +227,6 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
this.isExpanded = !this.isExpanded
|
|
|
- if (this.isExpanded) {
|
|
|
- this.$bus.emit('scene-group-expanded', this.groupNode.id, this.level)
|
|
|
- }
|
|
|
- },
|
|
|
- onOtherSceneGroupExpanded(id, level) {
|
|
|
- if (id !== this.groupNode.id && level === this.level) {
|
|
|
- this.isExpanded = false
|
|
|
- }
|
|
|
},
|
|
|
|
|
|
onRenameScene(...params) {
|
|
@@ -364,7 +356,6 @@ export default {
|
|
|
this.dragEnterTimerId = setTimeout(() => {
|
|
|
if (!this.isExpanded) {
|
|
|
this.isExpanded = true
|
|
|
- this.$bus.emit('scene-group-expanded', this.groupNode.id, this.level)
|
|
|
}
|
|
|
}, 700)
|
|
|
},
|
|
@@ -380,10 +371,8 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
- this.$bus.on('scene-group-expanded', this.onOtherSceneGroupExpanded)
|
|
|
},
|
|
|
destroyed() {
|
|
|
- this.$bus.removeListener('scene-group-expanded', this.onOtherSceneGroupExpanded)
|
|
|
}
|
|
|
}
|
|
|
</script>
|