@@ -26,9 +26,9 @@ import { NzConfigKey, NzConfigService, WithConfig } from 'ng-zorro-antd/core/con
2626import { NzOutletModule } from 'ng-zorro-antd/core/outlet' ;
2727import { BooleanInput , NgStyleInterface , NzSizeDSType } from 'ng-zorro-antd/core/types' ;
2828import { InputBoolean } from 'ng-zorro-antd/core/util' ;
29+ import { NzSkeletonModule } from 'ng-zorro-antd/skeleton' ;
2930
3031import { NzCardGridDirective } from './card-grid.directive' ;
31- import { NzCardLoadingComponent } from './card-loading.component' ;
3232import { NzCardTabComponent } from './card-tab.component' ;
3333
3434const NZ_CONFIG_MODULE_NAME : NzConfigKey = 'card' ;
@@ -67,10 +67,10 @@ const NZ_CONFIG_MODULE_NAME: NzConfigKey = 'card';
6767 }
6868
6969 <div class="ant-card-body" [ngStyle]="nzBodyStyle">
70- @if (! nzLoading) {
71- <ng-content / >
70+ @if (nzLoading) {
71+ <nz-skeleton [nzActive]="true" [nzTitle]="false" [nzParagraph]="{ rows: 4 }"></nz-skeleton >
7272 } @else {
73- <nz-card-loading />
73+ <ng-content />
7474 }
7575 </div>
7676 @if (nzActions.length) {
@@ -94,7 +94,7 @@ const NZ_CONFIG_MODULE_NAME: NzConfigKey = 'card';
9494 '[class.ant-card-contain-tabs]' : '!!listOfNzCardTabComponent' ,
9595 '[class.ant-card-rtl]' : `dir === 'rtl'`
9696 } ,
97- imports : [ NzOutletModule , NgTemplateOutlet , NgStyle , NzCardLoadingComponent ] ,
97+ imports : [ NzOutletModule , NgTemplateOutlet , NgStyle , NzSkeletonModule ] ,
9898 standalone : true
9999} )
100100export class NzCardComponent implements OnDestroy , OnInit {
0 commit comments