|
|
@ -61,7 +61,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
<!--功能区 --> |
|
|
|
<!--功能区 --> |
|
|
|
<div class="functionalDomain"> |
|
|
|
<div class="functionalDomain"> |
|
|
|
<div class='functionalDomainContent' id="functionalDomainContent"> |
|
|
|
<div class='functionalDomainContent' id="functionalDomainContentTwo"> |
|
|
|
|
|
|
|
|
|
|
|
<!-- H5Canvas --> |
|
|
|
<!-- H5Canvas --> |
|
|
|
<app-working-area #canvas [init]='this'></app-working-area> |
|
|
|
<app-working-area #canvas [init]='this'></app-working-area> |
|
|
@ -125,23 +125,35 @@ |
|
|
|
<label class="overflowText" style="font-weight: 550;">素材库</label> |
|
|
|
<label class="overflowText" style="font-weight: 550;">素材库</label> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div [hidden]="!toggleMaterialBank" [ngClass]="{'materialBankDIV': pattern}"> |
|
|
|
<div [hidden]="!toggleMaterialBank" [ngClass]="{'materialBankDIV': pattern}"> |
|
|
|
<mat-accordion *ngFor="let item of allLibrary" id="panelLibrary"> |
|
|
|
<div> |
|
|
|
<mat-expansion-panel (opened)='opened(item)'> |
|
|
|
<input type="text" class="searchLibrary" [(ngModel)]="searchInput" (ngModelChange)="libraryChange()"> |
|
|
|
<mat-expansion-panel-header> |
|
|
|
<div class="panelLibraryFlex" *ngIf="searchLibrary.length"> |
|
|
|
<label class="text">{{item.name}}</label> |
|
|
|
<div class="imgBox" *ngFor="let items of searchLibrary;let key = index" [title]="items.name" |
|
|
|
</mat-expansion-panel-header> |
|
|
|
[ngClass]="{'selectImg': selectLibrary=='搜索' && selectImageIndex==key}" (click)='selectImg({name:"搜索"},items,key)'> |
|
|
|
|
|
|
|
<img [src]="items.imageUrl" onerror="javascript:this.src='../../../assets/images/noImg.png'"> |
|
|
|
|
|
|
|
<p class="overflowText">{{items.name}}</p> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<ng-container *ngIf="!searchLibrary.length"> |
|
|
|
|
|
|
|
<mat-accordion *ngFor="let item of allLibrary" id="panelLibrary"> |
|
|
|
|
|
|
|
<mat-expansion-panel (opened)='opened(item)'> |
|
|
|
|
|
|
|
<mat-expansion-panel-header> |
|
|
|
|
|
|
|
<label class="text">{{item.name}}</label> |
|
|
|
|
|
|
|
</mat-expansion-panel-header> |
|
|
|
|
|
|
|
|
|
|
|
<div class="panelLibraryFlex"> |
|
|
|
<div class="panelLibraryFlex"> |
|
|
|
<div class="imgBox" *ngFor="let items of item.images;let key = index" [title]="items.name" |
|
|
|
<div class="imgBox" *ngFor="let items of item.images;let key = index" [title]="items.name" |
|
|
|
(click)='selectImg(item,items,key)' |
|
|
|
(click)='selectImg(item,items,key)' |
|
|
|
[ngClass]="{'selectImg': selectLibrary==item.name && selectImageIndex==key}"> |
|
|
|
[ngClass]="{'selectImg': selectLibrary==item.name && selectImageIndex==key}"> |
|
|
|
<img [src]="items.imageUrl" onerror="javascript:this.src='../../../assets/images/noImg.png'"> |
|
|
|
<img [src]="items.imageUrl" onerror="javascript:this.src='../../../assets/images/noImg.png'"> |
|
|
|
<p class="overflowText">{{items.name}}</p> |
|
|
|
<p class="overflowText">{{items.name}}</p> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</mat-expansion-panel> |
|
|
|
</mat-expansion-panel> |
|
|
|
</mat-accordion> |
|
|
|
</mat-accordion> |
|
|
|
|
|
|
|
</ng-container> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- 素材库 --> |
|
|
|
<!-- 素材库 --> |
|
|
|