mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 13:09:40 +08:00
update form demo
This commit is contained in:
parent
d202aebdea
commit
9fe92d9735
@ -43,10 +43,10 @@ React.render(
|
||||
<form className="ant-form-horizontal">
|
||||
<div className="ant-form-item">
|
||||
<label className="col-6" required>Input-Number:</label>
|
||||
<div className="col-6">
|
||||
<div className="col-10">
|
||||
<InputNumber min={1} max={10} defaultValue={3} onChange={onInputNumberChange} style={{width:100}}/>
|
||||
<span className="ant-form-text"> 台机器</span>
|
||||
</div>
|
||||
<div className="col-3"><p className="ant-form-text"> 台机器</p></div>
|
||||
</div>
|
||||
<div className="ant-form-item ant-form-item-compact">
|
||||
<label className="col-6" required>
|
||||
|
@ -85,6 +85,7 @@ input[type="checkbox"] {
|
||||
}
|
||||
|
||||
.@{css-prefix}form-text, .@{css-prefix}form-split {
|
||||
display: inline-block;
|
||||
margin: 0!important;
|
||||
padding-top: 7px;
|
||||
padding-bottom: 7px;
|
||||
@ -155,7 +156,8 @@ form {
|
||||
}
|
||||
|
||||
.@{inputNumberPrefixCls} {
|
||||
margin: 2px 0;
|
||||
margin-top: -1px;
|
||||
margin-right: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user