diff --git a/src/components/calendar/nz-calendar.component.ts b/src/components/calendar/nz-calendar.component.ts index 80f8343e41..1a3cf46b35 100644 --- a/src/components/calendar/nz-calendar.component.ts +++ b/src/components/calendar/nz-calendar.component.ts @@ -67,7 +67,7 @@ export interface WeekInterface { - @@ -97,7 +97,7 @@ export interface WeekInterface { [class.ant-fullcalendar-table]="!nzDatePicker" [class.ant-calendar-table]="nzDatePicker" [class.ant-patch-full-height]="nzDatePicker" - *ngIf="nzMode == 'month'"> + *ngIf="nzMode == 'year'"> + *ngIf="nzMode == 'month'"> @@ -225,7 +225,7 @@ export class NzCalendarComponent implements OnInit { @Output() nzClickDay: EventEmitter = new EventEmitter(); @Output() nzClickMonth: EventEmitter = new EventEmitter(); @Input() nzClearTime = true; - @Input() nzMode = 'month'; + @Input() nzMode = 'year'; @Input() set nzFullScreen(value: boolean) {