ant-design / ant-design/pro-components
👑 [需求]ProFormSelect的候选内容如何动态刷新?
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
提问前先看看:
https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md
### 🔩 所属模块或组件
ProFormSelect
### 🥰 需求描述
有一个性别下拉框和一个形象下拉框,性别选择男时,形象下拉框出现青年,大叔;性别选择女时形象下拉框需要候选如萝莉,御姐等内容。
ProFormSelect已经被ProForm包裹,为何无法通过 ProForm 的 formRef 修改候选的内容,使用setFieldsValue 发现无法修改下拉框候选内容,只能修改显示的内容。
Contributor guide
Research direction
Start with the ProFormSelect component and the ProForm formRef and setFieldsValue entry points mentioned in the report. Trace how the select's candidate options are supplied and determine the expected behavior when the gender field changes; done means the dependent options can be refreshed without confusing them with the selected display value.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100