We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39c1b3f commit 0a73debCopy full SHA for 0a73deb
components/table/src/table/table-content.component.ts
@@ -15,8 +15,12 @@ import { NzTableLayout } from '../table.types';
15
changeDetection: ChangeDetectionStrategy.OnPush,
16
encapsulation: ViewEncapsulation.None,
17
template: `
18
- @for (width of listOfColWidth; track $index) {
19
- <col [style.width]="width" [style.minWidth]="width" />
+ @if (listOfColWidth.length > 0) {
+ <colgroup>
20
+ @for (width of listOfColWidth; track $index) {
21
+ <col [style.width]="width" [style.minWidth]="width" />
22
+ }
23
+ </colgroup>
24
}
25
@if (theadTemplate) {
26
<thead class="ant-table-thead">
0 commit comments