ant-design / ant-design/pro-components

🐛[BUG] Protable 编辑状态时 当违反rules时候 form field下面多了margin

Open
#8,859 1 comment 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

### 🐛 bug 描述

![image](https://github.com/user-attachments/assets/bc464811-e3f4-4416-8f93-43a769127aea)

当进入编辑状态时, 只要触犯rules并弹出warning popover时,下面就会多出个margin
![image](https://github.com/user-attachments/assets/69cc8689-82f0-49bd-b6a8-4259a0fd6662)

正常状态的只有ant-form-item-row
而warning的就会多出ant-form-item-margin-offset

### 🏞 期望结果

希望可以移除这个margin

### © 版本信息

- "@ant-design/pro-components": "^2.8.1",
- "antd": "^5.21.6",
- "react": "^18.2.0",

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in an editable form using the reported React, antd, and @ant-design/pro-components versions. Trigger a rules warning and compare the normal ant-form-item-row with the warning state that adds ant-form-item-margin-offset. Done means the warning state no longer adds the unwanted margin while validation feedback still appears.

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.