当前位置:网站首页>[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 ~
边栏推荐
- C language staff management system
- Getting started with microservices
- 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
- remount of the / superblock failed: Permission denied
- 国内酒店交易DDD应用与实践——代码篇
- JVM 内存布局详解,图文并茂,写得太好了!
- Openharmony application development how to create dayu200 previewer
- 華昊中天沖刺科創板:年虧2.8億擬募資15億 貝達藥業是股東
- 美国土安全部部长警告移民“不要踏上危险的旅程”
- 【C 题集】of Ⅶ
猜你喜欢

好博医疗冲刺科创板:年营收2.6亿 万永钢和沈智群为实控人

CVPR 2022 | 大幅减少零样本学习所需的人工标注,提出富含视觉信息的类别语义嵌入(源代码下载)...

吃透Chisel语言.10.Chisel项目构建、运行和测试(二)——Chisel中生成Verilog代码&Chisel开发流程

近日小结(非技术文)

unity不识别rider的其中一种解决方法

MySQL45讲——学习极客时间MySQL实战45讲笔记—— 06 | 全局锁和表锁_给表加个字段怎么有这么多阻碍

免费、好用、强大的轻量级笔记软件评测:Drafts、Apple 备忘录、Flomo、Keep、FlowUs、Agenda、SideNote、Workflowy

Byte interview algorithm question

MySQL version 8 installation Free Tutorial

2022G3锅炉水处理考试题模拟考试题库及模拟考试
随机推荐
ASP. Net core introduction I
Go 语言入门很简单:Go 实现凯撒密码
C语言中学生成绩管理系统
Distributed base theory
Fisher信息量检测对抗样本代码详解
软件测试之测试评估
qt 怎么检测鼠标在不在某个控件上
Golang 使用 JSON unmarshal 数字到 interface{} 数字变成 float64 类型(转)
Summary of recent days (non-technical article)
常见 content-type对应表
【R语言数据科学】:交叉验证再回首
MySQL 5 installation and modification free
MySQL5免安装修改
markdown 语法之字体标红
好博医疗冲刺科创板:年营收2.6亿 万永钢和沈智群为实控人
. Net delay queue
ViewBinding和DataBinding的理解和区别
Node の MongoDB安装
程序员转方向
Variable promotion and function promotion in JS