|
1 | 1 | <table class="ant-picker-content" cellspacing="0" role="grid"> |
2 | | - @if(headRow && headRow.length > 0) { |
| 2 | + @if (headRow && headRow.length > 0) { |
3 | 3 | <thead> |
4 | 4 | <tr role="row"> |
5 | | - @if(showWeek) { |
| 5 | + @if (showWeek) { |
6 | 6 | <th role="columnheader"></th> |
7 | 7 | } |
8 | | - @for(cell of headRow; track cell) { |
9 | | - <th role="columnheader" title="{{ cell.title }}"> {{ cell.content }} </th> |
| 8 | + @for (cell of headRow; track $index) { |
| 9 | + <th role="columnheader" title="{{ cell.title }}"> {{ cell.content }}</th> |
10 | 10 | } |
11 | 11 | </tr> |
12 | 12 | </thead> |
13 | 13 | } |
14 | 14 |
|
15 | 15 | <tbody> |
16 | | - @for(row of bodyRows; track row.trackByIndex) { |
| 16 | + @for (row of bodyRows; track row.trackByIndex) { |
17 | 17 | <tr [ngClass]="row.classMap!" role="row"> |
18 | | - @if(row.weekNum) { |
19 | | - <td role="gridcell" class="{{ prefixCls }}-cell-week"> {{ row.weekNum }} </td> |
| 18 | + @if (row.weekNum) { |
| 19 | + <td role="gridcell" class="{{ prefixCls }}-cell-week"> {{ row.weekNum }}</td> |
20 | 20 | } |
21 | | - @for(cell of row.dateCells; track cell.trackByIndex) { |
| 21 | + @for (cell of row.dateCells; track cell.trackByIndex) { |
22 | 22 | <td |
23 | 23 | title="{{ cell.title }}" |
24 | 24 | role="gridcell" |
|
27 | 27 | (mouseenter)="cell.onMouseEnter()" |
28 | 28 | > |
29 | 29 | @switch (prefixCls) { |
30 | | - @case('ant-picker') { |
31 | | - @if(cell.isTemplateRef) { |
| 30 | + @case ('ant-picker') { |
| 31 | + @if (cell.isTemplateRef) { |
32 | 32 | <ng-container *ngTemplateOutlet="$any(cell.cellRender); context: { $implicit: cell.value }" /> |
33 | | - }@else if(cell.isNonEmptyString) { |
| 33 | + } @else if (cell.isNonEmptyString) { |
34 | 34 | <span [innerHTML]="cell.cellRender"></span> |
35 | | - }@else { |
| 35 | + } @else { |
36 | 36 | <div |
37 | 37 | class="{{ prefixCls }}-cell-inner" |
38 | 38 | [attr.aria-selected]="cell.isSelected" |
|
42 | 42 | </div> |
43 | 43 | } |
44 | 44 | } |
45 | | - @case('ant-picker-calendar') { |
| 45 | + @case ('ant-picker-calendar') { |
46 | 46 | <div |
47 | 47 | class="{{ prefixCls }}-date ant-picker-cell-inner" |
48 | 48 | [class.ant-picker-calendar-date-today]="cell.isToday" |
49 | 49 | > |
50 | | - @if(cell.fullCellRender) { |
| 50 | + @if (cell.fullCellRender) { |
51 | 51 | <ng-container *ngTemplateOutlet="$any(cell.fullCellRender); context: { $implicit: cell.value }" /> |
52 | | - }@else() { |
| 52 | + } @else { |
53 | 53 | <div class="{{ prefixCls }}-date-value">{{ cell.content }}</div> |
54 | 54 | <div class="{{ prefixCls }}-date-content"> |
55 | 55 | <ng-container *ngTemplateOutlet="$any(cell.cellRender); context: { $implicit: cell.value }"> |
|
0 commit comments