-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
[Bug Report] Calendar组件defaultDate如果在minDate和maxDate之前,会导致选中异常 #13259
Labels
Comments
这个组件是我们基础组件的组件,这个bug还影响了各个业务域。 |
我也试图调试这个bug,但是源码中onSelect事件中繁多的if else条件判断劝退了我,没有那么多时间来排查。😇 |
不要在模版中直接使用类似 min-date="new Date('2015-05-01')" 的写法,把 min-date 作为一个数据定义在 setup 中试一下。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
重现链接
https://stackblitz.com/edit/vitejs-vite-cdfwyb?file=src%2Fcomponents%2FACalendar.vue
Vant 版本
4.9.6
描述一下你遇到的问题。
Calendar组件的props属性的顺序问题,
如果defaultDate如果在minDate和maxDate之前,会导致选中异常,不能正常的选择时间段。初步判断是onSelect事件不能正常的区别开始时间和结束时间。
错误复现场景props顺序
正常场景props顺序
重现步骤
设备/浏览器
chrome
The text was updated successfully, but these errors were encountered: