Skip to content

Commit b275063

Browse files
authored
fix(module:table): fix @for track function (#8593)
1 parent 6bb95c0 commit b275063

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/table/src/table/table-content.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { NzTableLayout } from '../table.types';
1515
changeDetection: ChangeDetectionStrategy.OnPush,
1616
encapsulation: ViewEncapsulation.None,
1717
template: `
18-
@for (width of listOfColWidth; track width) {
18+
@for (width of listOfColWidth; track $index) {
1919
<col [style.width]="width" [style.minWidth]="width" />
2020
}
2121
@if (theadTemplate) {

components/table/src/table/tr-measure.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { NzResizeObserver } from 'ng-zorro-antd/cdk/resize-observer';
3030
changeDetection: ChangeDetectionStrategy.OnPush,
3131
encapsulation: ViewEncapsulation.None,
3232
template: `
33-
@for (th of listOfMeasureColumn; track th) {
33+
@for (th of listOfMeasureColumn; track $index) {
3434
<td #tdElement class="nz-disable-td" style="padding: 0; border: 0; height: 0;"></td>
3535
}
3636
`,

0 commit comments

Comments
 (0)