From 937e731cfae7a637663dbdcd0293aa495eedbc0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A1=E8=89=B2?= Date: Wed, 17 Apr 2019 14:22:53 +0700 Subject: [PATCH] fix(module:upload): fix deprecated icon class property (#3230) close #3228 --- components/upload/demo/avatar.ts | 2 +- components/upload/demo/basic.ts | 2 +- components/upload/demo/custom-request.ts | 2 +- components/upload/demo/directory.ts | 2 +- components/upload/demo/drag.ts | 2 +- components/upload/demo/file-list.ts | 2 +- components/upload/demo/filter.ts | 2 +- components/upload/demo/manually.ts | 2 +- components/upload/demo/picture-card.ts | 2 +- components/upload/demo/picture-style.ts | 4 ++-- components/upload/nz-upload-list.component.html | 12 ++++++------ components/upload/upload.spec.ts | 2 +- 12 files changed, 18 insertions(+), 18 deletions(-) diff --git a/components/upload/demo/avatar.ts b/components/upload/demo/avatar.ts index 03774204f65..819dd603d88 100644 --- a/components/upload/demo/avatar.ts +++ b/components/upload/demo/avatar.ts @@ -15,7 +15,7 @@ import { Observable, Observer } from 'rxjs'; (nzChange)="handleChange($event)" > - +
Upload
diff --git a/components/upload/demo/basic.ts b/components/upload/demo/basic.ts index 3eb46184ed5..63374cb3565 100644 --- a/components/upload/demo/basic.ts +++ b/components/upload/demo/basic.ts @@ -4,7 +4,7 @@ import { Component } from '@angular/core'; selector: 'nz-demo-upload-basic', template: ` - + ` }) diff --git a/components/upload/demo/custom-request.ts b/components/upload/demo/custom-request.ts index 5687ee09a6a..4f697e68d17 100644 --- a/components/upload/demo/custom-request.ts +++ b/components/upload/demo/custom-request.ts @@ -7,7 +7,7 @@ import { forkJoin } from 'rxjs'; selector: 'nz-demo-upload-custom-request', template: ` - + ` }) diff --git a/components/upload/demo/directory.ts b/components/upload/demo/directory.ts index 7d5bd48964c..912be49df5b 100644 --- a/components/upload/demo/directory.ts +++ b/components/upload/demo/directory.ts @@ -4,7 +4,7 @@ import { Component } from '@angular/core'; selector: 'nz-demo-upload-directory', template: ` - + ` }) diff --git a/components/upload/demo/drag.ts b/components/upload/demo/drag.ts index dd3af0e5a95..34d70b2e23d 100644 --- a/components/upload/demo/drag.ts +++ b/components/upload/demo/drag.ts @@ -12,7 +12,7 @@ import { NzMessageService } from 'ng-zorro-antd'; (nzChange)="handleChange($event)" >

- +

Click or drag file to this area to upload

diff --git a/components/upload/demo/file-list.ts b/components/upload/demo/file-list.ts index 37e4fe1a7b6..23b98987011 100644 --- a/components/upload/demo/file-list.ts +++ b/components/upload/demo/file-list.ts @@ -4,7 +4,7 @@ import { Component } from '@angular/core'; selector: 'nz-demo-upload-file-list', template: ` - + ` }) diff --git a/components/upload/demo/filter.ts b/components/upload/demo/filter.ts index 68e209eecda..c94e651d7d8 100644 --- a/components/upload/demo/filter.ts +++ b/components/upload/demo/filter.ts @@ -13,7 +13,7 @@ import { Observable, Observer } from 'rxjs'; [nzFilter]="filters" (nzChange)="handleChange($event)" > - + ` }) diff --git a/components/upload/demo/manually.ts b/components/upload/demo/manually.ts index 2f31131d955..1253c12de07 100644 --- a/components/upload/demo/manually.ts +++ b/components/upload/demo/manually.ts @@ -7,7 +7,7 @@ import { filter } from 'rxjs/operators'; selector: 'nz-demo-upload-manually', template: ` - + +

@@ -17,7 +17,7 @@ import { Component } from '@angular/core'; [(nzFileList)]="fileList2" > diff --git a/components/upload/nz-upload-list.component.html b/components/upload/nz-upload-list.component.html index f7e62d09bbd..f3cb397af75 100644 --- a/components/upload/nz-upload-list.component.html +++ b/components/upload/nz-upload-list.component.html @@ -5,7 +5,7 @@ + class="ant-upload-list-item-thumbnail" nz-icon nzType="picture" theme="twotone"> - - + + @@ -43,13 +43,13 @@ title="{{ locale.previewFile }}" [ngStyle]="!(file.url || file.thumbUrl) && {'opacity': .5, 'pointer-events': 'none'}" (click)="handlePreview(file, $event)"> - + - + - +

diff --git a/components/upload/upload.spec.ts b/components/upload/upload.spec.ts index 49c3539899c..2b0856e03fd 100644 --- a/components/upload/upload.spec.ts +++ b/components/upload/upload.spec.ts @@ -1274,7 +1274,7 @@ describe('upload', () => { (nzFileListChange)="nzFileListChange($event)" (nzChange)="nzChange($event)" > - + ` })