antd-mobile 的DatePicker兼具性问题-部分机型(ios,iphone11)出现年份不显示的问题

问题: 在使用datepicker中,限制了min和max值,并且再使用min/max值时,通过new Date去转换dayjs,不兼容导致年份没有出来
解决办法:通过dayjs的toDate转换
iphone11 中使用的new Date,在datepicker中都会有问题,包括value
https://github.com/ant-design/ant-design-mobile/issues/5959
posted @ 2023-02-07 16:48  木杉呀  阅读(295)  评论(0编辑  收藏  举报