ant-design / ant-design/pro-components

🐛[BUG] ProForm 下使用Row并且column属性设置 >2,套用ProFormDependency在返回null未隐藏

Open
#8,202 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 描述
ProForm 下使用Row套用ProFormDependency在大屏返回null未隐藏

### 📷 复现步骤

在Row 设置column >2 情况下如果ProFormDependency返回null数据,在Row Col套用下不会自动隐藏,会占用空间,但在Row column 设置为2就正常隐藏ProFormDependency占用空间

### 🏞 期望结果

### 💻 复现代码

### © 版本信息

- ProComponents 版本: 2.6.49
- -Antd 5.8.6
- umi 版本 4.0.90
- 浏览器环境 chrome
- 开发环境 [e.g. window]

### 🚑 其他信息

Contributor guide

Open the contributing guide

Research direction

Start by reproducing a ProForm with Row and ProFormDependency, using column greater than 2 and returning null, then compare it with the column=2 behavior described in the issue. The fix is done when a null dependency no longer leaves unused space inside the row; no file or test is named in the report.

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
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.