You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/antdv-demo/docs/select/demo/index.vue

76 lines
2.2 KiB

<script>
import Basic from './basic';
import Size from './size';
import Tags from './tags';
import AutomaticTokenization from './automatic-tokenization';
import LabelInValue from './label-in-value';
import Multiple from './multiple';
import Coordinate from './coordinate';
import Optgroup from './optgroup';
import SearchBox from './search-box';
import Search from './search';
import SelectUsers from './select-users';
import Suffix from './suffix';
import HideSelected from './hide-selected';
import CustomDropdownMenu from './custom-dropdown-menu';
import OptionLabelProp from './option-label-prop';
import CN from '../index.zh-CN.md';
import US from '../index.en-US.md';
const md = {
cn: `# Select 选择器
下拉选择器
## 何时使用
- 弹出一个下拉菜单给用户选择操作用于代替原生的选择器或者需要一个更优雅的多选器时
- 当选项少时少于 5 建议直接将选项平铺使用 [Radio](/ant-design/components/radio-cn/)
## 代码演示`,
us: `# Select
Select component to select value from options.
## When To Use
- A dropdown menu for displaying choices - an elegant alternative to the native \`<select>\` element.
- Utilizing [Radio](/ant-design/components/radio/) is recommended when there are fewer total options (less than 5).
## Examples `,
};
export default {
category: 'Components',
subtitle: '选择器',
type: 'Data Entry',
title: 'Select',
render() {
return (
<div id="components-select-demo">
<md cn={md.cn} us={md.us} />
<demo-sort>
<Basic />
<Size />
<Tags />
<AutomaticTokenization />
<LabelInValue />
<Multiple />
<Coordinate />
<Optgroup />
<SearchBox />
<Search />
<SelectUsers />
<Suffix />
<HideSelected />
<CustomDropdownMenu />
<OptionLabelProp />
</demo-sort>
<api>
<CN slot="cn" />
<US />
</api>
</div>
);
},
};
</script>
<style>
#components-select-demo .ant-select {
margin: 0 8px 10px 0;
}
</style>
>