当前位置:网站首页>[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 ~
边栏推荐
猜你喜欢
Interview disassembly: how to check the soaring usage of CPU after the system goes online?
国内酒店交易DDD应用与实践——代码篇
2022 hoisting machinery command examination simulation 100 questions simulation examination platform operation
JVM series - stack and heap, method area day1-2
面试官:Redis中哈希数据类型的内部实现方式是什么?
吃透Chisel语言.12.Chisel项目构建、运行和测试(四)——Chisel测试之ChiselTest
Use the default route as the route to the Internet
Fisher信息量检测对抗样本代码详解
基于YOLOv1的口罩佩戴检测
Ruichengxin micro sprint technology innovation board: annual revenue of 367million, proposed to raise 1.3 billion, Datang Telecom is a shareholder
随机推荐
Fs4056 800mA charging IC domestic fast charging power IC
[C question set] of VII
Getting started with the go language is simple: go implements the Caesar password
Fs7867s is a voltage detection chip used for power supply voltage monitoring of digital system
中邮科技冲刺科创板:年营收20.58亿 邮政集团是大股东
Variable promotion and function promotion in JS
ASP. Net core introduction I
读取 Excel 表数据
2022年起重机械指挥考试模拟100题模拟考试平台操作
Use the default route as the route to the Internet
嵌入式编程中五个必探的“潜在错误”
Automatic filling of database public fields
基于链表管理的单片机轮询程序框架
C language Dormitory Management Query Software
Redis - how to install redis and configuration (how to quickly install redis on ubuntu18.04 and centos7.6 Linux systems)
Summary of recent days (non-technical article)
Redis —— How To Install Redis And Configuration(如何快速在 Ubuntu18.04 与 CentOS7.6 Linux 系统上安装 Redis)
E-week finance | Q1 the number of active people in the insurance industry was 86.8867 million, and the licenses of 19 Payment institutions were cancelled
英视睿达冲刺科创板:年营收4.5亿 拟募资9.79亿
逆向调试入门-PE结构-资源表07/07