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

在表单中为Select设置初始值 #2861

Closed
tangsj opened this issue Aug 27, 2016 · 3 comments
Closed

在表单中为Select设置初始值 #2861

tangsj opened this issue Aug 27, 2016 · 3 comments

Comments

@tangsj
Copy link

tangsj commented Aug 27, 2016

在表单中为Select设置初始值。 通过表单提供的 setFieldsValue 和 getFieldProps 中的initialValue参数设置,比如{ 1:‘xx’, 2: ‘aa’ }, setFieldsValue({id: 1}) , 希望Select中显示的是 xx 字符串, 实际显示的是 1. initialValue 表现出来也是这样, 不知道是哪里出了问题!

@tangsj
Copy link
Author

tangsj commented Aug 27, 2016

结果 , Select只支持string 类型。解决~

@tangsj tangsj closed this as completed Aug 27, 2016
@jormin
Copy link

jormin commented Apr 17, 2018

手动点赞,真真是 String 类型的问题~

@zacksleo
Copy link

zacksleo commented Jun 5, 2019

这 Bug 真是无力吐槽了, 为啥不能支持 number 类型?

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

3 participants