Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
happyfeet1996 opened this issue Aug 10, 2023 · 0 comments
Open

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

happyfeet1996 opened this issue Aug 10, 2023 · 0 comments

Comments

@happyfeet1996
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant