我只想将mat-datepicker用作年份选择器。反正有这样的办法吗?
<input name="RegDate" #RegDate="ngModel" [matDatepicker]="picker" [(ngModel)]="objCompany.RegDate"
class="form-control datepicker" required />
<mat-datepicker-toggle class="datepicker-toggler" [for]="picker"></mat-datepicker-toggle>
<mat-datepicker #picker></mat-datepicker>