From 8e797c2b3814b350140947c89e044b46ededfc22 Mon Sep 17 00:00:00 2001 From: HyperLife1119 Date: Sat, 14 Dec 2024 21:41:28 +0800 Subject: [PATCH] refactor: use `` to instead of `[nz-icon]` (#8927) --- components/alert/alert.component.ts | 4 +- .../auto-complete/demo/certain-category.ts | 2 +- .../auto-complete/demo/uncertain-category.ts | 2 +- components/avatar/avatar.component.ts | 2 +- components/back-top/back-top.component.ts | 2 +- components/badge/demo/basic.ts | 2 +- components/badge/demo/change.ts | 4 +- components/badge/demo/dot.ts | 6 +-- components/badge/demo/no-wrapper.ts | 2 +- .../breadcrumb/breadcrumb-item.component.ts | 2 +- components/breadcrumb/demo/separator.ts | 2 +- components/breadcrumb/demo/with-icon.ts | 4 +- components/button/button.component.ts | 4 +- components/button/button.spec.ts | 8 +-- components/button/demo/button-group.ts | 8 +-- components/button/demo/icon.ts | 16 +++--- components/button/demo/loading.ts | 4 +- components/button/demo/multiple.ts | 2 +- components/button/demo/size.ts | 14 +++--- components/card/demo/loading.ts | 6 +-- components/card/demo/meta.ts | 6 +-- .../cascader/cascader-option.component.ts | 12 ++--- components/cascader/cascader.component.ts | 18 +++---- components/cascader/cascader.spec.ts | 2 +- components/code-editor/demo/config.ts | 4 +- components/code-editor/style/index.less | 3 +- components/collapse/collapse.spec.ts | 2 +- components/collapse/demo/custom.ts | 2 +- components/collapse/demo/extra.ts | 2 +- .../nz-form-item-feedback-icon.component.ts | 2 +- .../transition-patch.directive.ts | 2 +- .../cron-expression-preview.component.ts | 4 +- components/cron-expression/demo/shortcuts.ts | 2 +- .../date-picker/date-picker.component.ts | 6 +-- components/divider/demo/horizontal.ts | 2 +- components/divider/divider.spec.ts | 2 +- components/drawer/drawer.component.ts | 2 +- components/drawer/drawer.spec.ts | 2 +- components/dropdown/demo/basic.ts | 2 +- components/dropdown/demo/dropdown-button.ts | 8 +-- components/dropdown/demo/event.ts | 2 +- components/dropdown/demo/item.ts | 2 +- components/dropdown/demo/overlay-visible.ts | 2 +- components/dropdown/demo/sub-menu.ts | 2 +- components/dropdown/demo/trigger.ts | 2 +- components/empty/demo/config.ts | 2 +- .../float-button-content.component.ts | 2 +- .../float-button-group.component.spec.ts | 2 +- .../float-button-group.component.ts | 2 +- .../float-button-top.component.ts | 2 +- .../float-button.component.spec.ts | 2 +- components/form/demo/advanced-search.ts | 2 +- components/form/demo/dynamic-form-item.ts | 2 +- components/form/form-label.component.ts | 2 +- components/hash-code/hash-code.component.ts | 4 +- components/icon/icon.directive.ts | 9 +--- components/image/image-preview.component.ts | 4 +- components/input-number-legacy/demo/group.ts | 2 +- .../input-number-group-slot.component.ts | 2 +- .../input-number-group.spec.ts | 2 +- .../input-number.component.ts | 4 +- components/input/demo/presuffix.ts | 4 +- components/input/demo/search-input.ts | 4 +- components/input/demo/status.ts | 2 +- .../input/input-group-slot.component.ts | 2 +- components/input/input-group.spec.ts | 2 +- components/layout/demo/custom-trigger.ts | 2 +- components/layout/demo/fixed-sider.ts | 16 +++--- components/layout/demo/responsive.ts | 8 +-- components/layout/demo/side.ts | 6 +-- components/layout/layout.spec.ts | 4 +- components/layout/sider-trigger.component.ts | 6 +-- components/list/demo/vertical.ts | 6 +-- components/list/list.spec.ts | 2 +- components/mention/mention.component.ts | 2 +- components/menu/demo/horizontal.ts | 4 +- components/menu/demo/inline-collapsed.ts | 4 +- components/menu/demo/recursive.ts | 2 +- components/menu/menu.spec.ts | 16 +++--- components/menu/submenu-title.component.ts | 6 +-- components/message/message.component.ts | 10 ++-- components/modal/modal-close.component.ts | 2 +- .../modal-confirm-container.component.ts | 2 +- components/notification/demo/custom-icon.ts | 2 +- components/notification/demo/placement.ts | 12 ++--- .../notification/notification.component.ts | 4 +- components/page-header/demo/content.ts | 2 +- .../page-header/page-header.component.ts | 2 +- components/page-header/page-header.spec.ts | 4 +- .../pagination/pagination-item.component.ts | 50 +++++++++---------- components/popconfirm/demo/custom-icon.ts | 2 +- components/popconfirm/popconfirm.ts | 2 +- components/popover/demo/template.ts | 4 +- components/progress/demo/circle-dynamic.ts | 4 +- components/progress/demo/dynamic.ts | 4 +- components/progress/progress.component.ts | 2 +- components/qr-code/demo/custom-status.ts | 2 +- components/qr-code/qrcode.component.ts | 2 +- components/rate/demo/character.ts | 2 +- components/rate/demo/customize.ts | 10 ++-- components/rate/rate-item.component.ts | 2 +- components/result/demo/error.ts | 4 +- components/result/result.component.ts | 2 +- components/result/result.spec.ts | 2 +- .../segmented/segmented-item.component.ts | 2 +- components/select/demo/custom-content.ts | 6 +-- .../select/demo/custom-dropdown-menu.ts | 2 +- components/select/demo/custom-template.ts | 4 +- components/select/demo/select-users.ts | 2 +- components/select/option-item.component.ts | 2 +- components/select/select-arrow.component.ts | 8 +-- components/select/select-clear.component.ts | 2 +- components/select/select-item.component.ts | 2 +- components/skeleton/demo/list.ts | 6 +-- components/slider/demo/icon-slider.ts | 10 ++-- components/space/demo/basic.ts | 2 +- components/space/demo/compact-buttons.ts | 24 ++++----- components/space/demo/compact.ts | 8 +-- components/spin/demo/custom-indicator.ts | 4 +- components/spin/spin.spec.ts | 2 +- components/statistic/demo/card.ts | 4 +- components/statistic/demo/unit.ts | 2 +- components/steps/demo/icon.ts | 2 +- components/steps/step.component.ts | 6 +-- components/steps/steps.spec.ts | 4 +- components/switch/demo/text.ts | 4 +- components/switch/switch.component.ts | 2 +- components/switch/switch.spec.ts | 8 +-- components/table/demo/custom-column.ts | 6 +-- components/table/demo/custom-filter-panel.ts | 2 +- components/table/demo/expand-icon.ts | 4 +- components/table/demo/nested-table.ts | 2 +- .../table/src/addon/filter.component.ts | 2 +- .../table/src/addon/selection.component.ts | 2 +- components/tabs/demo/icon.ts | 2 +- components/tabs/tab-add-button.component.ts | 2 +- components/tabs/tab-close-button.component.ts | 2 +- .../tabs/tab-nav-operation.component.ts | 2 +- components/tag/demo/control.ts | 2 +- components/tag/demo/icon.ts | 8 +-- components/tag/demo/status.ts | 10 ++-- components/tag/tag.component.ts | 2 +- .../time-picker/time-picker.component.ts | 2 +- components/timeline/demo/alternate.ts | 2 +- components/timeline/demo/custom.ts | 2 +- components/timeline/demo/right.ts | 2 +- components/timeline/timeline.component.ts | 2 +- components/tooltip/demo/template.ts | 2 +- components/transfer/demo/custom-item.ts | 2 +- .../transfer/transfer-list.component.ts | 2 +- .../transfer/transfer-search.component.ts | 4 +- components/transfer/transfer.component.ts | 8 +-- components/transfer/transfer.spec.ts | 2 +- .../tree-select/demo/customized-icon.ts | 2 +- components/tree-select/tree-select.spec.ts | 2 +- components/tree-view/demo/basic.ts | 2 +- components/tree-view/demo/checkbox.ts | 2 +- components/tree-view/demo/directory.ts | 6 +-- components/tree-view/demo/dynamic.ts | 4 +- components/tree-view/demo/editable.ts | 6 +-- components/tree-view/demo/line.ts | 2 +- components/tree-view/demo/search.ts | 4 +- components/tree-view/demo/virtual-scroll.ts | 2 +- components/tree-view/doc/index.en-US.md | 4 +- components/tree-view/doc/index.zh-CN.md | 4 +- components/tree-view/toggle.ts | 4 +- components/tree/demo/customized-icon.ts | 2 +- components/tree/demo/directory.ts | 4 +- components/tree/demo/search.ts | 2 +- .../tree/tree-node-switcher.component.ts | 6 +-- components/tree/tree-node-title.component.ts | 2 +- components/tree/tree.spec.ts | 2 +- components/typography/demo/interactive.ts | 2 +- components/typography/text-copy.component.ts | 2 +- components/typography/text-edit.component.ts | 4 +- components/upload/demo/basic.ts | 2 +- components/upload/demo/default-file-list.ts | 2 +- components/upload/demo/directory.ts | 2 +- components/upload/demo/drag.ts | 2 +- components/upload/demo/file-list.ts | 2 +- components/upload/demo/picture-card.ts | 2 +- components/upload/demo/picture-style.ts | 4 +- components/upload/demo/preview-file.ts | 2 +- components/upload/demo/transform-file.ts | 2 +- components/upload/demo/upload-manually.ts | 2 +- .../upload/demo/upload-with-aliyun-oss.ts | 2 +- components/upload/upload-list.component.html | 14 +++--- components/upload/upload.spec.ts | 2 +- .../doc/app/codebox/codebox.component.html | 31 +++++++----- .../components-overview.component.html | 24 +++------ .../doc/app/footer/footer-item.component.ts | 4 +- .../doc/app/header/navigation.component.ts | 7 +-- .../doc/app/header/searchbar.component.ts | 6 +-- .../app/nav-bottom/nav-bottom.component.ts | 12 ++--- scripts/site/template/title.template.html | 4 +- 195 files changed, 427 insertions(+), 435 deletions(-) diff --git a/components/alert/alert.component.ts b/components/alert/alert.component.ts index 0308f048e30..7a5a2f9abfe 100644 --- a/components/alert/alert.component.ts +++ b/components/alert/alert.component.ts @@ -56,7 +56,7 @@ const NZ_CONFIG_MODULE_NAME: NzConfigKey = 'alert'; @if (nzIcon) { } @else { - + } } @@ -89,7 +89,7 @@ const NZ_CONFIG_MODULE_NAME: NzConfigKey = 'alert'; {{ nzCloseText }} } @else { - + } } diff --git a/components/auto-complete/demo/certain-category.ts b/components/auto-complete/demo/certain-category.ts index 3045f7720b7..91b88e0d594 100644 --- a/components/auto-complete/demo/certain-category.ts +++ b/components/auto-complete/demo/certain-category.ts @@ -27,7 +27,7 @@ interface AutocompleteOptionGroups { /> - + @for (group of optionGroups; track group.title) { diff --git a/components/auto-complete/demo/uncertain-category.ts b/components/auto-complete/demo/uncertain-category.ts index 8723744379b..687e7c3bc4f 100644 --- a/components/auto-complete/demo/uncertain-category.ts +++ b/components/auto-complete/demo/uncertain-category.ts @@ -22,7 +22,7 @@ import { NzInputModule } from 'ng-zorro-antd/input'; diff --git a/components/avatar/avatar.component.ts b/components/avatar/avatar.component.ts index b564dea46d6..740046a531f 100644 --- a/components/avatar/avatar.component.ts +++ b/components/avatar/avatar.component.ts @@ -31,7 +31,7 @@ const NZ_CONFIG_MODULE_NAME: NzConfigKey = 'avatar'; imports: [NzIconModule, PlatformModule], template: ` @if (nzIcon && hasIcon) { - + } @else if (nzSrc && hasSrc) { } @else if (nzText && hasText) { diff --git a/components/back-top/back-top.component.ts b/components/back-top/back-top.component.ts index d7fa4937b09..4c9477ab05e 100644 --- a/components/back-top/back-top.component.ts +++ b/components/back-top/back-top.component.ts @@ -49,7 +49,7 @@ const passiveEventListenerOptions = normalizePassiveListenerOptions({ passive: t
- +
diff --git a/components/badge/demo/basic.ts b/components/badge/demo/basic.ts index 0624e9d6403..2d27db8addc 100644 --- a/components/badge/demo/basic.ts +++ b/components/badge/demo/basic.ts @@ -17,7 +17,7 @@ import { NzIconModule } from 'ng-zorro-antd/icon'; - + `, styles: [ diff --git a/components/badge/demo/change.ts b/components/badge/demo/change.ts index c6910a8057f..14f9e6b19b1 100644 --- a/components/badge/demo/change.ts +++ b/components/badge/demo/change.ts @@ -15,8 +15,8 @@ import { NzSwitchModule } from 'ng-zorro-antd/switch'; - - + +
diff --git a/components/badge/demo/dot.ts b/components/badge/demo/dot.ts index 44ebf2ba9a0..210dddd89e7 100644 --- a/components/badge/demo/dot.ts +++ b/components/badge/demo/dot.ts @@ -8,10 +8,10 @@ import { NzIconModule } from 'ng-zorro-antd/icon'; imports: [NzBadgeModule, NzIconModule], template: ` - + - + Link something @@ -23,7 +23,7 @@ import { NzIconModule } from 'ng-zorro-antd/icon'; margin-right: 20px; } - [nz-icon] { + nz-icon { width: 16px; height: 16px; line-height: 16px; diff --git a/components/badge/demo/no-wrapper.ts b/components/badge/demo/no-wrapper.ts index 29913237a24..22319557255 100644 --- a/components/badge/demo/no-wrapper.ts +++ b/components/badge/demo/no-wrapper.ts @@ -20,7 +20,7 @@ import { NzSwitchModule } from 'ng-zorro-antd/switch'; - + `, diff --git a/components/breadcrumb/breadcrumb-item.component.ts b/components/breadcrumb/breadcrumb-item.component.ts index 1adfb887c4c..cd9b1fddf1b 100644 --- a/components/breadcrumb/breadcrumb-item.component.ts +++ b/components/breadcrumb/breadcrumb-item.component.ts @@ -24,7 +24,7 @@ import { NzBreadCrumbSeparatorComponent } from './breadcrumb-separator.component @if (!!nzOverlay) { - + } @else { diff --git a/components/breadcrumb/demo/separator.ts b/components/breadcrumb/demo/separator.ts index 68cb16d3ae0..1bf52e380fd 100644 --- a/components/breadcrumb/demo/separator.ts +++ b/components/breadcrumb/demo/separator.ts @@ -24,7 +24,7 @@ import { NzIconModule } from 'ng-zorro-antd/icon'; An Application - + `, styles: [ ` diff --git a/components/breadcrumb/demo/with-icon.ts b/components/breadcrumb/demo/with-icon.ts index e048ebd6c2f..d595919da06 100644 --- a/components/breadcrumb/demo/with-icon.ts +++ b/components/breadcrumb/demo/with-icon.ts @@ -9,11 +9,11 @@ import { NzIconModule } from 'ng-zorro-antd/icon'; template: ` - + - + Application List diff --git a/components/button/button.component.ts b/components/button/button.component.ts index 00c9c28acfd..9a5a01551af 100644 --- a/components/button/button.component.ts +++ b/components/button/button.component.ts @@ -48,7 +48,7 @@ const NZ_CONFIG_MODULE_NAME: NzConfigKey = 'button'; encapsulation: ViewEncapsulation.None, template: ` @if (nzLoading) { - + } `, @@ -121,7 +121,7 @@ export class NzButtonComponent implements OnChanges, AfterViewInit, AfterContent // ignore icon and comment const noSpan = listOfNode.filter(node => { - return !(node.nodeName === '#comment' || !!(node as HTMLElement)?.attributes?.getNamedItem('nz-icon')); + return !(node.nodeName === '#comment' || !!(node as HTMLElement)?.classList?.contains('anticon')); }).length == 0; return !!this.nzIconDirectiveElement && noSpan && noText; } diff --git a/components/button/button.spec.ts b/components/button/button.spec.ts index f6642511cc6..c3ae35ca16e 100644 --- a/components/button/button.spec.ts +++ b/components/button/button.spec.ts @@ -321,7 +321,7 @@ export class TestButtonComponent { imports: [NzIconModule, NzButtonModule], template: ` ` @@ -340,7 +340,7 @@ export class TestButtonBindingComponent { template: ` ` }) @@ -355,7 +355,7 @@ export class TestButtonWithIconComponent implements OnInit { imports: [NzIconModule, NzButtonModule], template: ` ` }) @@ -407,7 +407,7 @@ export class TestButtonIconOnlyWithoutIconComponent {} imports: [NzIconModule, NzButtonModule], template: ` ` }) diff --git a/components/button/demo/button-group.ts b/components/button/demo/button-group.ts index e2d5a9d7f0e..c3d015fef30 100644 --- a/components/button/demo/button-group.ts +++ b/components/button/demo/button-group.ts @@ -26,17 +26,17 @@ import { NzIconModule } from 'ng-zorro-antd/icon';

With Icon

- - + + `, styles: [ diff --git a/components/button/demo/icon.ts b/components/button/demo/icon.ts index 036ae1e1465..af031fa9747 100644 --- a/components/button/demo/icon.ts +++ b/components/button/demo/icon.ts @@ -8,29 +8,29 @@ import { NzIconModule } from 'ng-zorro-antd/icon'; imports: [NzButtonModule, NzIconModule], template: `
- + - + `, diff --git a/components/button/demo/loading.ts b/components/button/demo/loading.ts index 01307ed81dd..2d9e61cab03 100644 --- a/components/button/demo/loading.ts +++ b/components/button/demo/loading.ts @@ -8,14 +8,14 @@ import { NzIconModule } from 'ng-zorro-antd/icon'; imports: [NzButtonModule, NzIconModule], template: `

diff --git a/components/button/demo/multiple.ts b/components/button/demo/multiple.ts index bb1a16ad34c..fa7f52c14a8 100644 --- a/components/button/demo/multiple.ts +++ b/components/button/demo/multiple.ts @@ -12,7 +12,7 @@ import { NzIconModule } from 'ng-zorro-antd/icon';
    diff --git a/components/button/demo/size.ts b/components/button/demo/size.ts index b4d12d8ac86..486e190e7d8 100644 --- a/components/button/demo/size.ts +++ b/components/button/demo/size.ts @@ -22,31 +22,31 @@ import { NzRadioModule } from 'ng-zorro-antd/radio'; Link

    `, diff --git a/components/card/demo/loading.ts b/components/card/demo/loading.ts index 9aa6991f74e..a9b0264207e 100644 --- a/components/card/demo/loading.ts +++ b/components/card/demo/loading.ts @@ -32,13 +32,13 @@ import { NzSwitchModule } from 'ng-zorro-antd/switch'; - + - + - + ` }) diff --git a/components/card/demo/meta.ts b/components/card/demo/meta.ts index 3648ba605c5..35ec0abbd2b 100644 --- a/components/card/demo/meta.ts +++ b/components/card/demo/meta.ts @@ -22,13 +22,13 @@ import { NzIconModule } from 'ng-zorro-antd/icon'; example - + - + - + ` }) diff --git a/components/cascader/cascader-option.component.ts b/components/cascader/cascader-option.component.ts index 98a8456b7e4..d71daf348e9 100644 --- a/components/cascader/cascader-option.component.ts +++ b/components/cascader/cascader-option.component.ts @@ -10,15 +10,15 @@ import { ChangeDetectorRef, Component, ElementRef, + EventEmitter, Input, OnInit, + Output, TemplateRef, ViewEncapsulation, - numberAttribute, + booleanAttribute, inject, - Output, - EventEmitter, - booleanAttribute + numberAttribute } from '@angular/core'; import { NzHighlightModule } from 'ng-zorro-antd/core/highlight'; @@ -60,10 +60,10 @@ import { NzCascaderOption } from './typings'; @if (!node.isLeaf || node.children?.length || node.isLoading) {
    @if (node.isLoading) { - + } @else { - + }
    diff --git a/components/cascader/cascader.component.ts b/components/cascader/cascader.component.ts index 8686c05e535..5d4908d43e2 100644 --- a/components/cascader/cascader.component.ts +++ b/components/cascader/cascader.component.ts @@ -9,31 +9,31 @@ import { CdkConnectedOverlay, ConnectionPositionPair, OverlayModule } from '@ang import { _getEventTarget } from '@angular/cdk/platform'; import { SlicePipe } from '@angular/common'; import { + booleanAttribute, ChangeDetectionStrategy, ChangeDetectorRef, Component, + computed, ElementRef, EventEmitter, + forwardRef, HostListener, + inject, Input, NgZone, + numberAttribute, OnChanges, OnDestroy, OnInit, Output, QueryList, Renderer2, + signal, SimpleChanges, TemplateRef, ViewChild, ViewChildren, - ViewEncapsulation, - booleanAttribute, - computed, - forwardRef, - inject, - numberAttribute, - signal + ViewEncapsulation } from '@angular/core'; import { ControlValueAccessor, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms'; import { BehaviorSubject, merge, Observable, of } from 'rxjs'; @@ -140,9 +140,9 @@ const defaultDisplayRender = (labels: string[]): string => labels.join(' / '); @if (nzShowArrow) { @if (!isLoading) { - + } @else { - + } @if (hasFeedback && !!status) { diff --git a/components/cascader/cascader.spec.ts b/components/cascader/cascader.spec.ts index a3fd40f6cb2..840fd8caac2 100644 --- a/components/cascader/cascader.spec.ts +++ b/components/cascader/cascader.spec.ts @@ -407,7 +407,7 @@ describe('cascader', () => { expect(testComponent.values!.length).toBe(3); fixture.detectChanges(); spyOn(testComponent, 'onClear'); - cascader.nativeElement.querySelector('.ant-select-clear span[nz-icon]').click(); + cascader.nativeElement.querySelector('.ant-select-clear nz-icon').click(); fixture.detectChanges(); expect(testComponent.values!.length).toBe(0); expect(testComponent.onClear).toHaveBeenCalled(); diff --git a/components/code-editor/demo/config.ts b/components/code-editor/demo/config.ts index 9c590b46d6b..f40fbb191f3 100644 --- a/components/code-editor/demo/config.ts +++ b/components/code-editor/demo/config.ts @@ -21,10 +21,10 @@ import { NzTypographyModule } from 'ng-zorro-antd/typography'; >

    - + - + ` diff --git a/components/code-editor/style/index.less b/components/code-editor/style/index.less index 07dab8ed64d..bbcd694823e 100644 --- a/components/code-editor/style/index.less +++ b/components/code-editor/style/index.less @@ -31,7 +31,8 @@ background: transparent; i, - span[nz-icon] { + span[nz-icon], + nz-icon { position: relative; right: 4px; cursor: pointer; diff --git a/components/collapse/collapse.spec.ts b/components/collapse/collapse.spec.ts index eb6742cc944..9c2426e69ef 100644 --- a/components/collapse/collapse.spec.ts +++ b/components/collapse/collapse.spec.ts @@ -249,7 +249,7 @@ export class NzTestCollapseTemplateComponent {}

    Panel01

    - + ` diff --git a/components/collapse/demo/custom.ts b/components/collapse/demo/custom.ts index 27e0118add4..83277259a40 100644 --- a/components/collapse/demo/custom.ts +++ b/components/collapse/demo/custom.ts @@ -26,7 +26,7 @@ interface Panel {

    {{ panel.name }} content

    {{ active }} - + } diff --git a/components/collapse/demo/extra.ts b/components/collapse/demo/extra.ts index 940768b8482..533bcfc9c66 100644 --- a/components/collapse/demo/extra.ts +++ b/components/collapse/demo/extra.ts @@ -26,7 +26,7 @@ import { NzSelectModule } from 'ng-zorro-antd/select'; - +
    Expand Icon Position: diff --git a/components/core/form/nz-form-item-feedback-icon.component.ts b/components/core/form/nz-form-item-feedback-icon.component.ts index c1d85468c03..1ba2bac0bfa 100644 --- a/components/core/form/nz-form-item-feedback-icon.component.ts +++ b/components/core/form/nz-form-item-feedback-icon.component.ts @@ -32,7 +32,7 @@ const iconTypeMap = { changeDetection: ChangeDetectionStrategy.OnPush, template: ` @if (iconType) { - + } `, host: { diff --git a/components/core/transition-patch/transition-patch.directive.ts b/components/core/transition-patch/transition-patch.directive.ts index c889802ba6b..8e349570e36 100644 --- a/components/core/transition-patch/transition-patch.directive.ts +++ b/components/core/transition-patch/transition-patch.directive.ts @@ -14,7 +14,7 @@ import { NzSafeAny } from 'ng-zorro-antd/core/types'; */ @Directive({ selector: - '[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group' + '[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group' }) export class NzTransitionPatchDirective implements AfterViewInit, OnChanges { @Input() hidden: NzSafeAny = null; diff --git a/components/cron-expression/cron-expression-preview.component.ts b/components/cron-expression/cron-expression-preview.component.ts index dc6bbd0b9c0..80ceb695cce 100644 --- a/components/cron-expression/cron-expression-preview.component.ts +++ b/components/cron-expression/cron-expression-preview.component.ts @@ -51,9 +51,9 @@ import { NzIconModule } from 'ng-zorro-antd/icon';
      @if (isExpand) { -
    • +
    • } @else { -
    • +
    • }
    `, diff --git a/components/cron-expression/demo/shortcuts.ts b/components/cron-expression/demo/shortcuts.ts index d80b2470dfd..fe88837eb26 100644 --- a/components/cron-expression/demo/shortcuts.ts +++ b/components/cron-expression/demo/shortcuts.ts @@ -18,7 +18,7 @@ import { NzIconModule } from 'ng-zorro-antd/icon';
      diff --git a/components/date-picker/date-picker.component.ts b/components/date-picker/date-picker.component.ts index 3d62a47e3b5..b1e8c2a701e 100644 --- a/components/date-picker/date-picker.component.ts +++ b/components/date-picker/date-picker.component.ts @@ -130,7 +130,7 @@ export type NzPlacement = 'bottomLeft' | 'bottomRight' | 'topLeft' | 'topRight'; @if (nzSeparator) { {{ nzSeparator }} } @else { - + } @@ -167,13 +167,13 @@ export type NzPlacement = 'bottomLeft' | 'bottomRight' | 'topLeft' | 'topRight';
      @if (showClear) { - + } - + @if (hasFeedback && !!status) { diff --git a/components/divider/demo/horizontal.ts b/components/divider/demo/horizontal.ts index e2ae1888839..1fe754b6b6b 100644 --- a/components/divider/demo/horizontal.ts +++ b/components/divider/demo/horizontal.ts @@ -24,7 +24,7 @@ import { NzIconModule } from 'ng-zorro-antd/icon';

      - + Add diff --git a/components/divider/divider.spec.ts b/components/divider/divider.spec.ts index 8a965388d42..ed3118e41df 100644 --- a/components/divider/divider.spec.ts +++ b/components/divider/divider.spec.ts @@ -113,7 +113,7 @@ class TestDividerComponent { template: ` - + Add diff --git a/components/drawer/drawer.component.ts b/components/drawer/drawer.component.ts index 51374b3ad31..c0c2f70173a 100644 --- a/components/drawer/drawer.component.ts +++ b/components/drawer/drawer.component.ts @@ -96,7 +96,7 @@ const NZ_CONFIG_MODULE_NAME: NzConfigKey = 'drawer'; @if (nzClosable) { } diff --git a/components/drawer/drawer.spec.ts b/components/drawer/drawer.spec.ts index f3a937dfe4a..3188877095e 100644 --- a/components/drawer/drawer.spec.ts +++ b/components/drawer/drawer.spec.ts @@ -804,7 +804,7 @@ describe('NzDrawerService', () => { template: ` - + title diff --git a/components/dropdown/demo/basic.ts b/components/dropdown/demo/basic.ts index ed9c3d841f3..32e1efce902 100644 --- a/components/dropdown/demo/basic.ts +++ b/components/dropdown/demo/basic.ts @@ -9,7 +9,7 @@ import { NzIconModule } from 'ng-zorro-antd/icon'; template: ` Hover me - +
        diff --git a/components/dropdown/demo/dropdown-button.ts b/components/dropdown/demo/dropdown-button.ts index b30fa027dbd..f18ba5b980f 100644 --- a/components/dropdown/demo/dropdown-button.ts +++ b/components/dropdown/demo/dropdown-button.ts @@ -11,24 +11,24 @@ import { NzIconModule } from 'ng-zorro-antd/icon';
          diff --git a/components/dropdown/demo/event.ts b/components/dropdown/demo/event.ts index c1dc8648f47..5c1627abe59 100644 --- a/components/dropdown/demo/event.ts +++ b/components/dropdown/demo/event.ts @@ -9,7 +9,7 @@ import { NzIconModule } from 'ng-zorro-antd/icon'; template: ` Hover me, Click menu item - +
            diff --git a/components/dropdown/demo/item.ts b/components/dropdown/demo/item.ts index 84adbf9fa37..d36d8d0e4cc 100644 --- a/components/dropdown/demo/item.ts +++ b/components/dropdown/demo/item.ts @@ -9,7 +9,7 @@ import { NzIconModule } from 'ng-zorro-antd/icon'; template: ` Hover me - +
              diff --git a/components/dropdown/demo/overlay-visible.ts b/components/dropdown/demo/overlay-visible.ts index 0d3288af314..888ab6f0bf6 100644 --- a/components/dropdown/demo/overlay-visible.ts +++ b/components/dropdown/demo/overlay-visible.ts @@ -9,7 +9,7 @@ import { NzIconModule } from 'ng-zorro-antd/icon'; template: ` Hover me - +
                diff --git a/components/dropdown/demo/sub-menu.ts b/components/dropdown/demo/sub-menu.ts index 6e5e3061a5d..9ed42f0e9f8 100644 --- a/components/dropdown/demo/sub-menu.ts +++ b/components/dropdown/demo/sub-menu.ts @@ -9,7 +9,7 @@ import { NzIconModule } from 'ng-zorro-antd/icon'; template: ` Cascading menu - +
                  diff --git a/components/dropdown/demo/trigger.ts b/components/dropdown/demo/trigger.ts index 083ddbeec1b..5942560c447 100644 --- a/components/dropdown/demo/trigger.ts +++ b/components/dropdown/demo/trigger.ts @@ -9,7 +9,7 @@ import { NzIconModule } from 'ng-zorro-antd/icon'; template: ` Click me - +
                    diff --git a/components/empty/demo/config.ts b/components/empty/demo/config.ts index 0a18007fcbc..ce663117100 100644 --- a/components/empty/demo/config.ts +++ b/components/empty/demo/config.ts @@ -66,7 +66,7 @@ import { NzTreeSelectModule } from 'ng-zorro-antd/tree-select';
                    - +

                    Data Not Found in {{ name }}

                    diff --git a/components/float-button/float-button-content.component.ts b/components/float-button/float-button-content.component.ts index d3769b39910..a6750c5566b 100644 --- a/components/float-button/float-button-content.component.ts +++ b/components/float-button/float-button-content.component.ts @@ -32,7 +32,7 @@ import { NzIconModule } from 'ng-zorro-antd/icon'; } } @else {
                    - +
                    } diff --git a/components/float-button/float-button-group.component.spec.ts b/components/float-button/float-button-group.component.spec.ts index 5637e03dda3..c6ae3b1c7f9 100644 --- a/components/float-button/float-button-group.component.spec.ts +++ b/components/float-button/float-button-group.component.spec.ts @@ -128,7 +128,7 @@ describe('nz-float-button-group RTL', () => { > - + ` }) diff --git a/components/float-button/float-button-group.component.ts b/components/float-button/float-button-group.component.ts index afa2e0d21ae..0f369acebd5 100644 --- a/components/float-button/float-button-group.component.ts +++ b/components/float-button/float-button-group.component.ts @@ -56,7 +56,7 @@ import { NzFloatButtonComponent } from './float-button.component'; } } - + `, host: { diff --git a/components/float-button/float-button-top.component.ts b/components/float-button/float-button-top.component.ts index 2a04a61c771..8bd311656c3 100644 --- a/components/float-button/float-button-top.component.ts +++ b/components/float-button/float-button-top.component.ts @@ -55,7 +55,7 @@ const passiveEventListenerOptions = normalizePassiveListenerOptions({ passive: t [nzShape]="nzShape" > - + `, diff --git a/components/float-button/float-button.component.spec.ts b/components/float-button/float-button.component.spec.ts index 44d22036287..3c5ff8ba0cc 100644 --- a/components/float-button/float-button.component.spec.ts +++ b/components/float-button/float-button.component.spec.ts @@ -97,7 +97,7 @@ describe('nz-float-button RTL', () => { (nzOnClick)="onClick($event)" > - + HELP ` diff --git a/components/form/demo/advanced-search.ts b/components/form/demo/advanced-search.ts index 6bdb63738fc..85256d9c792 100644 --- a/components/form/demo/advanced-search.ts +++ b/components/form/demo/advanced-search.ts @@ -34,7 +34,7 @@ import { NzInputModule } from 'ng-zorro-antd/input'; Collapse - + diff --git a/components/form/demo/dynamic-form-item.ts b/components/form/demo/dynamic-form-item.ts index a825c4fadda..9aebe1cc58b 100644 --- a/components/form/demo/dynamic-form-item.ts +++ b/components/form/demo/dynamic-form-item.ts @@ -42,7 +42,7 @@ import { NzInputModule } from 'ng-zorro-antd/input'; diff --git a/components/form/form-label.component.ts b/components/form/form-label.component.ts index 1b44d9ac1fb..588026078c4 100644 --- a/components/form/form-label.component.ts +++ b/components/form/form-label.component.ts @@ -47,7 +47,7 @@ function toTooltipIcon(value: string | NzFormTooltipIcon): Required - + } diff --git a/components/hash-code/hash-code.component.ts b/components/hash-code/hash-code.component.ts index bdc14ad3653..3094f15c47d 100644 --- a/components/hash-code/hash-code.component.ts +++ b/components/hash-code/hash-code.component.ts @@ -30,7 +30,7 @@ import { NzModeType } from './typings';
                    {{ nzTitle }}
                    - +
                    - +
                    } diff --git a/components/input-number-legacy/demo/group.ts b/components/input-number-legacy/demo/group.ts index 12e0f2f612f..14595a5dd50 100644 --- a/components/input-number-legacy/demo/group.ts +++ b/components/input-number-legacy/demo/group.ts @@ -42,7 +42,7 @@ import { NzSpaceModule } from 'ng-zorro-antd/space'; diff --git a/components/input-number-legacy/input-number-group-slot.component.ts b/components/input-number-legacy/input-number-group-slot.component.ts index 8d20589b6bc..043e4166a07 100644 --- a/components/input-number-legacy/input-number-group-slot.component.ts +++ b/components/input-number-legacy/input-number-group-slot.component.ts @@ -18,7 +18,7 @@ import { NzIconModule } from 'ng-zorro-antd/icon'; changeDetection: ChangeDetectionStrategy.OnPush, template: ` @if (icon) { - + } {{ template }} diff --git a/components/input-number-legacy/input-number-group.spec.ts b/components/input-number-legacy/input-number-group.spec.ts index 45cc1beb3c7..b40c7f56ca0 100644 --- a/components/input-number-legacy/input-number-group.spec.ts +++ b/components/input-number-legacy/input-number-group.spec.ts @@ -419,7 +419,7 @@ export class NzTestInputNumberGroupMixComponent {} - + } @else { diff --git a/components/input-number-legacy/input-number.component.ts b/components/input-number-legacy/input-number.component.ts index d76a1d84c90..c1668b42375 100644 --- a/components/input-number-legacy/input-number.component.ts +++ b/components/input-number-legacy/input-number.component.ts @@ -63,7 +63,7 @@ import { NZ_SPACE_COMPACT_ITEM_TYPE, NZ_SPACE_COMPACT_SIZE, NzSpaceCompactItemDi (mousedown)="up($event)" [class.ant-input-number-handler-up-disabled]="disabledUp" > - + - +
                    diff --git a/components/input/demo/presuffix.ts b/components/input/demo/presuffix.ts index 6db40c0addd..8245999d367 100644 --- a/components/input/demo/presuffix.ts +++ b/components/input/demo/presuffix.ts @@ -11,9 +11,9 @@ import { NzToolTipModule } from 'ng-zorro-antd/tooltip'; - + - +

                    diff --git a/components/input/demo/search-input.ts b/components/input/demo/search-input.ts index 99fc1944655..9e315cd1174 100644 --- a/components/input/demo/search-input.ts +++ b/components/input/demo/search-input.ts @@ -13,7 +13,7 @@ import { NzInputModule } from 'ng-zorro-antd/input'; - +

                    @@ -21,7 +21,7 @@ import { NzInputModule } from 'ng-zorro-antd/input'; - +

                    diff --git a/components/input/demo/status.ts b/components/input/demo/status.ts index 34b2998fa5c..342d463d258 100644 --- a/components/input/demo/status.ts +++ b/components/input/demo/status.ts @@ -19,7 +19,7 @@ import { NzSpaceModule } from 'ng-zorro-antd/space'; - + ` diff --git a/components/input/input-group-slot.component.ts b/components/input/input-group-slot.component.ts index c5a77f53070..f8e6646efb4 100644 --- a/components/input/input-group-slot.component.ts +++ b/components/input/input-group-slot.component.ts @@ -15,7 +15,7 @@ import { NzIconModule } from 'ng-zorro-antd/icon'; changeDetection: ChangeDetectionStrategy.OnPush, template: ` @if (icon) { - + } {{ template }} diff --git a/components/input/input-group.spec.ts b/components/input/input-group.spec.ts index fc88ca39055..e14e789198b 100644 --- a/components/input/input-group.spec.ts +++ b/components/input/input-group.spec.ts @@ -398,7 +398,7 @@ export class NzTestInputGroupColComponent {} - + } @else { diff --git a/components/layout/demo/custom-trigger.ts b/components/layout/demo/custom-trigger.ts index d49f6872294..185cba1c829 100644 --- a/components/layout/demo/custom-trigger.ts +++ b/components/layout/demo/custom-trigger.ts @@ -27,7 +27,7 @@ import { NzMenuModule } from 'ng-zorro-antd/menu';
                • - + File
                diff --git a/components/layout/demo/fixed-sider.ts b/components/layout/demo/fixed-sider.ts index 2f58a7e18b1..efa5a70613c 100644 --- a/components/layout/demo/fixed-sider.ts +++ b/components/layout/demo/fixed-sider.ts @@ -13,35 +13,35 @@ import { NzMenuModule } from 'ng-zorro-antd/menu';
                • - + nav 1
                • - + nav 2
                • - + nav 3
                • - + nav 4
                • - + nav 5
                • - + nav 6
                • - + nav 7
                • - + nav 8
                diff --git a/components/layout/demo/responsive.ts b/components/layout/demo/responsive.ts index 9135f786f40..c9b9b34fffd 100644 --- a/components/layout/demo/responsive.ts +++ b/components/layout/demo/responsive.ts @@ -13,19 +13,19 @@ import { NzMenuModule } from 'ng-zorro-antd/menu';
                • - + nav 1
                • - + nav 2
                • - + nav 3
                • - + nav 4
                diff --git a/components/layout/demo/side.ts b/components/layout/demo/side.ts index 38ac722eb16..16970f3238e 100644 --- a/components/layout/demo/side.ts +++ b/components/layout/demo/side.ts @@ -14,11 +14,11 @@ import { NzMenuModule } from 'ng-zorro-antd/menu';
                • - + Option 1
                • - + Option 2
                • @@ -35,7 +35,7 @@ import { NzMenuModule } from 'ng-zorro-antd/menu';
              • - + File
              diff --git a/components/layout/layout.spec.ts b/components/layout/layout.spec.ts index 18033923038..b1182d29c10 100644 --- a/components/layout/layout.spec.ts +++ b/components/layout/layout.spec.ts @@ -255,7 +255,7 @@ describe('nz-layout', () => { - + ` }) @@ -316,7 +316,7 @@ export class NzLayoutSideComponent { - + ` }) diff --git a/components/layout/sider-trigger.component.ts b/components/layout/sider-trigger.component.ts index d7e80161654..104aa9914fe 100644 --- a/components/layout/sider-trigger.component.ts +++ b/components/layout/sider-trigger.component.ts @@ -33,13 +33,13 @@ import { NzIconModule } from 'ng-zorro-antd/icon'; } @if (nzReverseArrow) { - + } @else { - + } - + `, host: { diff --git a/components/list/demo/vertical.ts b/components/list/demo/vertical.ts index b4308393366..3b4a47fadcd 100644 --- a/components/list/demo/vertical.ts +++ b/components/list/demo/vertical.ts @@ -30,15 +30,15 @@ interface ItemData { {{ item.content }}
                - + 156 - + 156 - + 2
              diff --git a/components/list/list.spec.ts b/components/list/list.spec.ts index d0582673f7a..dd722495807 100644 --- a/components/list/list.spec.ts +++ b/components/list/list.spec.ts @@ -327,7 +327,7 @@ class TestListWithTemplateComponent { - + 156 diff --git a/components/mention/mention.component.ts b/components/mention/mention.component.ts index 7c5185b8b9d..ffdf7f1c024 100644 --- a/components/mention/mention.component.ts +++ b/components/mention/mention.component.ts @@ -102,7 +102,7 @@ export type MentionPlacement = 'top' | 'bottom'; @if (filteredSuggestions.length === 0) {
            • @if (nzLoading) { - + } @else { diff --git a/components/menu/demo/horizontal.ts b/components/menu/demo/horizontal.ts index 72dd9e43456..0cfb14b4276 100755 --- a/components/menu/demo/horizontal.ts +++ b/components/menu/demo/horizontal.ts @@ -9,11 +9,11 @@ import { NzMenuModule } from 'ng-zorro-antd/menu'; template: `
              • - + Navigation One
              • - + Navigation Two
              • diff --git a/components/menu/demo/inline-collapsed.ts b/components/menu/demo/inline-collapsed.ts index 93f3b3de8a7..30767b166ba 100644 --- a/components/menu/demo/inline-collapsed.ts +++ b/components/menu/demo/inline-collapsed.ts @@ -11,7 +11,7 @@ import { NzToolTipModule } from 'ng-zorro-antd/tooltip'; template: `
                • - + Navigation One
                • diff --git a/components/menu/demo/recursive.ts b/components/menu/demo/recursive.ts index 7a53c8327e5..c2592e97cf7 100644 --- a/components/menu/demo/recursive.ts +++ b/components/menu/demo/recursive.ts @@ -20,7 +20,7 @@ import { NzMenuModule } from 'ng-zorro-antd/menu'; [nzSelected]="menu.selected" > @if (menu.icon) { - + } {{ menu.title }}
                • diff --git a/components/menu/menu.spec.ts b/components/menu/menu.spec.ts index 05979f808d8..40bab126911 100644 --- a/components/menu/menu.spec.ts +++ b/components/menu/menu.spec.ts @@ -568,7 +568,7 @@ describe('menu', () => { [style.width.px]="width" > - + Navigation Three - Submenu
                    @@ -622,7 +622,7 @@ export class NzTestMenuHorizontalComponent {
                    • - + Navigation One
                        @@ -648,7 +648,7 @@ export class NzTestMenuInlineComponent { @for (l1 of menus; track l1) {
                      • - + {{ l1.text }}
                          @@ -687,11 +687,11 @@ export class NzTestMenuNgForComponent { template: `
                          • - + Navigation One
                          • - + Navigation Two
                          • @@ -808,7 +808,7 @@ export class NzTestNgIfMenuComponent { template: `
                            • - + Navigation One
                            • @@ -827,11 +827,11 @@ export class NzTestSubMenuSelectedComponent {} template: `
                              • - + Navigation One
                              • diff --git a/components/menu/submenu-title.component.ts b/components/menu/submenu-title.component.ts index e6851caf727..e08f2e2c9ea 100644 --- a/components/menu/submenu-title.component.ts +++ b/components/menu/submenu-title.component.ts @@ -31,7 +31,7 @@ import { NzMenuModeType, NzSubmenuTrigger } from './menu.types'; changeDetection: ChangeDetectionStrategy.OnPush, template: ` @if (nzIcon) { - + } {{ nzTitle }} @@ -41,10 +41,10 @@ import { NzMenuModeType, NzSubmenuTrigger } from './menu.types'; @switch (dir) { @case ('rtl') { - + } @default { - + } } diff --git a/components/message/message.component.ts b/components/message/message.component.ts index 682b83b8762..184374c97d1 100644 --- a/components/message/message.component.ts +++ b/components/message/message.component.ts @@ -41,19 +41,19 @@ import { NzMessageData } from './typings';
                                @switch (instance.type) { @case ('success') { - + } @case ('info') { - + } @case ('warning') { - + } @case ('error') { - + } @case ('loading') { - + } } diff --git a/components/modal/modal-close.component.ts b/components/modal/modal-close.component.ts index d0ef06f8026..3c8869dec4c 100644 --- a/components/modal/modal-close.component.ts +++ b/components/modal/modal-close.component.ts @@ -16,7 +16,7 @@ import { ModalOptions } from './modal-types'; template: ` - + `, diff --git a/components/modal/modal-confirm-container.component.ts b/components/modal/modal-confirm-container.component.ts index cc9aa94dc69..e15168c104a 100644 --- a/components/modal/modal-confirm-container.component.ts +++ b/components/modal/modal-confirm-container.component.ts @@ -47,7 +47,7 @@ import { BaseModalContainerComponent } from './modal-container.directive';
                                - + diff --git a/components/notification/demo/custom-icon.ts b/components/notification/demo/custom-icon.ts index 24567a6d615..8bce2875150 100644 --- a/components/notification/demo/custom-icon.ts +++ b/components/notification/demo/custom-icon.ts @@ -12,7 +12,7 @@ import { NzNotificationService } from 'ng-zorro-antd/notification';
                                - +
                                Notification Title
                                diff --git a/components/notification/demo/placement.ts b/components/notification/demo/placement.ts index a822f588115..d95b149916f 100644 --- a/components/notification/demo/placement.ts +++ b/components/notification/demo/placement.ts @@ -10,29 +10,29 @@ import { NzNotificationPlacement, NzNotificationService } from 'ng-zorro-antd/no imports: [NzButtonModule, NzDividerModule, NzIconModule], template: ` `, diff --git a/components/notification/notification.component.ts b/components/notification/notification.component.ts index 60726f88e0e..832374e7a4b 100644 --- a/components/notification/notification.component.ts +++ b/components/notification/notification.component.ts @@ -92,10 +92,10 @@ import { NzNotificationData } from './typings'; @if (instance.options?.nzCloseIcon) { - + } @else { - + } diff --git a/components/page-header/demo/content.ts b/components/page-header/demo/content.ts index 9ce7815393d..b5c37992637 100644 --- a/components/page-header/demo/content.ts +++ b/components/page-header/demo/content.ts @@ -67,7 +67,7 @@ import { NzTypographyModule } from 'ng-zorro-antd/typography'; nzPlacement="bottomRight" style="border: none; padding: 0" > - + diff --git a/components/page-header/page-header.component.ts b/components/page-header/page-header.component.ts index 0ecd2f9e743..293242b2588 100644 --- a/components/page-header/page-header.component.ts +++ b/components/page-header/page-header.component.ts @@ -47,7 +47,7 @@ const NZ_CONFIG_MODULE_NAME: NzConfigKey = 'pageHeader';
                                - +
                                diff --git a/components/page-header/page-header.spec.ts b/components/page-header/page-header.spec.ts index 6dd481e37be..170fc5d1cc6 100644 --- a/components/page-header/page-header.spec.ts +++ b/components/page-header/page-header.spec.ts @@ -98,7 +98,7 @@ describe('NzPageHeaderComponent', () => { const fixture = TestBed.createComponent(NzDemoPageHeaderBasicComponent); const pageHeader = fixture.debugElement.query(By.directive(NzPageHeaderComponent)); fixture.detectChanges(); - expect(pageHeader.nativeElement.querySelector('.ant-page-header-back span.anticon-arrow-left')).toBeTruthy(); + expect(pageHeader.nativeElement.querySelector('.ant-page-header-back .anticon-arrow-left')).toBeTruthy(); }); it('should does not have an default back icon', () => { @@ -147,7 +147,7 @@ describe('NzPageHeaderComponent', () => { it('should have an default back icon', () => { fixture.detectChanges(); - expect(pageHeader.nativeElement.querySelector('.ant-page-header-back span.anticon-arrow-right')).toBeTruthy(); + expect(pageHeader.nativeElement.querySelector('.ant-page-header-back .anticon-arrow-right')).toBeTruthy(); }); }); }); diff --git a/components/pagination/pagination-item.component.ts b/components/pagination/pagination-item.component.ts index 5af4031a3f1..b5a8a2059c6 100644 --- a/components/pagination/pagination-item.component.ts +++ b/components/pagination/pagination-item.component.ts @@ -22,11 +22,11 @@ import { NzIconModule } from 'ng-zorro-antd/icon'; import { PaginationItemRenderContext, PaginationItemType } from './pagination.types'; @Component({ - selector: 'li[nz-pagination-item]', - preserveWhitespaces: false, - encapsulation: ViewEncapsulation.None, - changeDetection: ChangeDetectionStrategy.OnPush, - template: ` + selector: 'li[nz-pagination-item]', + preserveWhitespaces: false, + encapsulation: ViewEncapsulation.None, + changeDetection: ChangeDetectionStrategy.OnPush, + template: ` @switch (type) { @case ('page') { @@ -35,18 +35,18 @@ import { PaginationItemRenderContext, PaginationItemType } from './pagination.ty @case ('prev') { } @case ('next') { } @@ -62,7 +62,7 @@ import { PaginationItemRenderContext, PaginationItemType } from './pagination.ty class="ant-pagination-item-link-icon" > } @else { - + } } @case ('next_5') { @@ -70,7 +70,7 @@ import { PaginationItemRenderContext, PaginationItemType } from './pagination.ty } @else { - + } } } @@ -85,20 +85,20 @@ import { PaginationItemRenderContext, PaginationItemType } from './pagination.ty [ngTemplateOutletContext]="{ $implicit: type, page: index }" /> `, - host: { - '[class.ant-pagination-prev]': `type === 'prev'`, - '[class.ant-pagination-next]': `type === 'next'`, - '[class.ant-pagination-item]': `type === 'page'`, - '[class.ant-pagination-jump-prev]': `type === 'prev_5'`, - '[class.ant-pagination-jump-prev-custom-icon]': `type === 'prev_5'`, - '[class.ant-pagination-jump-next]': `type === 'next_5'`, - '[class.ant-pagination-jump-next-custom-icon]': `type === 'next_5'`, - '[class.ant-pagination-disabled]': 'disabled', - '[class.ant-pagination-item-active]': 'active', - '[attr.title]': 'title', - '(click)': 'clickItem()' - }, - imports: [NzIconModule, NgTemplateOutlet] + host: { + '[class.ant-pagination-prev]': `type === 'prev'`, + '[class.ant-pagination-next]': `type === 'next'`, + '[class.ant-pagination-item]': `type === 'page'`, + '[class.ant-pagination-jump-prev]': `type === 'prev_5'`, + '[class.ant-pagination-jump-prev-custom-icon]': `type === 'prev_5'`, + '[class.ant-pagination-jump-next]': `type === 'next_5'`, + '[class.ant-pagination-jump-next-custom-icon]': `type === 'next_5'`, + '[class.ant-pagination-disabled]': 'disabled', + '[class.ant-pagination-item-active]': 'active', + '[attr.title]': 'title', + '(click)': 'clickItem()' + }, + imports: [NzIconModule, NgTemplateOutlet] }) export class NzPaginationItemComponent implements OnChanges { @Input() active = false; diff --git a/components/popconfirm/demo/custom-icon.ts b/components/popconfirm/demo/custom-icon.ts index 0d2ffee8795..97fe93d3c82 100644 --- a/components/popconfirm/demo/custom-icon.ts +++ b/components/popconfirm/demo/custom-icon.ts @@ -9,7 +9,7 @@ import { NzPopconfirmModule } from 'ng-zorro-antd/popconfirm'; template: ` Delete - + ` }) diff --git a/components/popconfirm/popconfirm.ts b/components/popconfirm/popconfirm.ts index 961179572c3..0836f793a37 100644 --- a/components/popconfirm/popconfirm.ts +++ b/components/popconfirm/popconfirm.ts @@ -164,7 +164,7 @@ export class NzPopconfirmDirective extends NzTooltipBaseDirective { - +
                                {{ nzTitle }}
                                diff --git a/components/popover/demo/template.ts b/components/popover/demo/template.ts index ce1285825ec..5dd4c233042 100644 --- a/components/popover/demo/template.ts +++ b/components/popover/demo/template.ts @@ -12,11 +12,11 @@ import { NzPopoverModule } from 'ng-zorro-antd/popover'; Render Template - + Title - + Content ` diff --git a/components/progress/demo/circle-dynamic.ts b/components/progress/demo/circle-dynamic.ts index b7dace792ce..dc03e5301a7 100644 --- a/components/progress/demo/circle-dynamic.ts +++ b/components/progress/demo/circle-dynamic.ts @@ -10,8 +10,8 @@ import { NzProgressModule } from 'ng-zorro-antd/progress'; template: ` - - + + `, styles: [ diff --git a/components/progress/demo/dynamic.ts b/components/progress/demo/dynamic.ts index caca8e813bb..c9a4a9dcb09 100644 --- a/components/progress/demo/dynamic.ts +++ b/components/progress/demo/dynamic.ts @@ -10,8 +10,8 @@ import { NzProgressModule } from 'ng-zorro-antd/progress'; template: ` - - + + ` }) diff --git a/components/progress/progress.component.ts b/components/progress/progress.component.ts index 4186c97bb77..7543f2958a0 100644 --- a/components/progress/progress.component.ts +++ b/components/progress/progress.component.ts @@ -66,7 +66,7 @@ const defaultFormatter: NzProgressFormatter = (p: number): string => `${p}%`; @if (nzShowInfo) { @if ((status === 'exception' || status === 'success') && !nzFormat) { - + } @else { {{ formatter(nzPercent) }} diff --git a/components/qr-code/demo/custom-status.ts b/components/qr-code/demo/custom-status.ts index 7f7898707aa..e795c2404c3 100644 --- a/components/qr-code/demo/custom-status.ts +++ b/components/qr-code/demo/custom-status.ts @@ -11,7 +11,7 @@ import { NzQRCodeModule } from 'ng-zorro-antd/qr-code';
                                - + success
                                diff --git a/components/qr-code/qrcode.component.ts b/components/qr-code/qrcode.component.ts index afec48cd0cc..0ce7199b5ea 100644 --- a/components/qr-code/qrcode.component.ts +++ b/components/qr-code/qrcode.component.ts @@ -54,7 +54,7 @@ import { drawCanvas, ERROR_LEVEL_MAP, plotQRCodeData } from './qrcode';

                                {{ locale.expired }}

                                diff --git a/components/rate/demo/character.ts b/components/rate/demo/character.ts index f71233a2eb7..6154b1a648e 100644 --- a/components/rate/demo/character.ts +++ b/components/rate/demo/character.ts @@ -13,7 +13,7 @@ import { NzRateModule } from 'ng-zorro-antd/rate';
                                - + A `, diff --git a/components/rate/demo/customize.ts b/components/rate/demo/customize.ts index d7ef8011752..04ccbeddac7 100644 --- a/components/rate/demo/customize.ts +++ b/components/rate/demo/customize.ts @@ -18,19 +18,19 @@ import { NzRateModule } from 'ng-zorro-antd/rate'; @switch (index) { @case (0) { - + } @case (1) { - + } @case (2) { - + } @case (3) { - + } @case (4) { - + } } diff --git a/components/rate/rate-item.component.ts b/components/rate/rate-item.component.ts index 40233ae16d4..958cd39efb7 100644 --- a/components/rate/rate-item.component.ts +++ b/components/rate/rate-item.component.ts @@ -41,7 +41,7 @@ import { NzIconModule } from 'ng-zorro-antd/icon';
                                - + `, imports: [NgTemplateOutlet, NzIconModule] diff --git a/components/result/demo/error.ts b/components/result/demo/error.ts index 22113f74ecb..5ec496895ad 100644 --- a/components/result/demo/error.ts +++ b/components/result/demo/error.ts @@ -18,12 +18,12 @@ import { NzTypographyModule } from 'ng-zorro-antd/typography';

                                The content you submitted has the following error:

                                - + Your account has been frozen Thaw immediately >

                                - + Your account is not yet eligible to apply Apply immediately >

                                diff --git a/components/result/result.component.ts b/components/result/result.component.ts index e9ce8927151..ff67c6fbe55 100644 --- a/components/result/result.component.ts +++ b/components/result/result.component.ts @@ -47,7 +47,7 @@ const ExceptionStatus = ['404', '500', '403']; @if (!isException) { @if (icon) { - + } @else { diff --git a/components/result/result.spec.ts b/components/result/result.spec.ts index 414fbf7ba35..1377ff4337e 100644 --- a/components/result/result.spec.ts +++ b/components/result/result.spec.ts @@ -14,7 +14,7 @@ import { NzResultModule } from './result.module'; imports: [NzIconModule, NzResultModule], template: ` - +
                                Content Title
                                Content SubTitle
                                Content
                                diff --git a/components/segmented/segmented-item.component.ts b/components/segmented/segmented-item.component.ts index 91f2ae080b8..136815461c3 100644 --- a/components/segmented/segmented-item.component.ts +++ b/components/segmented/segmented-item.component.ts @@ -28,7 +28,7 @@ import { NzSegmentedService } from './segmented.service';
                                @if (nzIcon) { - + diff --git a/components/select/demo/custom-content.ts b/components/select/demo/custom-content.ts index c0a2562be0f..ccc1a123f95 100644 --- a/components/select/demo/custom-content.ts +++ b/components/select/demo/custom-content.ts @@ -10,15 +10,15 @@ import { NzSelectModule } from 'ng-zorro-antd/select'; template: ` - + Windows - + Mac - + Android diff --git a/components/select/demo/custom-dropdown-menu.ts b/components/select/demo/custom-dropdown-menu.ts index 06c041e5459..4cd32ad248e 100644 --- a/components/select/demo/custom-dropdown-menu.ts +++ b/components/select/demo/custom-dropdown-menu.ts @@ -19,7 +19,7 @@ import { NzSelectModule } from 'ng-zorro-antd/select'; diff --git a/components/select/demo/custom-template.ts b/components/select/demo/custom-template.ts index 89f98c77ab1..1d57d075e63 100644 --- a/components/select/demo/custom-template.ts +++ b/components/select/demo/custom-template.ts @@ -13,7 +13,7 @@ import { NzSelectModule } from 'ng-zorro-antd/select'; - + {{ selected.nzLabel }}
                                @@ -25,7 +25,7 @@ import { NzSelectModule } from 'ng-zorro-antd/select';
                                - + {{ selected.nzLabel }}
                                diff --git a/components/select/demo/select-users.ts b/components/select/demo/select-users.ts index 4a56627d77c..4195582275a 100644 --- a/components/select/demo/select-users.ts +++ b/components/select/demo/select-users.ts @@ -32,7 +32,7 @@ interface MockUser { } } @else { - + Loading Data... } diff --git a/components/select/option-item.component.ts b/components/select/option-item.component.ts index 7048a31a1c7..20b12586266 100644 --- a/components/select/option-item.component.ts +++ b/components/select/option-item.component.ts @@ -39,7 +39,7 @@ import { NzIconModule } from 'ng-zorro-antd/icon'; @if (showState && selected) {
                                @if (!icon) { - + } @else { } diff --git a/components/select/select-arrow.component.ts b/components/select/select-arrow.component.ts index 445334516a0..75d7caa9283 100644 --- a/components/select/select-arrow.component.ts +++ b/components/select/select-arrow.component.ts @@ -25,18 +25,18 @@ import { NzIconModule } from 'ng-zorro-antd/icon'; {{ listOfValue.length }} / {{ nzMaxMultipleCount }} } @if (loading) { - + } @else { @if (showArrow && !suffixIcon) { @if (search) { - + } @else { - + } } @else { @if (suffixIcon) { - + } } diff --git a/components/select/select-clear.component.ts b/components/select/select-clear.component.ts index aad0cb1f8c8..f2f10ca0fa4 100644 --- a/components/select/select-clear.component.ts +++ b/components/select/select-clear.component.ts @@ -25,7 +25,7 @@ import { NzIconModule } from 'ng-zorro-antd/icon'; @if (clearIcon) { } @else { - + } `, host: { diff --git a/components/select/select-item.component.ts b/components/select/select-item.component.ts index 5c5dff2dfb9..658a4795af7 100644 --- a/components/select/select-item.component.ts +++ b/components/select/select-item.component.ts @@ -33,7 +33,7 @@ import { NzIconModule } from 'ng-zorro-antd/icon'; @if (deletable && !disabled) { @if (!removeIcon) { - + } @else { } diff --git a/components/skeleton/demo/list.ts b/components/skeleton/demo/list.ts index 18d481fcd1d..3bbe86c827e 100644 --- a/components/skeleton/demo/list.ts +++ b/components/skeleton/demo/list.ts @@ -20,15 +20,15 @@ import { NzSwitchModule } from 'ng-zorro-antd/switch'; > - + 156 - + 156 - + 2 diff --git a/components/slider/demo/icon-slider.ts b/components/slider/demo/icon-slider.ts index 352fbcddce3..f916f84ec19 100644 --- a/components/slider/demo/icon-slider.ts +++ b/components/slider/demo/icon-slider.ts @@ -9,9 +9,9 @@ import { NzSliderModule } from 'ng-zorro-antd/slider'; imports: [FormsModule, NzIconModule, NzSliderModule], template: `
                                - + - +
                                `, styles: [ @@ -21,7 +21,7 @@ import { NzSliderModule } from 'ng-zorro-antd/slider'; padding: 0 30px; } - [nz-icon] { + nz-icon { position: absolute; top: -2px; width: 16px; @@ -31,11 +31,11 @@ import { NzSliderModule } from 'ng-zorro-antd/slider'; color: rgba(0, 0, 0, 0.25); } - [nz-icon]:first-child { + nz-icon:first-child { left: 0; } - [nz-icon]:last-child { + nz-icon:last-child { right: 0; } diff --git a/components/space/demo/basic.ts b/components/space/demo/basic.ts index ab10d96a3a4..e22094432e8 100644 --- a/components/space/demo/basic.ts +++ b/components/space/demo/basic.ts @@ -14,7 +14,7 @@ import { NzUploadModule } from 'ng-zorro-antd/upload'; diff --git a/components/space/demo/compact-buttons.ts b/components/space/demo/compact-buttons.ts index 876e5b6a9e0..c444fab0627 100644 --- a/components/space/demo/compact-buttons.ts +++ b/components/space/demo/compact-buttons.ts @@ -12,22 +12,22 @@ import { NzToolTipModule } from 'ng-zorro-antd/tooltip'; template: `
                                  @@ -43,7 +43,7 @@ import { NzToolTipModule } from 'ng-zorro-antd/tooltip';

                                @@ -53,10 +53,10 @@ import { NzToolTipModule } from 'ng-zorro-antd/tooltip';
                                @@ -65,10 +65,10 @@ import { NzToolTipModule } from 'ng-zorro-antd/tooltip'; @@ -85,7 +85,7 @@ import { NzToolTipModule } from 'ng-zorro-antd/tooltip';
                              ` diff --git a/components/space/demo/compact.ts b/components/space/demo/compact.ts index 6e86a11689d..caf000c6387 100644 --- a/components/space/demo/compact.ts +++ b/components/space/demo/compact.ts @@ -50,7 +50,7 @@ import { NzTreeSelectModule } from 'ng-zorro-antd/tree-select';
                              @@ -67,7 +67,7 @@ import { NzTreeSelectModule } from 'ng-zorro-antd/tree-select'; @@ -75,7 +75,7 @@ import { NzTreeSelectModule } from 'ng-zorro-antd/tree-select'; @@ -83,7 +83,7 @@ import { NzTreeSelectModule } from 'ng-zorro-antd/tree-select'; diff --git a/components/spin/demo/custom-indicator.ts b/components/spin/demo/custom-indicator.ts index ae069072228..ca00c1d0ef7 100644 --- a/components/spin/demo/custom-indicator.ts +++ b/components/spin/demo/custom-indicator.ts @@ -7,12 +7,12 @@ import { NzSpinModule } from 'ng-zorro-antd/spin'; selector: 'nz-demo-spin-custom-indicator', imports: [NzIconModule, NzSpinModule], template: ` - + `, styles: [ ` - span[nz-icon] { + nz-icon { font-size: 24px; } ` diff --git a/components/spin/spin.spec.ts b/components/spin/spin.spec.ts index a0e1a453e95..879a273c7c0 100644 --- a/components/spin/spin.spec.ts +++ b/components/spin/spin.spec.ts @@ -153,7 +153,7 @@ describe('spin', () => { selector: 'nz-test-basic-spin', imports: [NzIconModule, NzSpinModule], template: ` - + - + @@ -33,7 +33,7 @@ import { NzStatisticModule } from 'ng-zorro-antd/statistic'; nzSuffix="%" [nzValueStyle]="{ color: '#CF1322' }" > - + diff --git a/components/statistic/demo/unit.ts b/components/statistic/demo/unit.ts index 6e087f2ea09..729c2fee9db 100644 --- a/components/statistic/demo/unit.ts +++ b/components/statistic/demo/unit.ts @@ -12,7 +12,7 @@ import { NzStatisticModule } from 'ng-zorro-antd/statistic'; - + diff --git a/components/steps/demo/icon.ts b/components/steps/demo/icon.ts index 5fa806c5db2..cfa18e1880c 100644 --- a/components/steps/demo/icon.ts +++ b/components/steps/demo/icon.ts @@ -12,7 +12,7 @@ import { NzStepsModule } from 'ng-zorro-antd/steps'; - + ` }) diff --git a/components/steps/step.component.ts b/components/steps/step.component.ts index 9f37109ce6e..00fc430ebc8 100644 --- a/components/steps/step.component.ts +++ b/components/steps/step.component.ts @@ -56,10 +56,10 @@ import { NzProgressFormatter, NzProgressModule } from 'ng-zorro-antd/progress';
                              } @if (nzStatus === 'finish' && !nzIcon) { - + } @if (nzStatus === 'error') { - + } @if ((nzStatus === 'process' || nzStatus === 'wait') && !nzIcon) { @@ -69,7 +69,7 @@ import { NzProgressFormatter, NzProgressModule } from 'ng-zorro-antd/progress'; @if (nzIcon) { - + } diff --git a/components/steps/steps.spec.ts b/components/steps/steps.spec.ts index 0aabf279737..5b7d151c956 100644 --- a/components/steps/steps.spec.ts +++ b/components/steps/steps.spec.ts @@ -554,7 +554,7 @@ export class NzTestOuterStepsComponent { titleTemplate descriptionTemplate - + ` }) export class NzTestInnerStepStringComponent { @@ -578,7 +578,7 @@ export class NzTestInnerStepStringComponent { titleTemplate descriptionTemplate - + ` }) export class NzTestInnerStepTemplateComponent {} diff --git a/components/switch/demo/text.ts b/components/switch/demo/text.ts index 83bdf9cb043..b3a75f7f7e6 100755 --- a/components/switch/demo/text.ts +++ b/components/switch/demo/text.ts @@ -19,8 +19,8 @@ import { NzSwitchModule } from 'ng-zorro-antd/switch'; [nzCheckedChildren]="checkedTemplate" [nzUnCheckedChildren]="unCheckedTemplate" > - - + + ` }) export class NzDemoSwitchTextComponent {} diff --git a/components/switch/switch.component.ts b/components/switch/switch.component.ts index 4c037c94d48..8a25e043de1 100644 --- a/components/switch/switch.component.ts +++ b/components/switch/switch.component.ts @@ -65,7 +65,7 @@ const NZ_CONFIG_MODULE_NAME: NzConfigKey = 'switch'; > @if (nzLoading) { - + } diff --git a/components/switch/switch.spec.ts b/components/switch/switch.spec.ts index 42797d4d9c8..86232e7b05a 100644 --- a/components/switch/switch.spec.ts +++ b/components/switch/switch.spec.ts @@ -312,8 +312,8 @@ describe('switch', () => { @Component({ imports: [FormsModule, NzIconModule, NzSwitchModule], template: ` - - + + - + + - + @@ -87,7 +87,7 @@ interface CustomColumn extends NzCustomColumn { @for (item of fix; track item; let i = $index) {
                              {{ item.name }} - +
                              }
                @@ -112,7 +112,7 @@ interface CustomColumn extends NzCustomColumn { @for (item of notFix; track item; let i = $index) {
                {{ item.name }} - +
                } diff --git a/components/table/demo/custom-filter-panel.ts b/components/table/demo/custom-filter-panel.ts index 35bab563bd1..5205c90310c 100644 --- a/components/table/demo/custom-filter-panel.ts +++ b/components/table/demo/custom-filter-panel.ts @@ -22,7 +22,7 @@ interface DataItem { Name - + Age diff --git a/components/table/demo/expand-icon.ts b/components/table/demo/expand-icon.ts index 003cf4137c3..f79f0840fab 100644 --- a/components/table/demo/expand-icon.ts +++ b/components/table/demo/expand-icon.ts @@ -29,9 +29,9 @@ import { NzTableModule } from 'ng-zorro-antd/table'; @if (!expandSet.has(data.id)) { - + } @else { - + } } diff --git a/components/table/demo/nested-table.ts b/components/table/demo/nested-table.ts index f22025aa1ce..2804ce3e3e3 100644 --- a/components/table/demo/nested-table.ts +++ b/components/table/demo/nested-table.ts @@ -79,7 +79,7 @@ interface ChildrenItemData { Pause - +
                  diff --git a/components/table/src/addon/filter.component.ts b/components/table/src/addon/filter.component.ts index 92ac8b42cbf..15eabe0fb20 100644 --- a/components/table/src/addon/filter.component.ts +++ b/components/table/src/addon/filter.component.ts @@ -56,7 +56,7 @@ interface NzThItemInterface { [nzDropdownMenu]="filterMenu" (nzVisibleChange)="onVisibleChange($event)" > - +
                  diff --git a/components/table/src/addon/selection.component.ts b/components/table/src/addon/selection.component.ts index a3f540e3658..d0b7dbdb7f3 100644 --- a/components/table/src/addon/selection.component.ts +++ b/components/table/src/addon/selection.component.ts @@ -31,7 +31,7 @@ import { NzIconModule } from 'ng-zorro-antd/icon'; @if (showRowSelection) {
                  - +
                    diff --git a/components/tabs/demo/icon.ts b/components/tabs/demo/icon.ts index 24de69eb04d..b61a7ce1b7a 100644 --- a/components/tabs/demo/icon.ts +++ b/components/tabs/demo/icon.ts @@ -11,7 +11,7 @@ import { NzTabsModule } from 'ng-zorro-antd/tabs'; @for (tab of tabs; track tab) { - + {{ tab.name }} {{ tab.name }} diff --git a/components/tabs/tab-add-button.component.ts b/components/tabs/tab-add-button.component.ts index d9965d35e62..22a733c0976 100644 --- a/components/tabs/tab-add-button.component.ts +++ b/components/tabs/tab-add-button.component.ts @@ -13,7 +13,7 @@ import { NzIconModule } from 'ng-zorro-antd/icon'; selector: 'nz-tab-add-button, button[nz-tab-add-button]', template: ` - + `, host: { diff --git a/components/tabs/tab-close-button.component.ts b/components/tabs/tab-close-button.component.ts index a1a987db7c6..afc71de8b8a 100644 --- a/components/tabs/tab-close-button.component.ts +++ b/components/tabs/tab-close-button.component.ts @@ -13,7 +13,7 @@ import { NzIconModule } from 'ng-zorro-antd/icon'; selector: 'nz-tab-close-button, button[nz-tab-close-button]', template: ` - + `, host: { diff --git a/components/tabs/tab-nav-operation.component.ts b/components/tabs/tab-nav-operation.component.ts index 6fd6e15baf0..dde86e9b31d 100644 --- a/components/tabs/tab-nav-operation.component.ts +++ b/components/tabs/tab-nav-operation.component.ts @@ -47,7 +47,7 @@ import { NzTabNavItemDirective } from './tab-nav-item.directive'; (nzVisibleChange)="menuVisChange($event)" (mouseenter)="showItems()" > - + @if (menuOpened) { diff --git a/components/tag/demo/control.ts b/components/tag/demo/control.ts index 4bec8315766..b7d87732988 100644 --- a/components/tag/demo/control.ts +++ b/components/tag/demo/control.ts @@ -18,7 +18,7 @@ import { NzTagModule } from 'ng-zorro-antd/tag'; @if (!inputVisible) { - + New Tag } @else { diff --git a/components/tag/demo/icon.ts b/components/tag/demo/icon.ts index 4d8e98650ad..386e4641367 100644 --- a/components/tag/demo/icon.ts +++ b/components/tag/demo/icon.ts @@ -8,19 +8,19 @@ import { NzTagModule } from 'ng-zorro-antd/tag'; imports: [NzIconModule, NzTagModule], template: ` - + Twitter - + Youtube - + Facebook - + LinkedIn ` diff --git a/components/tag/demo/status.ts b/components/tag/demo/status.ts index f7a0475834f..d57ee8fab82 100644 --- a/components/tag/demo/status.ts +++ b/components/tag/demo/status.ts @@ -18,23 +18,23 @@ import { NzTagModule } from 'ng-zorro-antd/tag';

                    With icon

                    - + success - + processing - + error - + warning - + default
                    diff --git a/components/tag/tag.component.ts b/components/tag/tag.component.ts index f9e5cfb38b4..921c93a3df3 100644 --- a/components/tag/tag.component.ts +++ b/components/tag/tag.component.ts @@ -40,7 +40,7 @@ import { NzIconModule } from 'ng-zorro-antd/icon'; template: ` @if (nzMode === 'closeable') { - + } `, changeDetection: ChangeDetectionStrategy.OnPush, diff --git a/components/time-picker/time-picker.component.ts b/components/time-picker/time-picker.component.ts index 3b58e214099..545733f8145 100644 --- a/components/time-picker/time-picker.component.ts +++ b/components/time-picker/time-picker.component.ts @@ -77,7 +77,7 @@ const NZ_CONFIG_MODULE_NAME: NzConfigKey = 'timePicker'; /> - + @if (hasFeedback && !!status) { diff --git a/components/timeline/demo/alternate.ts b/components/timeline/demo/alternate.ts index 190ee461e67..ba2242c3366 100644 --- a/components/timeline/demo/alternate.ts +++ b/components/timeline/demo/alternate.ts @@ -19,7 +19,7 @@ import { NzTimelineModule } from 'ng-zorro-antd/timeline'; Technical testing 2015-09-01 - + ` }) diff --git a/components/timeline/demo/custom.ts b/components/timeline/demo/custom.ts index 4fcb5f187c8..1df92934ec1 100644 --- a/components/timeline/demo/custom.ts +++ b/components/timeline/demo/custom.ts @@ -14,7 +14,7 @@ import { NzTimelineModule } from 'ng-zorro-antd/timeline'; Network problems being solved 2015-09-01 - + ` }) diff --git a/components/timeline/demo/right.ts b/components/timeline/demo/right.ts index 06e9bfa49b7..90b88c55ccd 100644 --- a/components/timeline/demo/right.ts +++ b/components/timeline/demo/right.ts @@ -14,7 +14,7 @@ import { NzTimelineModule } from 'ng-zorro-antd/timeline'; Network problems being solved 2015-09-01 - + ` }) diff --git a/components/timeline/timeline.component.ts b/components/timeline/timeline.component.ts index ba2b7c78a36..0fc12a2d4d2 100644 --- a/components/timeline/timeline.component.ts +++ b/components/timeline/timeline.component.ts @@ -70,7 +70,7 @@ import { NzTimelineMode, NzTimelinePosition } from './typings'; {{ nzPendingDot }} @if (!nzPendingDot) { - + }
                  diff --git a/components/tooltip/demo/template.ts b/components/tooltip/demo/template.ts index dd6cdab713b..b82206731bb 100644 --- a/components/tooltip/demo/template.ts +++ b/components/tooltip/demo/template.ts @@ -11,7 +11,7 @@ import { NzToolTipModule } from 'ng-zorro-antd/tooltip'; >This Tooltip has an Icon - + Tooltip With {{ thing }} `, diff --git a/components/transfer/demo/custom-item.ts b/components/transfer/demo/custom-item.ts index 1942d468bea..7ec24797d45 100644 --- a/components/transfer/demo/custom-item.ts +++ b/components/transfer/demo/custom-item.ts @@ -15,7 +15,7 @@ import { NzTransferModule, TransferItem } from 'ng-zorro-antd/transfer'; (nzChange)="change($event)" > - + {{ item.title }} diff --git a/components/transfer/transfer-list.component.ts b/components/transfer/transfer-list.component.ts index 57331a853d3..fe95d5f0562 100644 --- a/components/transfer/transfer-list.component.ts +++ b/components/transfer/transfer-list.component.ts @@ -132,7 +132,7 @@ import { NzTransferSearchComponent } from './transfer-search.component'; [class]="{ 'ant-transfer-list-content-item-disabled': disabled || item.disabled }" (click)="!(disabled || item.disabled) ? deleteItem(item) : null" > - +
                  } @else { - + @if (value && value.length > 0) { - + } `, diff --git a/components/transfer/transfer.component.ts b/components/transfer/transfer.component.ts index f974bfb3351..97e7d8014bc 100644 --- a/components/transfer/transfer.component.ts +++ b/components/transfer/transfer.component.ts @@ -83,7 +83,7 @@ import { NzTransferListComponent } from './transfer-list.component'; [nzType]="'primary'" [nzSize]="'small'" > - + @if (nzOperations[1]) { {{ nzOperations[1] }} } @@ -97,7 +97,7 @@ import { NzTransferListComponent } from './transfer-list.component'; [nzType]="'primary'" [nzSize]="'small'" > - + @if (nzOperations[0]) { {{ nzOperations[0] }} } @@ -113,7 +113,7 @@ import { NzTransferListComponent } from './transfer-list.component'; [nzType]="'primary'" [nzSize]="'small'" > - + @if (nzOperations[0]) { {{ nzOperations[0] }} } @@ -127,7 +127,7 @@ import { NzTransferListComponent } from './transfer-list.component'; [nzType]="'primary'" [nzSize]="'small'" > - + @if (nzOperations[1]) { {{ nzOperations[1] }} } diff --git a/components/transfer/transfer.spec.ts b/components/transfer/transfer.spec.ts index 0aa7c7422e0..70beee30520 100644 --- a/components/transfer/transfer.spec.ts +++ b/components/transfer/transfer.spec.ts @@ -667,7 +667,7 @@ class TestTransferComponent implements OnInit, AbstractTestTransferComponent { template: ` - + {{ item.title }} diff --git a/components/tree-select/demo/customized-icon.ts b/components/tree-select/demo/customized-icon.ts index 3b1b7f2abd2..467399489d7 100644 --- a/components/tree-select/demo/customized-icon.ts +++ b/components/tree-select/demo/customized-icon.ts @@ -25,7 +25,7 @@ import { NzTreeSelectModule } from 'ng-zorro-antd/tree-select'; - + {{ node.title }} diff --git a/components/tree-select/tree-select.spec.ts b/components/tree-select/tree-select.spec.ts index 330a226b324..5ff609db1a7 100644 --- a/components/tree-select/tree-select.spec.ts +++ b/components/tree-select/tree-select.spec.ts @@ -605,7 +605,7 @@ describe('tree-select component', () => { treeSelect.nativeElement.click(); flush(); fixture.detectChanges(); - expect(overlayContainerElement.querySelector('span.anticon.anticon-frown-o')).toBeTruthy(); + expect(overlayContainerElement.querySelector('.anticon.anticon-frown-o')).toBeTruthy(); })); }); diff --git a/components/tree-view/demo/basic.ts b/components/tree-view/demo/basic.ts index ae77cb1ea86..f4d8db65669 100644 --- a/components/tree-view/demo/basic.ts +++ b/components/tree-view/demo/basic.ts @@ -53,7 +53,7 @@ interface FlatNode { - + - + - + {{ node.name }} - + - + {{ node.name }} diff --git a/components/tree-view/demo/dynamic.ts b/components/tree-view/demo/dynamic.ts index 230b5878119..6cc7b0ed673 100644 --- a/components/tree-view/demo/dynamic.ts +++ b/components/tree-view/demo/dynamic.ts @@ -135,11 +135,11 @@ class DynamicDatasource implements DataSource { @if (!node.loading) { - + } @else { - + } {{ node.label }} diff --git a/components/tree-view/demo/editable.ts b/components/tree-view/demo/editable.ts index 325df3669ba..60381eb6300 100644 --- a/components/tree-view/demo/editable.ts +++ b/components/tree-view/demo/editable.ts @@ -61,7 +61,7 @@ interface FlatNode { {{ node.name }} @@ -73,11 +73,11 @@ interface FlatNode { - + {{ node.name }} diff --git a/components/tree-view/demo/line.ts b/components/tree-view/demo/line.ts index f79239489fc..72c1936e13c 100644 --- a/components/tree-view/demo/line.ts +++ b/components/tree-view/demo/line.ts @@ -55,7 +55,7 @@ interface FlatNode { @if (showLeafIcon) { - + } diff --git a/components/tree-view/demo/search.ts b/components/tree-view/demo/search.ts index 60e7d4e4c34..53173282a11 100644 --- a/components/tree-view/demo/search.ts +++ b/components/tree-view/demo/search.ts @@ -80,7 +80,7 @@ function filterTreeData(data: TreeNode[], value: string): FilteredTreeResult { - + @@ -91,7 +91,7 @@ function filterTreeData(data: TreeNode[], value: string): FilteredTreeResult { - + diff --git a/components/tree-view/demo/virtual-scroll.ts b/components/tree-view/demo/virtual-scroll.ts index a80cfd01396..c1bd12dceca 100644 --- a/components/tree-view/demo/virtual-scroll.ts +++ b/components/tree-view/demo/virtual-scroll.ts @@ -47,7 +47,7 @@ interface ExampleFlatNode { - + {{ node.name }} diff --git a/components/tree-view/doc/index.en-US.md b/components/tree-view/doc/index.en-US.md index 7830bfc323a..95bc20cecaa 100644 --- a/components/tree-view/doc/index.en-US.md +++ b/components/tree-view/doc/index.en-US.md @@ -81,11 +81,11 @@ A toggle which is used to expand / collapse the node. A toggle that does no actions. This can be used for placeholders or displays icons. -### [nz-icon][nztreenodetogglerotateicon] +### [nzTreeNodeToggleRotateIcon] Define an icon in the toggle, which it will automatically rotate depending on the collapse/expand state. -### [nz-icon][nztreenodetoggleactiveicon] +### [nzTreeNodeToggleActiveIcon] Define an icon in the toggle for an active style, which it can be used for the loading state. diff --git a/components/tree-view/doc/index.zh-CN.md b/components/tree-view/doc/index.zh-CN.md index 41c5cb45a93..f95f51e04df 100644 --- a/components/tree-view/doc/index.zh-CN.md +++ b/components/tree-view/doc/index.zh-CN.md @@ -79,11 +79,11 @@ import { NzTreeViewModule } from 'ng-zorro-antd/tree-view'; 不做任何操作的切换部分,可用于占位或者显示图标。 -### [nz-icon][nztreenodetogglerotateicon] +### [nztreenodetogglerotateicon] 定义切换部分中的图标,会随着展开收起状态自动旋转。 -### [nz-icon][nztreenodetoggleactiveicon] +### [nztreenodetoggleactiveicon] 定义切换部分中的图标,使其具有激活状态的样式,可用于 loading 图标。 diff --git a/components/tree-view/toggle.ts b/components/tree-view/toggle.ts index 23a134bd777..ff2a7e1156e 100644 --- a/components/tree-view/toggle.ts +++ b/components/tree-view/toggle.ts @@ -32,7 +32,7 @@ export class NzTreeNodeToggleDirective extends CdkTreeNodeToggle { } @Directive({ - selector: '[nz-icon][nzTreeNodeToggleRotateIcon]', + selector: '[nzTreeNodeToggleRotateIcon]', host: { class: 'ant-tree-switcher-icon' } @@ -40,7 +40,7 @@ export class NzTreeNodeToggleDirective extends CdkTreeNodeToggle { export class NzTreeNodeToggleRotateIconDirective {} @Directive({ - selector: '[nz-icon][nzTreeNodeToggleActiveIcon]', + selector: '[nzTreeNodeToggleActiveIcon]', host: { class: 'ant-tree-switcher-loading-icon' } diff --git a/components/tree/demo/customized-icon.ts b/components/tree/demo/customized-icon.ts index 3297daf42d3..0b1c1c9696c 100644 --- a/components/tree/demo/customized-icon.ts +++ b/components/tree/demo/customized-icon.ts @@ -17,7 +17,7 @@ import { NzTreeModule } from 'ng-zorro-antd/tree'; class="ant-tree-switcher-line-icon" > } @else { - + } diff --git a/components/tree/demo/directory.ts b/components/tree/demo/directory.ts index d76b05e410f..aba95a5dc4d 100644 --- a/components/tree/demo/directory.ts +++ b/components/tree/demo/directory.ts @@ -20,13 +20,13 @@ import { NzFormatEmitEvent, NzTreeModule, NzTreeNode } from 'ng-zorro-antd/tree' @if (!node.isLeaf) { - + {{ node.title }} created by {{ origin.author | lowercase }} } @else { - + {{ node.title }} modified by {{ origin.author | lowercase }} diff --git a/components/tree/demo/search.ts b/components/tree/demo/search.ts index fd0d75c720e..7cd6d06c224 100644 --- a/components/tree/demo/search.ts +++ b/components/tree/demo/search.ts @@ -13,7 +13,7 @@ import { NzFormatEmitEvent, NzTreeModule } from 'ng-zorro-antd/tree'; - +
                  } @else { - + } } @if (nzShowLine) { @@ -36,11 +36,11 @@ import { NzIconModule } from 'ng-zorro-antd/icon'; class="ant-tree-switcher-line-icon" > } @else { - + } } @else { - + } } `, diff --git a/components/tree/tree-node-title.component.ts b/components/tree/tree-node-title.component.ts index 8052ec30b84..e7cb8b074cd 100644 --- a/components/tree/tree-node-title.component.ts +++ b/components/tree/tree-node-title.component.ts @@ -43,7 +43,7 @@ import { NzTreeDropIndicatorComponent } from './tree-drop-indicator.component'; [class.ant-tree-iconEle]="!selectMode" [class.ant-tree-icon__customize]="!selectMode" > - + } diff --git a/components/tree/tree.spec.ts b/components/tree/tree.spec.ts index a4d8155b6c5..d5d1486a0d5 100644 --- a/components/tree/tree.spec.ts +++ b/components/tree/tree.spec.ts @@ -640,7 +640,7 @@ describe('tree', () => { (nzCheckBoxChange)="nzEvent($event)" > - + ` }) diff --git a/components/typography/demo/interactive.ts b/components/typography/demo/interactive.ts index a47bc599a16..e14fc0e9f7e 100644 --- a/components/typography/demo/interactive.ts +++ b/components/typography/demo/interactive.ts @@ -26,7 +26,7 @@ import { NzTypographyModule } from 'ng-zorro-antd/typography'; [nzCopyIcons]="['meh', 'smile']" >

                  - + you clicked!!

                  diff --git a/components/typography/text-copy.component.ts b/components/typography/text-copy.component.ts index f7b891a29a4..b3396b50c7a 100644 --- a/components/typography/text-copy.component.ts +++ b/components/typography/text-copy.component.ts @@ -42,7 +42,7 @@ import { NzToolTipModule } from 'ng-zorro-antd/tooltip'; (click)="onClick()" > - + `, diff --git a/components/typography/text-edit.component.ts b/components/typography/text-edit.component.ts index bf90c4a7fef..b36a6214412 100644 --- a/components/typography/text-edit.component.ts +++ b/components/typography/text-edit.component.ts @@ -40,7 +40,7 @@ import { NzToolTipModule } from 'ng-zorro-antd/tooltip'; @if (editing) { } @else { } diff --git a/components/upload/demo/basic.ts b/components/upload/demo/basic.ts index 95e1c5b88e2..05368a68e2d 100644 --- a/components/upload/demo/basic.ts +++ b/components/upload/demo/basic.ts @@ -15,7 +15,7 @@ import { NzUploadChangeParam, NzUploadModule } from 'ng-zorro-antd/upload'; (nzChange)="handleChange($event)" > diff --git a/components/upload/demo/default-file-list.ts b/components/upload/demo/default-file-list.ts index 7e08df85218..9362c0c2567 100644 --- a/components/upload/demo/default-file-list.ts +++ b/components/upload/demo/default-file-list.ts @@ -10,7 +10,7 @@ import { NzUploadFile, NzUploadModule } from 'ng-zorro-antd/upload'; template: ` diff --git a/components/upload/demo/directory.ts b/components/upload/demo/directory.ts index d8b7191f435..4db0a98cc1b 100644 --- a/components/upload/demo/directory.ts +++ b/components/upload/demo/directory.ts @@ -10,7 +10,7 @@ import { NzUploadModule } from 'ng-zorro-antd/upload'; template: ` diff --git a/components/upload/demo/drag.ts b/components/upload/demo/drag.ts index 56b6e45ab73..eb5ed6bbfc8 100644 --- a/components/upload/demo/drag.ts +++ b/components/upload/demo/drag.ts @@ -16,7 +16,7 @@ import { NzUploadChangeParam, NzUploadModule } from 'ng-zorro-antd/upload'; (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 73b236a82de..95e1fa50150 100644 --- a/components/upload/demo/file-list.ts +++ b/components/upload/demo/file-list.ts @@ -14,7 +14,7 @@ import { NzUploadChangeParam, NzUploadFile, NzUploadModule } from 'ng-zorro-antd (nzChange)="handleChange($event)" > diff --git a/components/upload/demo/picture-card.ts b/components/upload/demo/picture-card.ts index f4ddcbc3b68..596a8a59ed5 100644 --- a/components/upload/demo/picture-card.ts +++ b/components/upload/demo/picture-card.ts @@ -24,7 +24,7 @@ const getBase64 = (file: File): Promise => [nzPreview]="handlePreview" >

                  - +
                  Upload
                  diff --git a/components/upload/demo/picture-style.ts b/components/upload/demo/picture-style.ts index fae6063b063..be2a0ebdc12 100644 --- a/components/upload/demo/picture-style.ts +++ b/components/upload/demo/picture-style.ts @@ -14,7 +14,7 @@ import { NzUploadFile, NzUploadModule } from 'ng-zorro-antd/upload'; [(nzFileList)]="fileList1" > @@ -28,7 +28,7 @@ import { NzUploadFile, NzUploadModule } from 'ng-zorro-antd/upload'; > diff --git a/components/upload/demo/preview-file.ts b/components/upload/demo/preview-file.ts index 2fb1afd9bbf..c57fd786f4e 100644 --- a/components/upload/demo/preview-file.ts +++ b/components/upload/demo/preview-file.ts @@ -17,7 +17,7 @@ import { NzUploadFile, NzUploadModule } from 'ng-zorro-antd/upload'; [nzPreviewFile]="previewFile" > diff --git a/components/upload/demo/transform-file.ts b/components/upload/demo/transform-file.ts index 6aed0477c75..2f3254c5da9 100644 --- a/components/upload/demo/transform-file.ts +++ b/components/upload/demo/transform-file.ts @@ -11,7 +11,7 @@ import { NzUploadFile, NzUploadModule } from 'ng-zorro-antd/upload'; template: ` diff --git a/components/upload/demo/upload-manually.ts b/components/upload/demo/upload-manually.ts index 8050808a3b1..ec812aaa79c 100644 --- a/components/upload/demo/upload-manually.ts +++ b/components/upload/demo/upload-manually.ts @@ -13,7 +13,7 @@ import { NzUploadFile, NzUploadModule } from 'ng-zorro-antd/upload'; template: ` diff --git a/components/upload/demo/upload-with-aliyun-oss.ts b/components/upload/demo/upload-with-aliyun-oss.ts index 84a21d5ce36..3a7621a6991 100644 --- a/components/upload/demo/upload-with-aliyun-oss.ts +++ b/components/upload/demo/upload-with-aliyun-oss.ts @@ -18,7 +18,7 @@ import { NzUploadChangeParam, NzUploadFile, NzUploadModule } from 'ng-zorro-antd > Photos: diff --git a/components/upload/upload-list.component.html b/components/upload/upload-list.component.html index 28f6c9f8326..f0f01396abb 100644 --- a/components/upload/upload-list.component.html +++ b/components/upload/upload-list.component.html @@ -46,20 +46,20 @@ @switch (listType) { @case ('picture') { @if (file.isUploading) { - + } @else { - + } } @case ('picture-card') { @if (file.isUploading) { {{ locale.uploading }} } @else { - + } } @default { - + } } } @else { @@ -78,7 +78,7 @@ [attr.title]="locale.removeFile" class="ant-upload-list-item-card-actions-btn" > - + }
                  @@ -94,7 +94,7 @@ [attr.title]="locale.downloadFile" class="ant-upload-list-item-card-actions-btn" > - + } @@ -146,7 +146,7 @@ [style]="!(file.url || file.thumbUrl) ? { opacity: 0.5, 'pointer-events': 'none' } : null" (click)="handlePreview(file, $event)" > - + } @if (file.status === 'done') { diff --git a/components/upload/upload.spec.ts b/components/upload/upload.spec.ts index 15662b07062..ec87c661a55 100644 --- a/components/upload/upload.spec.ts +++ b/components/upload/upload.spec.ts @@ -1373,7 +1373,7 @@ describe('upload', () => { (nzChange)="nzChange($event)" > diff --git a/scripts/site/_site/doc/app/codebox/codebox.component.html b/scripts/site/_site/doc/app/codebox/codebox.component.html index 5994838ac43..d91f853dce0 100644 --- a/scripts/site/_site/doc/app/codebox/codebox.component.html +++ b/scripts/site/_site/doc/app/codebox/codebox.component.html @@ -19,7 +19,7 @@
                  @@ -27,9 +27,15 @@
                  @if (nzGenerateCommand) { } - @switch (theme) { diff --git a/scripts/site/_site/doc/app/components-overview/components-overview.component.html b/scripts/site/_site/doc/app/components-overview/components-overview.component.html index 23993a4323b..11af92680da 100644 --- a/scripts/site/_site/doc/app/components-overview/components-overview.component.html +++ b/scripts/site/_site/doc/app/components-overview/components-overview.component.html @@ -10,8 +10,8 @@

                  {{ language === 'en' ? 'Components Overview' : '组件总览' }}

                  } @else {

                  ng-zorro-antd - is an Angular UI lib, follow Ant Design specification, to provide high quantity UI components - for web development. + is an Angular UI lib, follow Ant Design specification, to provide high quantity UI components for web + development.

                  } @@ -28,11 +28,11 @@

                  {{ language === 'en' ? 'Components Overview' : '组件总览' }}

                  placeholder="{{ language === 'en' ? 'Search in components' : '搜索组件' }}" nzSize="large" (input)="onSearch(searchBox.value)" - /> + /> - + @@ -47,21 +47,9 @@

                  @for (component of group.children; track $index) { -
                  +
                  - +
                  diff --git a/scripts/site/_site/doc/app/footer/footer-item.component.ts b/scripts/site/_site/doc/app/footer/footer-item.component.ts index cc719806ef1..a60e9e048f2 100644 --- a/scripts/site/_site/doc/app/footer/footer-item.component.ts +++ b/scripts/site/_site/doc/app/footer/footer-item.component.ts @@ -3,7 +3,7 @@ import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; import { NzIconModule } from 'ng-zorro-antd/icon'; @Component({ - selector: 'app-footer-item', + selector: 'app-footer-item', imports: [NzIconModule], changeDetection: ChangeDetectionStrategy.OnPush, template: ` @@ -11,7 +11,7 @@ import { NzIconModule } from 'ng-zorro-antd/icon'; @if (icon || imgSrc) { @if (icon) { - + } @else { } diff --git a/scripts/site/_site/doc/app/header/navigation.component.ts b/scripts/site/_site/doc/app/header/navigation.component.ts index 7dea206db49..620e1269aa9 100644 --- a/scripts/site/_site/doc/app/header/navigation.component.ts +++ b/scripts/site/_site/doc/app/header/navigation.component.ts @@ -3,12 +3,13 @@ import { NgTemplateOutlet } from '@angular/common'; import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, ViewEncapsulation, inject } from '@angular/core'; import { RouterLink } from '@angular/router'; +import { NzIconModule } from 'ng-zorro-antd/icon'; import { NzMenuModule } from 'ng-zorro-antd/menu'; @Component({ - selector: 'ul[nz-menu][app-navigation]', + selector: 'ul[nz-menu][app-navigation]', changeDetection: ChangeDetectionStrategy.OnPush, - imports: [RouterLink, NgTemplateOutlet, NzMenuModule], + imports: [RouterLink, NgTemplateOutlet, NzMenuModule, NzIconModule], template: `
                • @@ -32,7 +33,7 @@ import { NzMenuModule } from 'ng-zorro-antd/menu'; } @if (!isMobile && responsive === 'crowded') {
                • - +
                  diff --git a/scripts/site/_site/doc/app/header/searchbar.component.ts b/scripts/site/_site/doc/app/header/searchbar.component.ts index 9922a223fc5..56b5b1e3ebf 100644 --- a/scripts/site/_site/doc/app/header/searchbar.component.ts +++ b/scripts/site/_site/doc/app/header/searchbar.component.ts @@ -22,11 +22,11 @@ import { loadScript } from '../utils/load-script'; declare const docsearch: any; @Component({ - selector: 'div[app-searchbar]', + selector: 'div[app-searchbar]', changeDetection: ChangeDetectionStrategy.OnPush, imports: [NzIconModule, NzInputModule], template: ` - + @if (index > 1) {
                  - + {{ list[index - 1]?.label }} - + } @if (index < list.length - 1) { - + {{ list[index + 1]?.label }} - + } @@ -34,7 +34,7 @@ export class NzNavBottomComponent implements OnInit { index = 0; language = 'en'; - constructor(private router: Router, private platform: Platform, private cdr: ChangeDetectorRef) {} + constructor(private router: Router, private platform: Platform, private cdr: ChangeDetectorRef) { } ngOnInit(): void { if (!this.platform.isBrowser) { diff --git a/scripts/site/template/title.template.html b/scripts/site/template/title.template.html index 52f88a5c6ed..77accb81e1d 100644 --- a/scripts/site/template/title.template.html +++ b/scripts/site/template/title.template.html @@ -1,4 +1,4 @@

                  {{title}}{{subtitle}}{{widget}} - -

                  \ No newline at end of file + +