当前位置:网站首页>[antd step pit] antd form cooperates with input Form The height occupied by item is incorrect
[antd step pit] antd form cooperates with input Form The height occupied by item is incorrect
2022-07-04 14:02:00 【Like wine Longjing】
Antd Form coordination Input.Group When Form.Item The height occupied is wrong , The interval will be too large , The red box is shown below
Look at the code , Probably because Input.Group Cause extra margin-bottom
</Form.Item>
<Form.Item label="Y Spindle value range ">
<Input.Group compact>
<Form.Item name="YMainAxisRangeMin">
<Input
addonBefore=""
style={
{
width: 100, textAlign: 'center' }}
placeholder="Minimum"
/>
</Form.Item>
<Input
className="site-input-split"
style={
{
width: 30,
borderLeft: 0,
borderRight: 0,
pointerEvents: 'none',
}}
placeholder="~"
disabled
/>
<Form.Item name="YMainAxisRangeMax">
<Input
className="site-input-right"
style={
{
width: 100,
textAlign: 'center',
}}
placeholder="Maximum"
/>
</Form.Item>
</Input.Group>
</Form.Item>
<Form.Item label="Y Spindle step length " name="YMainAxisStep">
<Input
style={
{
width: 100, textAlign: 'center' }}
placeholder="Y Spindle step length "
/>
</Form.Item>
Think of a solution : stay Form.Item Nest another div And limit its height , Can solve 「 I know that the symptoms are not the root causes , Don't spray if you don't like it 」
</Form.Item>
<div style={
{
height: '56px' }}>
<Form.Item label="Y Spindle value range ">
<Input.Group compact>
<Form.Item name="YMainAxisRangeMin">
<Input
addonBefore=""
style={
{
width: 100, textAlign: 'center' }}
placeholder="Minimum"
/>
</Form.Item>
<Input
className="site-input-split"
style={
{
width: 30,
borderLeft: 0,
borderRight: 0,
pointerEvents: 'none',
}}
placeholder="~"
disabled
/>
<Form.Item name="YMainAxisRangeMax">
<Input
className="site-input-right"
style={
{
width: 100,
textAlign: 'center',
}}
placeholder="Maximum"
/>
</Form.Item>
</Input.Group>
</Form.Item>
</div>
<Form.Item label="Y Spindle step length " name="YMainAxisStep">
<Input
style={
{
width: 100, textAlign: 'center' }}
placeholder="Y Spindle step length "
/>
</Form.Item>
The style after writing is shown in the following figure , The interval is normal ~
边栏推荐
- qt 怎么检测鼠标在不在某个控件上
- MySQL45讲——学习极客时间MySQL实战45讲笔记—— 06 | 全局锁和表锁_给表加个字段怎么有这么多阻碍
- Haproxy high availability solution
- C语言个人通讯录管理系统
- 吃透Chisel语言.07.Chisel基础(四)——Bundle和Vec
- IDEA快捷键大全
- 392. Judgement subsequence
- Animation and transition effects
- gorm 之数据插入(转)
- Ruichengxin micro sprint technology innovation board: annual revenue of 367million, proposed to raise 1.3 billion, Datang Telecom is a shareholder
猜你喜欢
数据库公共字段自动填充
. Net delay queue
Install Trinity and solve error reporting
Getting started with the go language is simple: go implements the Caesar password
sharding key type not supported
JVM 内存布局详解,图文并茂,写得太好了!
软件测试之测试评估
One of the solutions for unity not recognizing riders
吃透Chisel语言.12.Chisel项目构建、运行和测试(四)——Chisel测试之ChiselTest
自主工业软件的创新与发展
随机推荐
Five "potential errors" in embedded programming
安装trinity、解决报错
markdown 语法之字体标红
Golang 使用 JSON unmarshal 数字到 interface{} 数字变成 float64 类型(转)
吃透Chisel语言.07.Chisel基础(四)——Bundle和Vec
qt 怎么检测鼠标在不在某个控件上
SCM polling program framework based on linked list management
C语言集合运算
Introduction to reverse debugging PE structure resource table 07/07
基于STM32+华为云IOT设计的酒驾监控系统
MySQL version 8 installation Free Tutorial
Doctoral application | West Lake University Learning and reasoning system laboratory recruits postdoctoral / doctoral / research internship, etc
2022g3 boiler water treatment examination question simulation examination question bank and simulation examination
【R语言数据科学】:交叉验证再回首
C foundation in-depth learning II
国内酒店交易DDD应用与实践——代码篇
使用默认路由作为指向Internet的路由
C array supplement
WS2818M是CPC8封装,是三通道LED驱动控制专用电路外置IC全彩双信号5V32灯可编程led灯带户外工程
MongoDB常用28条查询语句(转)