This commit is contained in:
Taric Xin
2021-12-15 21:06:32 +08:00
parent 7f65ee67ec
commit af6675263a
7 changed files with 82 additions and 70 deletions

View File

@ -296,7 +296,7 @@
</ng-container>
<div *ngIf="data[key]" (mouseover)="data[hover]=true" (mouseleave)="data[hover]=false"
(click)="$event.cancelBubble=true" class="image-hover">
<img [src]="data[key]" style="width: 200px;height: 160px;" />
<img [src]="data[key]" style="width: 200px;height: 160px;" (click)="showImg(data[key])"/>
<div class="mask" *ngIf="data[hover] && status"></div>
<div class="mask-over" *ngIf="data[hover] && status">
<i nz-icon nzType="close-circle" nzTheme="fill" class="delete-icon" (click)="deleteImg(data,key,key2)"></i>