-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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兼具性问题-部分机型(ios,iphone11)出现年份不显示的问题 #5959
Comments
iphone11 中使用的new Date,在datepicker中都会有问题,包括value |
试试修改一下格式化使用的分隔符,使用 - 在 ios 中可能会得到 NaN
|
max/min 要求的就是 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version of antd-mobile
^5.27.0
Operating system and its version
iOS
Browser and its version
safari 15.4.1 和 15.0
Sandbox to reproduce
https://codesandbox.io/s/eloquent-bogdan-38zvx9?file=/src/App.tsx
What happened?
问题: 在使用datepicker中,限制了min和max值,并且再使用min/max值时,通过new Date去转换dayjs,不兼容导致年份没有出来
解决办法:通过dayjs的toDate转换
Relevant log output
No response
The text was updated successfully, but these errors were encountered: