|
|
|
@ -822,7 +822,14 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
copyAssetData:any //存储用于复制的素材
|
|
|
|
|
//复制素材
|
|
|
|
|
copyAsset(){ |
|
|
|
|
this.canvas.copy() |
|
|
|
|
if(this.canvas.selection.allowEdit()){//如果当前选中素材可以编辑
|
|
|
|
|
this.canvas.copy() |
|
|
|
|
}else{ |
|
|
|
|
let config = new MatSnackBarConfig(); |
|
|
|
|
config.verticalPosition = 'top'; |
|
|
|
|
config.duration = 3000 |
|
|
|
|
this.snackBar.open('当前选中素材不可复制','确定',config); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
//粘贴素材
|
|
|
|
|
pasteAsset(){ |
|
|
|
|