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添加验证报错 #3347
Comments
https://ant.design/changelog#2.x-%E4%B8%8D%E5%85%BC%E5%AE%B9%E6%94%B9%E5%8A%A8 可以参照一下这里的写法:https://ant.design/components/form/#components-form-demo-validate-other @benjycui 这块 changelog 文档还是要补上: |
type: 'object',现在日期控件仅支持moment类型的了so.... |
这个 API 差异列不完的。。只能碰到一个就更新一个了。 |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
FotmItem中添加DatePicker的时候选择日期控制台会报错
date.js:28 Uncaught TypeError: value.getTime is not a function
示例代码请看
https://codepen.io/lslvxy/pen/bwozjp?editors=0011
查看时请打开F12开发者工具,控制台会抛出异常信息
示例中第一个没有验证不会抛出异常,第二个需要验证则报错
value
取出来的是Moment对象The text was updated successfully, but these errors were encountered: