Reproduction link
Steps to reproduce
使用官方文档中的注册新用户表单case,通过design token设置 itemMarginBottom 或用自定义样式覆盖 .ant-form-item的margin-bottom, 超出默认的24px,当表单项验证错误,显示校验文本时,表单项的 extra 距离校验文本多出了 item margin-bottom的间距,这应该是不符合预期的,原因是与校验文本同级的div中多出了一个div,内联设置高度为 item的 margin-bottom
What is expected?
extra与校验文本元素间不应该有item margin-bottom 的间距
What is actually happening?
extra与校验文本元素间出现了 item margin-bottom 的间距
| Environment | Info |
| ------------ | ------------ |
| antd | 5.19.3 |
| React | react |
| System | Mac |
| Browser | Chrome |
5条答案
按热度按时间bfnvny8b1#
Start a new pull request in StackBlitz Codeflow .
xfb7svmp2#
如下图所示:
hujrc8aj3#
I'm following up on this
o8x7eapl4#
I'm following up on this
Are you still working on this issue? @clydee-geng
x8goxv8g5#
I'm following up on this
Are you still working on this issue? @clydee-geng
I don't have a new solution for the time being, you can take over