ant-design / ant-design/pro-components
🧐[问题] 子组件怎么获取ProFormInstance 呢?
Open
- 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
### 🧐 问题描述
我想在子组件里获取 ProFormInstance, 有类似 Proform.useProFormInstance的方法吗? 如果用ref.current的话, 传入子组件是不会更新的,只能将整个ref传进去
### 💻 示例代码
### 🚑 其他信息
Contributor guide
Research direction
The issue asks whether a child component can access a ProFormInstance through a hook and notes that passing ref.current does not update. No source files, tests, or entry points are identified; first locate the ProForm implementation and existing instance-access patterns, then clarify the supported behavior or document a reproducible change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100