update form demo

This commit is contained in:
afc163 2016-04-06 19:30:23 +08:00
parent 60ebf2922c
commit 378ba4b9af
2 changed files with 9 additions and 12 deletions

View File

@ -7,7 +7,7 @@
---
````jsx
import { Form, Input, Button, Checkbox, Radio, Row, Col, Tooltip, Icon } from 'antd';
import { Form, Input, Button, Checkbox, Radio, Tooltip, Icon } from 'antd';
const FormItem = Form.Item;
const RadioGroup = Radio.Group;
@ -56,11 +56,9 @@ let Demo = React.createClass({
<Checkbox {...getFieldProps('agreement')} />同意
</label>
</FormItem>
<Row>
<Col span="16" offset="6">
<Button type="primary" htmlType="submit">确定</Button>
</Col>
</Row>
<FormItem wrapperCol={{ span: 16, offset: 6 }} style={{ marginTop: 24 }}>
<Button type="primary" htmlType="submit">确定</Button>
</FormItem>
</Form>
);
}

View File

@ -8,7 +8,7 @@
````jsx
import { Form, Select, InputNumber, DatePicker, TimePicker, Switch, Radio,
Slider, Button, Row, Col, Upload, Icon } from 'antd';
Slider, Button, Col, Upload, Icon } from 'antd';
const FormItem = Form.Item;
const Option = Select.Option;
const RadioButton = Radio.Button;
@ -129,11 +129,10 @@ let Demo = React.createClass({
</Button>
</Upload>
</FormItem>
<Row style={{ marginTop: 24 }}>
<Col span="16" offset="8">
<Button type="primary" htmlType="submit">确定</Button>
</Col>
</Row>
<FormItem wrapperCol={{ span: 16, offset: 8 }} style={{ marginTop: 24 }}>
<Button type="primary" htmlType="submit">确定</Button>
</FormItem>
</Form>
);
}