ant-design-vue/antdv-demo/docs/tree-select/demo/index.vue

55 lines
1.3 KiB
Vue
Raw Normal View History

2021-03-12 07:48:30 +00:00
<script>
import Basic from './basic';
import Checkable from './checkable';
import Multiple from './multiple';
import TreeData from './treeData';
import Suffix from './suffix';
import Async from './async';
import CN from '../index.zh-CN.md';
import US from '../index.en-US.md';
const md = {
cn: `# 树型选择控件
## 何时使用
类似 Select 的选择控件可选择的数据结构是一个树形结构时可以使用 TreeSelect例如公司层级学科系统分类目录等等
## 代码演示`,
us: `# TreeSelect
## When To Use
\`TreeSelect\` is similar to \`Select\`, but the values are provided in a tree like structure.
Any data whose entries are defined in a hierarchical manner is fit to use this control. Examples of such case may include a corporate hierarchy, a directory structure, and so on.
## Examples
`,
};
export default {
category: 'Components',
subtitle: '树选择',
type: 'Data Entry',
title: 'TreeSelect',
render() {
return (
<div>
<md cn={md.cn} us={md.us} />
<demo-sort>
<Basic />
<Checkable />
<Multiple />
<TreeData />
<Suffix />
<Async />
</demo-sort>
<api>
<template slot="cn">
<CN />
</template>
<US />
</api>
</div>
);
},
};
</script>