Skip to content

[DatePicker] format 使用 MMM D, YYYY 格式化显示值产生了错误 #607

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

Open
RSS1102 opened this issue Mar 21, 2025 · 3 comments
Open
Labels
💭 discussion we are discussing React

Comments

@RSS1102
Copy link
Collaborator

RSS1102 commented Mar 21, 2025

tdesign 技术栈

tdesign-react

tdesign 技术栈版本

1.11.1

重现链接

https://stackblitz.com/edit/rrxuwgkw?file=src%2Fdemo.tsx,src%2Findex.jsx

重现步骤

No response

期望结果

Image

实际结果

No response

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

当点击选择日期时,会进行多次 format 数据处理,第二次 format 和第三次 format 验证中间,数据 value 出现了错误。

Image

@RSS1102 RSS1102 added React 🐞 bug Something isn't working labels Mar 21, 2025
Copy link

👋 @RSS1102,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@RSS1102 RSS1102 added this to TDesign Mar 21, 2025
@RSS1102
Copy link
Collaborator Author

RSS1102 commented Mar 31, 2025

这里是对于某些格式的 format 不支持,后续考虑支持更多格式。

@RSS1102 RSS1102 added 💭 discussion we are discussing and removed 🐞 bug Something isn't working labels Mar 31, 2025
@Soya-xy
Copy link

Soya-xy commented May 27, 2025

value display 这里应该是{dayjs().locale('zh-cn')}
组件内部format的时候 默认自带了locale('zh-cn')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💭 discussion we are discussing React
Projects
Status: No status
Development

No branches or pull requests

2 participants