NG-ZORRO / ng-zorro-antd-mobile

A configurable Mobile UI components based on Ant Design Mobile and Angular. 🐜
http://ng.mobile.ant.design
Other
796 stars 238 forks source link

在datepicker中 mindate只允许传入string类型 #888

Open happyfeet1996 opened 11 months ago

happyfeet1996 commented 11 months ago

Version

9.0.0

Environment

angular

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-mobile-start-yhwjim?file=src%2Fapp%2Fapp.component.html,src%2Fapp%2Fapp.component.ts

Steps to reproduce

<ListItem DatePicker [minDate]="date" [extra]="currentDateFormat(date, 'yyyy-mm-dd')" [arrow]="'horizontal'" [mode]="'date'" [ngModel]="date" (onOk)="onOk($event)"

date: Date = new Date();

What is expected?

在datepicker中 mindate只允许传入string类型,而传入date string会报错,但是传入date不会

What is actually happening?

传入date字符串报错

Other?