ant-design / ant-design/pro-components
🐛[BUG] Protable 编辑状态时 当违反rules时候 form field下面多了margin
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
### 🐛 bug 描述

当进入编辑状态时, 只要触犯rules并弹出warning popover时,下面就会多出个margin

正常状态的只有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
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