-
-
Notifications
You must be signed in to change notification settings - Fork 47.9k
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
日期组件如何全局设置format为DD/MM/YYYY? #45416
Comments
验证了一下 CP 的 locale 不支持配置,我说怎么有印象, 在 #42119 这个 issue 里面被确认是一个 bug。等修好了应该就可以配置了 |
This comment was marked as off-topic.
This comment was marked as off-topic.
@afc163 大佬,没明白, |
我认为 @afc163 的回答是错误的,正如我前面说的,应该通过 CP 的 locale 去统一修改,但是 #42119 反馈目前 CP 修改是有 bug 的,我追溯了一下原因,错误是在 #20023 引入的,尽管现在单元测试用例还存在在最新代码中, 但是用例是错的。 最新的测试用例: ant-design/components/date-picker/__tests__/other.test.tsx Lines 17 to 45 in 49ef16b
解决方案要么等 antd 这边修复,要么自己二次开发一下 |
类似的需求 #23902 |
我这两天修复一下这个问题~ |
@Wxh16144 有道理,我刚才试了 |
修复后可以也更新在V4的版本吗? |
当然,4.x 有 bug 还是会继续维护的 |
Duplicate of #23902 |
应该是下面这段逻辑丢失导致的 ant-design/components/date-picker/wrapPicker.tsx Lines 26 to 31 in 50b82ca
ant-design/components/date-picker/wrapPicker.tsx Lines 149 to 156 in 50b82ca
|
😢 这个问题看起来已经过时了,v5 重构了... (v4 已经不在维护了),更多回复 |
What problem does this feature solve?
日期组件如何全局设置format为DD/MM/YYYY?
What does the proposed API look like?
期望上可以配置RangePicker,DatePicker的默认的format格式
The text was updated successfully, but these errors were encountered: