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

Form.Item中的DatePicker获取到的是moment对象,能否给个格式化的props自动将moment转换成string #23007

Closed
1 task
MingRock opened this issue Apr 7, 2020 · 1 comment

Comments

@MingRock
Copy link

MingRock commented Apr 7, 2020

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

在大型表单中提交时,需要每个进行moment.format().toString转换,有点繁琐

What does the proposed API look like?

在Form.Item或DatePicker中增加个valueFormat的props

@zombieJ
Copy link
Member

zombieJ commented Apr 8, 2020

4.2.0 会加 getValueProps: #19727 (comment)

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

No branches or pull requests

2 participants