|
|
|
@ -627,6 +627,7 @@ export class CollectionToolsPlanComponent implements OnInit {
|
|
|
|
|
firstMultipleAssetData:any//当前多选的第一个素材
|
|
|
|
|
ngOnInit(): void { |
|
|
|
|
let _this = this |
|
|
|
|
|
|
|
|
|
AxMessageSystem.addListener('selectionChanged', ()=>{ |
|
|
|
|
if(this.canvas.selection.size() == 1){//如果是单选
|
|
|
|
|
this.isMultipleAsset = false |
|
|
|
@ -634,6 +635,7 @@ export class CollectionToolsPlanComponent implements OnInit {
|
|
|
|
|
this.setAssetsProperty(this.canvas.selection.first().assetData) |
|
|
|
|
}else if(this.canvas.selection.size()){ |
|
|
|
|
// console.log('多选')
|
|
|
|
|
this.isShowProperty = true |
|
|
|
|
this.multipleAssetData = this.canvas.selection.all() |
|
|
|
|
this.firstMultipleAssetData = this.canvas.selection.first() |
|
|
|
|
this.multipleAsset = { |
|
|
|
@ -671,6 +673,8 @@ export class CollectionToolsPlanComponent implements OnInit {
|
|
|
|
|
})
|
|
|
|
|
}) |
|
|
|
|
// console.log(666,_this.multipleAsset.PropertyInfos)
|
|
|
|
|
}else if(this.canvas.selection.size() == 0){ |
|
|
|
|
this.isShowProperty = false |
|
|
|
|
} |
|
|
|
|
}, this) |
|
|
|
|
|
|
|
|
|