diff --git a/components/table/src/table/table-content.component.ts b/components/table/src/table/table-content.component.ts index 2b4c502222..d4d0a51f1e 100644 --- a/components/table/src/table/table-content.component.ts +++ b/components/table/src/table/table-content.component.ts @@ -15,8 +15,12 @@ import { NzTableLayout } from '../table.types'; changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: ` - @for (width of listOfColWidth; track $index) { - + @if (listOfColWidth.length > 0) { + + @for (width of listOfColWidth; track $index) { + + } + } @if (theadTemplate) {