1

是否可以仅在月视图中选择范围?

<mat-form-field appearance="fill">
  <mat-label>Enter a date range</mat-label>
  <mat-date-range-input
    [formGroup]="range"
    [rangePicker]="picker"
    [dateFilter]='dateFilter'>
    <input matStartDate placeholder="Start date" formControlName="start">
    <input matEndDate placeholder="End date" formControlName="end">
  </mat-date-range-input>
  <mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle>
  <mat-date-range-picker (monthSelected)='monthSelectedHandler($event, picker)' startView='year' (opened)='clearSelectedDates()' #picker></mat-date-range-picker>
</mat-form-field>

例如 在此处输入图像描述

4

0 回答 0