Browse Source

编辑器-导航:各个分组可同时展开

任一存 2 years ago
parent
commit
78563f719b
1 changed files with 0 additions and 11 deletions
  1. 0 11
      packages/qjkankan-editor/src/components/sceneGroupInEditor.vue

+ 0 - 11
packages/qjkankan-editor/src/components/sceneGroupInEditor.vue

@@ -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>