|
|
@ -53,27 +53,27 @@ let Demo = React.createClass({ |
|
|
|
render() { |
|
|
|
const { getFieldDecorator } = this.props.form; |
|
|
|
return ( |
|
|
|
<Form horizontal onSubmit={this.handleSubmit} > |
|
|
|
<Form horizontal onSubmit={this.handleSubmit}> |
|
|
|
<FormItem |
|
|
|
label="InputNumber Control" |
|
|
|
label="I'm the title" |
|
|
|
labelCol={{ span: 8 }} |
|
|
|
wrapperCol={{ span: 10 }} |
|
|
|
wrapperCol={{ span: 16 }} |
|
|
|
> |
|
|
|
{getFieldDecorator('inputNumber', { initialValue: 3 })( |
|
|
|
<InputNumber min={1} max={10} style={{ width: 100 }} /> |
|
|
|
)} |
|
|
|
<span className="ant-form-text"> machines</span> |
|
|
|
<p className="ant-form-text" id="static" name="static">O, wind, if winter comes, can spring be far behind?</p> |
|
|
|
<p className="ant-form-text"> |
|
|
|
<a href="#">link</a> |
|
|
|
</p> |
|
|
|
</FormItem> |
|
|
|
|
|
|
|
<FormItem |
|
|
|
label="I'm the title" |
|
|
|
label="InputNumber" |
|
|
|
labelCol={{ span: 8 }} |
|
|
|
wrapperCol={{ span: 10 }} |
|
|
|
> |
|
|
|
<p className="ant-form-text" id="static" name="static">O, wind, if winter comes, can spring be far behind?</p> |
|
|
|
<p className="ant-form-text"> |
|
|
|
<a href="#">link</a> |
|
|
|
</p> |
|
|
|
{getFieldDecorator('inputNumber', { initialValue: 3 })( |
|
|
|
<InputNumber min={1} max={10} style={{ width: 100 }} /> |
|
|
|
)} |
|
|
|
<span className="ant-form-text"> machines</span> |
|
|
|
</FormItem> |
|
|
|
|
|
|
|
<FormItem |
|
|
|