ant-design / ant-design/pro-components
👑 [需求] 使用StepsForm 进行组件拆分的时候,如何在父组件,以及子组件获取对应的值
Open
question
- 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
### 🔩 所属模块或组件
StepsForm
### 🥰 需求描述
使用StepsForm 进行组件拆分的时候,如何在父组件 实现类似 useWatch 的功能 比如 监听到XSet 中x 的值等于 xx 去请求一个接口,以及在 YSet 组件中获取XSet中x 的值,用于判断 z 字段的显隐
### ⛰ 功能需求适用场景
### 🧐 解决方案
### 🚑 其他信息
Contributor guide
Research direction
Start by reading the StepsForm and useWatch APIs, then trace how form values are shared between the parent, XSet, and YSet components. The issue mentions no repository files or tests; done would require a confirmed, scoped way to observe XSet values in the parent and consume them in YSet.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100