ant-design / ant-design/pro-components

🐛[BUG]ProFormDependency依赖项层级较深时无法输出全部的Values

Open
#9,119 0 comments 0 reactions 0 assignees View on GitHub
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只会输出最后一个值

![Image](https://github.com/user-attachments/assets/2b519af7-063d-4017-b483-7fcc2e9bc158)

### 📷 复现步骤

https://codesandbox.io/p/sandbox/jwcvwc

### 🏞 期望结果

应该把所有依赖项输出

### 💻 复现代码

### © 版本信息

- ProComponents 版本: [e.g. 4.0.0]
- umi 版本
- 浏览器环境
- 开发环境 [e.g. mac OS]

### 🚑 其他信息

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.