@@ -335,33 +335,33 @@ declare const locale: NzSafeAny;
335
335
<div class="icon-selector">
336
336
<nz-radio-group [ngModel]="currentTheme" (ngModelChange)="setIconsShouldBeDisplayed($event)">
337
337
<label nz-radio-button nzValue="outline">
338
- <span nz-icon>
338
+ <nz-icon>
339
339
<svg>
340
340
<path
341
341
d="M864 64H160C107 64 64 107 64 160v704c0 53 43 96 96 96h704c53 0 96-43 96-96V160c0-53-43-96-96-96z m-12 800H172c-6.6 0-12-5.4-12-12V172c0-6.6 5.4-12 12-12h680c6.6 0 12 5.4 12 12v680c0 6.6-5.4 12-12 12z"
342
342
></path>
343
343
</svg>
344
- </span >
344
+ </nz-icon >
345
345
Outlined
346
346
</label>
347
347
<label nz-radio-button nzValue="fill">
348
- <span nz-icon>
348
+ <nz-icon>
349
349
<svg>
350
350
<path
351
351
d="M864 64H160C107 64 64 107 64 160v704c0 53 43 96 96 96h704c53 0 96-43 96-96V160c0-53-43-96-96-96z"
352
352
></path>
353
353
</svg>
354
- </span >
354
+ </nz-icon >
355
355
Filled
356
356
</label>
357
357
<label nz-radio-button nzValue="twotone">
358
- <span nz-icon>
358
+ <nz-icon>
359
359
<svg>
360
360
<path
361
361
d="M16 512c0 273.932 222.066 496 496 496s496-222.068 496-496S785.932 16 512 16 16 238.066 16 512z m496 368V144c203.41 0 368 164.622 368 368 0 203.41-164.622 368-368 368z"
362
362
></path>
363
363
</svg>
364
- </span >
364
+ </nz-icon >
365
365
Two Tone
366
366
</label>
367
367
</nz-radio-group>
@@ -375,9 +375,8 @@ declare const locale: NzSafeAny;
375
375
</nz-input-group>
376
376
<ng-template #suffixIconCamera>
377
377
<div class="icon-pic-searcher">
378
- <span
378
+ <nz-icon
379
379
class="icon-pic-btn"
380
- nz-icon
381
380
nz-popover
382
381
[nzPopoverTrigger]="null"
383
382
[(nzPopoverVisible)]="popoverVisible"
@@ -389,12 +388,12 @@ declare const locale: NzSafeAny;
389
388
d="M864 248H728l-32.4-90.8a32.07 32.07 0 00-30.2-21.2H358.6c-13.5 0-25.6 8.5-30.1 21.2L296 248H160c-44.2 0-80 35.8-80 80v456c0 44.2 35.8 80 80 80h704c44.2 0 80-35.8 80-80V328c0-44.2-35.8-80-80-80zm8 536c0 4.4-3.6 8-8 8H160c-4.4 0-8-3.6-8-8V328c0-4.4 3.6-8 8-8h186.7l17.1-47.8 22.9-64.2h250.5l22.9 64.2 17.1 47.8H864c4.4 0 8 3.6 8 8v456zM512 384c-88.4 0-160 71.6-160 160s71.6 160 160 160 160-71.6 160-160-71.6-160-160-160zm0 256c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96z"
390
389
></path>
391
390
</svg>
392
- </span >
391
+ </nz-icon >
393
392
</div>
394
393
</ng-template>
395
394
<ng-template #addOnAfterIconSearch>
396
395
<button nz-button nzType="default" nzSearch>
397
- <span nz-icon nzType="search"></span >
396
+ <nz-icon nzType="search"></nz-icon >
398
397
</button>
399
398
</ng-template>
400
399
</div>
@@ -403,7 +402,7 @@ declare const locale: NzSafeAny;
403
402
<ul class="anticons-list">
404
403
@for (icon of displayedNames[i].icons; track trackByFn(icon)) {
405
404
<li (click)="onIconClick($event, icon)">
406
- <span nz-icon [nzType]="kebabCase(icon)" [nzTheme]="currentTheme"></span >
405
+ <nz-icon [nzType]="kebabCase(icon)" [nzTheme]="currentTheme"></nz-icon >
407
406
<span class="anticon-class">
408
407
@if (isNewIcon(icon)) {
409
408
<nz-badge nzDot>
@@ -434,7 +433,7 @@ declare const locale: NzSafeAny;
434
433
[nzShowUploadList]="{ showPreviewIcon: false, showRemoveIcon: false }"
435
434
>
436
435
<p class="ant-upload-drag-icon">
437
- <span nz-icon nzType="inbox" nzTheme="outline"></span >
436
+ <nz-icon nzType="inbox" nzTheme="outline"></nz-icon >
438
437
</p>
439
438
<p class="ant-upload-text">{{ localeObj.picSearcherUploadText }}</p>
440
439
<p class="ant-upload-hint">{{ localeObj.picSearcherUploadHint }}</p>
@@ -458,16 +457,15 @@ declare const locale: NzSafeAny;
458
457
@for (icon of icons; track icon) {
459
458
<tr>
460
459
<td class="col-icon">
461
- <span
462
- nz-icon
460
+ <nz-icon
463
461
nz-tooltip
464
462
[nzTooltipTitle]="icon.type"
465
463
nzTooltipPlacement="right"
466
464
[nzType]="icon.type"
467
465
[nzTheme]="currentTheme"
468
466
(click)="onIconClick($event, icon.type)"
469
467
>
470
- </span >
468
+ </nz-icon >
471
469
</td>
472
470
<td>
473
471
<nz-progress nzStrokeLinecap="round" [nzPercent]="icon.score"></nz-progress>
@@ -538,7 +536,7 @@ export class NzPageDemoIconComponent implements OnInit, OnDestroy {
538
536
539
537
onIconClick ( e : MouseEvent , icon : string ) : void {
540
538
const target = e . target as HTMLElement ;
541
- const copiedString = `<span nz-icon nzType="${ kebabCase ( icon ) } " nzTheme="${ this . currentTheme } "></span >` ;
539
+ const copiedString = `<nz-icon nzType="${ kebabCase ( icon ) } " nzTheme="${ this . currentTheme } " / >` ;
542
540
target . classList . add ( 'copied' ) ;
543
541
this . _copy ( copiedString ) . then ( ( ) => {
544
542
setTimeout ( ( ) => {
0 commit comments