Browse Source

Add Radio in form demo, close #3910

pull/4128/head
afc163 8 years ago
parent
commit
5815ce514a
  1. 13
      components/form/demo/validate-other.md

13
components/form/demo/validate-other.md

@ -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>

Loading…
Cancel
Save