ant-design / ant-design/pro-components
🐛[BUG]ProFormDependency依赖项层级较深时无法输出全部的Values
- 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
### 🐛 bug 描述
在使用ProFormDependency中,若联动依赖的names的长度不为1,并且依赖项(namePath)的长度大于2时,当多个依赖项的namePath[1]一致时,values只会输出最后一个值

### 📷 复现步骤
https://codesandbox.io/p/sandbox/jwcvwc
### 🏞 期望结果
应该把所有依赖项输出
### 💻 复现代码
### © 版本信息
- ProComponents 版本: [e.g. 4.0.0]
- umi 版本
- 浏览器环境
- 开发环境 [e.g. mac OS]
### 🚑 其他信息
Contributor guide
Research direction
Start with the ProFormDependency implementation and the linked CodeSandbox reproduction. Reproduce the case where multiple dependency name paths share the same second segment, then trace how values are collected. Done means all dependent values are returned rather than only the last one, with the sandbox behavior verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100