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: `
-
+
{{ 'Click me!' }}
`
@@ -340,7 +340,7 @@ export class TestButtonBindingComponent {
template: `
{{ title }}
-
+
`
})
@@ -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
-
+
Go back
Go forward
-
+
-
-
+
+
`,
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: `
-
+
A
-
+
Search
-
+
-
+
Search
-
+
-
+
Search
-
+
-
+
Search
`,
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: `
-
+
Loading
Loading
Click me!
-
+
Click me!
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';
secondary
Actions
-
+
-
+
-
+
`
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';
Shortcuts
-
+
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: `
Open
-
+
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';
DropDown
-
+
DropDown
-
+
DropDown
-
+
Button
-
+
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';
Clear
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';
-
+
Add field
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';