diff --git a/packages/abc/avatar-list/avatar-list.component.html b/packages/abc/avatar-list/avatar-list.component.html index f39eacc01e..f59e202859 100644 --- a/packages/abc/avatar-list/avatar-list.component.html +++ b/packages/abc/avatar-list/avatar-list.component.html @@ -1,6 +1,6 @@ diff --git a/packages/abc/avatar-list/avatar-list.component.ts b/packages/abc/avatar-list/avatar-list.component.ts index 2b9949b089..ed9ec34cca 100644 --- a/packages/abc/avatar-list/avatar-list.component.ts +++ b/packages/abc/avatar-list/avatar-list.component.ts @@ -1,5 +1,4 @@ import { Direction, Directionality } from '@angular/cdk/bidi'; -import { NgClass, NgStyle } from '@angular/common'; import { AfterViewInit, ChangeDetectionStrategy, @@ -37,7 +36,7 @@ import { AvatarListItemComponent } from './avatar-list-item.component'; changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, - imports: [NgStyle, NgClass, NzAvatarComponent, NzTooltipDirective] + imports: [NzAvatarComponent, NzTooltipDirective] }) export class AvatarListComponent implements AfterViewInit, OnChanges { private readonly cdr = inject(ChangeDetectorRef); diff --git a/packages/abc/ellipsis/ellipsis.component.html b/packages/abc/ellipsis/ellipsis.component.html index 90c453c456..f196352f4e 100644 --- a/packages/abc/ellipsis/ellipsis.component.html +++ b/packages/abc/ellipsis/ellipsis.component.html @@ -15,7 +15,7 @@ @switch (type) { @case ('default') { - + } @case ('length') { @@ -24,11 +24,11 @@ @case ('line-clamp') { -
+
} @case ('line') { -
+
{{ linsWord }} diff --git a/packages/abc/ellipsis/ellipsis.component.ts b/packages/abc/ellipsis/ellipsis.component.ts index 48cd254747..9f75d0374e 100644 --- a/packages/abc/ellipsis/ellipsis.component.ts +++ b/packages/abc/ellipsis/ellipsis.component.ts @@ -1,5 +1,5 @@ import { CdkObserveContent } from '@angular/cdk/observers'; -import { DOCUMENT, NgClass, NgStyle, NgTemplateOutlet } from '@angular/common'; +import { DOCUMENT, NgTemplateOutlet } from '@angular/common'; import { AfterViewInit, ChangeDetectionStrategy, @@ -29,7 +29,7 @@ import { NzTooltipDirective } from 'ng-zorro-antd/tooltip'; changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, - imports: [CdkObserveContent, NzTooltipDirective, NgTemplateOutlet, NgClass, NgStyle] + imports: [CdkObserveContent, NzTooltipDirective, NgTemplateOutlet] }) export class EllipsisComponent implements AfterViewInit, OnChanges { private readonly el: HTMLElement = inject(ElementRef).nativeElement; diff --git a/packages/abc/loading/loading.component.html b/packages/abc/loading/loading.component.html index 2ac6e2a728..d337d25d7f 100644 --- a/packages/abc/loading/loading.component.html +++ b/packages/abc/loading/loading.component.html @@ -8,7 +8,7 @@ } @default { -
+
} }
diff --git a/packages/abc/loading/loading.component.ts b/packages/abc/loading/loading.component.ts index c8f9bc81cb..f2757f9790 100644 --- a/packages/abc/loading/loading.component.ts +++ b/packages/abc/loading/loading.component.ts @@ -1,5 +1,4 @@ import { Direction } from '@angular/cdk/bidi'; -import { NgStyle } from '@angular/common'; import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core'; import { NzIconDirective } from 'ng-zorro-antd/icon'; @@ -18,7 +17,7 @@ import { LoadingCustom, LoadingIcon, LoadingShowOptions } from './loading.types' changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, - imports: [NzSpinComponent, NzIconDirective, NgStyle] + imports: [NzSpinComponent, NzIconDirective] }) export class LoadingDefaultComponent { options!: LoadingShowOptions; diff --git a/packages/abc/notice-icon/notice-icon.component.html b/packages/abc/notice-icon/notice-icon.component.html index f3d08c05e5..4618475925 100644 --- a/packages/abc/notice-icon/notice-icon.component.html +++ b/packages/abc/notice-icon/notice-icon.component.html @@ -1,6 +1,6 @@ - - + + @if (data!.length <= 0) { diff --git a/packages/abc/notice-icon/notice-icon.component.ts b/packages/abc/notice-icon/notice-icon.component.ts index ebd438d738..204ac7eb84 100644 --- a/packages/abc/notice-icon/notice-icon.component.ts +++ b/packages/abc/notice-icon/notice-icon.component.ts @@ -1,4 +1,4 @@ -import { NgClass, NgTemplateOutlet } from '@angular/common'; +import { NgTemplateOutlet } from '@angular/common'; import { ChangeDetectionStrategy, ChangeDetectorRef, @@ -37,7 +37,6 @@ import { NoticeIconSelect, NoticeItem } from './notice-icon.types'; encapsulation: ViewEncapsulation.None, standalone: true, imports: [ - NgClass, NgTemplateOutlet, NzBadgeComponent, NzIconDirective, diff --git a/packages/abc/quick-menu/quick-menu.component.html b/packages/abc/quick-menu/quick-menu.component.html index e3342dbca6..a161d83a5f 100644 --- a/packages/abc/quick-menu/quick-menu.component.html +++ b/packages/abc/quick-menu/quick-menu.component.html @@ -1,5 +1,5 @@
-
+
diff --git a/packages/abc/quick-menu/quick-menu.component.ts b/packages/abc/quick-menu/quick-menu.component.ts index 5c3770b3f1..514aa2909b 100644 --- a/packages/abc/quick-menu/quick-menu.component.ts +++ b/packages/abc/quick-menu/quick-menu.component.ts @@ -1,4 +1,3 @@ -import { NgStyle } from '@angular/common'; import { ChangeDetectionStrategy, ChangeDetectorRef, @@ -32,7 +31,7 @@ import { NzIconDirective } from 'ng-zorro-antd/icon'; changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, - imports: [NgStyle, NzIconDirective, NzStringTemplateOutletDirective] + imports: [NzIconDirective, NzStringTemplateOutletDirective] }) export class QuickMenuComponent implements OnInit, OnChanges { private readonly cdr = inject(ChangeDetectorRef); diff --git a/packages/abc/se/se.component.html b/packages/abc/se/se.component.html index 6b7ad7a950..0cd776f4ab 100644 --- a/packages/abc/se/se.component.html +++ b/packages/abc/se/se.component.html @@ -1,10 +1,6 @@
@if (label) { -