2017-11-07 03:58:47 +00:00
|
|
|
|
<script>
|
2019-01-12 03:33:27 +00:00
|
|
|
|
import Basic from './basic';
|
|
|
|
|
import Disabled from './disabled';
|
|
|
|
|
import RadioButton from './radioButton';
|
|
|
|
|
import RadioGroupMore from './radioGroup-more';
|
|
|
|
|
import RadioGroupOptions from './radioGroup-options';
|
|
|
|
|
import RadioGroupWithName from './radioGroup-with-name';
|
|
|
|
|
import RadioGroup from './radioGroup';
|
|
|
|
|
import RadioButtonSolid from './radioButton-solid';
|
2018-09-05 13:28:54 +00:00
|
|
|
|
|
2019-01-12 03:33:27 +00:00
|
|
|
|
import Size from './size';
|
|
|
|
|
import CN from '../index.zh-CN.md';
|
|
|
|
|
import US from '../index.en-US.md';
|
2018-04-11 05:32:18 +00:00
|
|
|
|
|
|
|
|
|
const md = {
|
|
|
|
|
cn: `# 单选框
|
|
|
|
|
单选框。
|
|
|
|
|
|
|
|
|
|
## 何时使用
|
|
|
|
|
|
|
|
|
|
- 用于在多个备选项中选中单个状态。
|
|
|
|
|
- 和 Select 的区别是,Radio 所有选项默认可见,方便用户在比较中选择,因此选项不宜过多。
|
|
|
|
|
## 代码演示`,
|
|
|
|
|
us: `# Radio
|
|
|
|
|
Radio.
|
|
|
|
|
|
|
|
|
|
## When To Use
|
|
|
|
|
|
2018-12-10 14:25:16 +00:00
|
|
|
|
- Used to select a single state from multiple options.
|
|
|
|
|
- The difference from Select is that Radio is visible to the user and can facilitate the comparison of choice, which means there shouldn't be too many of them.
|
2018-04-11 05:32:18 +00:00
|
|
|
|
## Examples
|
|
|
|
|
`,
|
2019-01-12 03:33:27 +00:00
|
|
|
|
};
|
2017-11-07 03:58:47 +00:00
|
|
|
|
export default {
|
2018-03-20 13:48:01 +00:00
|
|
|
|
category: 'Components',
|
|
|
|
|
subtitle: '单选框',
|
|
|
|
|
type: 'Data Entry',
|
|
|
|
|
title: 'Radio',
|
2018-04-11 05:32:18 +00:00
|
|
|
|
render () {
|
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
<md cn={md.cn} us={md.us}/>
|
|
|
|
|
<Basic />
|
|
|
|
|
<Disabled />
|
|
|
|
|
<RadioButton />
|
2018-09-05 13:28:54 +00:00
|
|
|
|
<RadioButtonSolid />
|
2018-04-11 05:32:18 +00:00
|
|
|
|
<RadioGroupMore />
|
|
|
|
|
<RadioGroupOptions />
|
|
|
|
|
<RadioGroupWithName />
|
|
|
|
|
<RadioGroup />
|
|
|
|
|
<Size />
|
|
|
|
|
<api>
|
|
|
|
|
<template slot='cn'>
|
|
|
|
|
<CN/>
|
|
|
|
|
</template>
|
|
|
|
|
<US/>
|
|
|
|
|
</api>
|
|
|
|
|
</div>
|
2019-01-12 03:33:27 +00:00
|
|
|
|
);
|
2017-11-07 03:58:47 +00:00
|
|
|
|
},
|
2019-01-12 03:33:27 +00:00
|
|
|
|
};
|
2017-11-07 03:58:47 +00:00
|
|
|
|
</script>
|