mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
docs: update demo, close: #3673
This commit is contained in:
parent
7372893b8e
commit
d198c63a68
@ -85,6 +85,12 @@ const RegistrationForm = Form.create()(React.createClass({
|
||||
labelCol: { span: 6 },
|
||||
wrapperCol: { span: 14 },
|
||||
};
|
||||
const tailFormItemLayout = {
|
||||
wrapperCol: {
|
||||
span: 14,
|
||||
offset: 6,
|
||||
},
|
||||
};
|
||||
const prefixSelector = getFieldDecorator('prefix', {
|
||||
initialValue: '86',
|
||||
})(
|
||||
@ -195,14 +201,14 @@ const RegistrationForm = Form.create()(React.createClass({
|
||||
</Col>
|
||||
</Row>
|
||||
</FormItem>
|
||||
<FormItem wrapperCol={{ span: 14, offset: 6 }}>
|
||||
<p>
|
||||
{getFieldDecorator('agreement', {
|
||||
valuePropName: 'checked',
|
||||
})(
|
||||
<Checkbox>I had read the <a>agreement</a></Checkbox>
|
||||
)}
|
||||
</p>
|
||||
<FormItem {...tailFormItemLayout} style={{ marginBottom: 8 }}>
|
||||
{getFieldDecorator('agreement', {
|
||||
valuePropName: 'checked',
|
||||
})(
|
||||
<Checkbox>I had read the <a>agreement</a></Checkbox>
|
||||
)}
|
||||
</FormItem>
|
||||
<FormItem {...tailFormItemLayout}>
|
||||
<Button type="primary" htmlType="submit" size="large">Register</Button>
|
||||
</FormItem>
|
||||
</Form>
|
||||
|
Loading…
Reference in New Issue
Block a user