tdesign icon indicating copy to clipboard operation
tdesign copied to clipboard

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

Open RSS1102 opened this issue 9 months ago • 3 comments

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 avatar Mar 21 '25 08:03 RSS1102

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

github-actions[bot] avatar Mar 21 '25 08:03 github-actions[bot]

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

RSS1102 avatar Mar 31 '25 16:03 RSS1102

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

Soya-xy avatar May 27 '25 12:05 Soya-xy

Duplicated as https://github.com/Tencent/tdesign-react/issues/3444

RylanBot avatar Sep 16 '25 17:09 RylanBot