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装多个getFieldDecorator包装的child。 #3864

Closed
anlia260 opened this issue Nov 16, 2016 · 5 comments
Closed

Form.Item装多个getFieldDecorator包装的child。 #3864

anlia260 opened this issue Nov 16, 2016 · 5 comments

Comments

@anlia260
Copy link

image
image
我想在Form.Item下面装两个child,能否给一个demo,文档不是很明白。谢谢了。
试过Form.Item里面嵌套Form.Item,虽然可以解决问题,但是不够优雅。

@infeng
Copy link
Contributor

infeng commented Nov 16, 2016

可以参考 https://ant.design/components/form/#components-form-demo-validate-static 最后一个选择日期的做法

@anlia260
Copy link
Author

看到了,的确可以解决但是还是嵌套啊。文档说的是建议包装一个element,但是没有说必须(可能有些钻牛角尖)。但是还是希望有其他更优雅的写法,谢谢@infeng

@xiongran
Copy link

我是封装了一个组件实现的。#3866

@benjycui
Copy link
Contributor

楼上的方案是靠谱的 👍

@lock
Copy link

lock bot commented May 3, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants