mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-19 00:41:03 +08:00
update radio group demo
This commit is contained in:
parent
3f1714bb0c
commit
139eedf87c
@ -493,7 +493,7 @@ exports[`renders ./components/radio/demo/radiogroup-more.md correctly 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
exports[`renders ./components/radio/demo/radiogroup-optional.md correctly 1`] = `
|
exports[`renders ./components/radio/demo/radiogroup-options.md correctly 1`] = `
|
||||||
<div>
|
<div>
|
||||||
<div
|
<div
|
||||||
class="ant-radio-group"
|
class="ant-radio-group"
|
||||||
|
@ -7,11 +7,15 @@ title:
|
|||||||
|
|
||||||
## zh-CN
|
## zh-CN
|
||||||
|
|
||||||
通过配置参数来控制渲染单选框。
|
通过配置 `options` 参数来渲染单选框。
|
||||||
|
|
||||||
|
> `2.9.0` 之后支持。
|
||||||
|
|
||||||
## en-US
|
## en-US
|
||||||
|
|
||||||
Render radios by configuring parameters.
|
Render radios by configuring `options`.
|
||||||
|
|
||||||
|
> support after `2.9.0`.
|
||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
import { Radio } from 'antd';
|
import { Radio } from 'antd';
|
||||||
@ -65,4 +69,4 @@ class App extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ReactDOM.render(<App />, mountNode);
|
ReactDOM.render(<App />, mountNode);
|
||||||
```
|
```
|
Loading…
Reference in New Issue
Block a user