Browse Source

[修正] 实时更新tree数据BUG修正

master
陈鹏飞 4 years ago
parent
commit
bd6f54e1b8
  1. 7
      src/app/ui/collection-tools/collection-tools.component.ts

7
src/app/ui/collection-tools/collection-tools.component.ts

@ -447,6 +447,7 @@ export class CollectionToolsComponent implements OnInit {
ngAfterViewInit(): void {
this.getAllBuildings(true)
// 监听canvas组件选中素材事件
this.canvas.on("select",obj=>{
//选中素材属性注入函数
@ -457,11 +458,7 @@ export class CollectionToolsComponent implements OnInit {
this.isShowProperty = false
})
// 监听canvas组件新增素材事件
this.canvas.on("createIcon",obj=>{
this.renovateTreeData(false)
})
// 监听canvas组件删除素材事件
this.canvas.on("deleteIcon",obj=>{
this.canvas.on("canvasDataChanged",obj=>{
this.renovateTreeData(false)
})
}

Loading…
Cancel
Save