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

Cascader动态加载,表单赋值的问题 #11037

Closed
1 task
ybning opened this issue Jun 26, 2018 · 3 comments
Closed
1 task

Cascader动态加载,表单赋值的问题 #11037

ybning opened this issue Jun 26, 2018 · 3 comments
Assignees

Comments

@ybning
Copy link

ybning commented Jun 26, 2018

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

What problem does this feature solve?

有这样一个场景:
Cascader的数据是动态加载的,现在做表单赋值,但实际动态加载出来的数据没有loadData出来,赋值不上。
请问有什么好的解决方案吗?

https://codesandbox.io/s/x38pooxmo4

What does the proposed API look like?

动态加载的数据能赋值

@ant-design-bot
Copy link
Contributor

Translation of this issue:


Cascader dynamic loading, form assignment

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

What problem does this feature solve?

There is such a scenario:
Cascader's data is dynamically loaded, and now the form assignment, but the actual dynamic loading of the data without loadData out assignment is not.
Is there any good solution?

Https://codesandbox.io/s/x38pooxmo4

What does the proposed API look like?

Dynamically loaded data can be assigned

@zombieJ
Copy link
Member

zombieJ commented Jun 28, 2018

选择的数据如果未加载,可以在选择的时候触发一个加载,等加载完毕再赋值。

@zombieJ zombieJ closed this as completed Jun 28, 2018
@ybning
Copy link
Author

ybning commented Jun 28, 2018

@zombieJ
但实际场景是:表单赋值是不需要进行选择操作的。表单赋值在componentDidMount后拿到数据就执行完成了。

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