Browse Source

[新增]增加删除素材更新tree

develop
邵佳豪 4 years ago
parent
commit
fb7e5a770f
  1. 8
      src/app/ui/collection-tools/collection-tools.component.ts

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

@ -392,6 +392,14 @@ export class CollectionToolsComponent implements OnInit {
this.canvas.on("deselect",obj=>{
this.isShowProperty = false
})
// 监听canvas组件新增素材事件
this.canvas.on("createIcon",obj=>{
this.renovateTreeData(false)
})
// 监听canvas组件删除素材事件
this.canvas.on("deleteIcon",obj=>{
this.renovateTreeData(false)
})
}
copyAssetData:any //存储用于复制的素材

Loading…
Cancel
Save