Skip to content
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的format格式对于html的标签提示文本不生效 #47063

Closed
chengxs11 opened this issue Jan 19, 2024 · 1 comment
Closed

DatePicker的format格式对于html的标签提示文本不生效 #47063

chengxs11 opened this issue Jan 19, 2024 · 1 comment
Assignees
Labels

Comments

@chengxs11
Copy link

chengxs11 commented Jan 19, 2024

Reproduction link

<DatePicker format={'DD/MM/YYYY'}/>

官网demo在CodeSanbox中打开,format格式调整为"DD/MM/YYYY"

Steps to reproduce

点击日期选择输入框,鼠标移入下方日期tag并停留一秒,观察弹出的提示性文本,仍然为YYYY-MM-DD格式
image

What is expected?

提示性文本的格式与日期输入框的格式一致

What is actually happening?

提示性文本的格式与日期输入框的格式不一致,对于国际化用户不友好

Environment Info
antd 5.13.2
React 18.0.33
System win10
Browser chrome
@zombieJ zombieJ mentioned this issue Jan 22, 2024
20 tasks
@zombieJ zombieJ self-assigned this Jan 22, 2024
@zombieJ
Copy link
Member

zombieJ commented Mar 11, 2024

5.14.0 中 DatePicker 支持 locale.fieldXXXFormat 对每个 cell 进行 title 的自定义。此处使用 locale.fieldDateFormat 可以变更。

@zombieJ zombieJ closed this as completed Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants