Add Radio in form demo, close #3910

This commit is contained in:
afc163 2016-12-04 16:19:55 +08:00
parent 9c3c2d7c0c
commit 5815ce514a

View File

@ -114,6 +114,19 @@ const Demo = Form.create()(React.createClass({
label="Radio.Group"
>
{getFieldDecorator('radio-group')(
<RadioGroup>
<Radio value="a">item 1</Radio>
<Radio value="b">item 2</Radio>
<Radio value="c">item 3</Radio>
</RadioGroup>
)}
</FormItem>
<FormItem
{...formItemLayout}
label="Radio.Button"
>
{getFieldDecorator('radio-button')(
<RadioGroup>
<RadioButton value="a">item 1</RadioButton>
<RadioButton value="b">item 2</RadioButton>