当前位置:网站首页>[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 ~
边栏推荐
- FS7867S是一款应用于数字系统供电电源电压监控的电压检测芯片
- 吃透Chisel语言.05.Chisel基础(二)——组合电路与运算符
- C language dormitory management query software
- 華昊中天沖刺科創板:年虧2.8億擬募資15億 貝達藥業是股東
- markdown 语法之字体标红
- Flet tutorial 03 basic introduction to filledbutton (tutorial includes source code) (tutorial includes source code)
- One of the solutions for unity not recognizing riders
- Huahao Zhongtian rushes to the scientific and Technological Innovation Board: the annual loss is 280million, and it is proposed to raise 1.5 billion. Beida pharmaceutical is a shareholder
- 结合案例:Flink框架中的最底层API(ProcessFunction)用法
- C语言课程设计题
猜你喜欢

Detailed explanation of Fisher information quantity detection countermeasure sample code

国内酒店交易DDD应用与实践——代码篇

英视睿达冲刺科创板:年营收4.5亿 拟募资9.79亿

Qt如何实现打包,实现EXE分享

2022G3锅炉水处理考试题模拟考试题库及模拟考试

MySQL 45 lecture - learn the actual combat notes of MySQL in Geek time 45 lecture - 06 | global lock and table lock_ Why are there so many obstacles in adding a field to the table

Redis - how to install redis and configuration (how to quickly install redis on ubuntu18.04 and centos7.6 Linux systems)

MySQL version 8 installation Free Tutorial

Use the default route as the route to the Internet

ASP. Net core introduction I
随机推荐
吃透Chisel语言.09.Chisel项目构建、运行和测试(一)——用sbt构建Chisel项目并运行
2022g3 boiler water treatment examination question simulation examination question bank and simulation examination
C语言中学生成绩管理系统
小程序直播 + 电商,想做新零售电商就用它吧!
Dgraph: large scale dynamic graph dataset
舔狗舔到最后一无所有(状态机)
Understanding and difference between viewbinding and databinding
面试官:Redis中哈希数据类型的内部实现方式是什么?
go vendor 项目迁移到 mod 项目
如何在 2022 年为 Web 应用程序选择技术堆栈
软件测试之测试评估
Getting started with the go language is simple: go implements the Caesar password
One of the solutions for unity not recognizing riders
Unittest框架之断言
Flet tutorial 03 basic introduction to filledbutton (tutorial includes source code) (tutorial includes source code)
好博医疗冲刺科创板:年营收2.6亿 万永钢和沈智群为实控人
Redis —— How To Install Redis And Configuration(如何快速在 Ubuntu18.04 与 CentOS7.6 Linux 系统上安装 Redis)
锐成芯微冲刺科创板:年营收3.67亿拟募资13亿 大唐电信是股东
2022危险化学品经营单位主要负责人练习题及模拟考试
CVPR 2022 | 大幅减少零样本学习所需的人工标注,提出富含视觉信息的类别语义嵌入(源代码下载)...