ant-design-vue/components/tree/demo/index.vue

57 lines
1.5 KiB
Vue
Raw Normal View History

2018-04-14 13:09:35 +00:00
<script>
2019-01-12 03:33:27 +00:00
import BasicControlled from './basic-controlled';
import Basic from './basic';
import CustomizedIcon from './customized-icon';
import Draggable from './draggable';
import Dynamic from './dynamic';
import Line from './line';
import Search from './search';
import Directory from './directory';
2018-04-14 13:09:35 +00:00
2019-01-12 03:33:27 +00:00
import CN from '../index.zh-CN.md';
import US from '../index.en-US.md';
2018-04-14 13:09:35 +00:00
const md = {
cn: `# 树形控件
## 何时使用
文件夹组织架构生物分类国家地区等等世间万物的大多数结构都是树形结构使用\`树控件\`可以完整展现其中的层级关系,并具有展开收起选择等交互功能。
## 代码演示`,
us: `# Tree
## When To Use
2018-09-28 06:35:26 +00:00
Almost anything can be represented in a tree structure.
2018-04-14 13:09:35 +00:00
Examples include directories, organization hierarchies, biological classifications, countries, etc. The \`Tree\` component is a way of representing the hierarchical relationship between these things. You can also expand, collapse, and select a treeNode within a \`Tree\`.
## Examples
`,
2019-01-12 03:33:27 +00:00
};
2018-04-14 13:09:35 +00:00
export default {
category: 'Components',
type: 'Data Display',
title: 'Tree',
subtitle: '树形控件',
2019-09-28 12:45:07 +00:00
render() {
2018-04-14 13:09:35 +00:00
return (
<div>
2019-09-28 12:45:07 +00:00
<md cn={md.cn} us={md.us} />
<BasicControlled />
<Basic />
<CustomizedIcon />
<Draggable />
<Dynamic />
<Line />
<Search />
<Directory />
2018-04-14 13:09:35 +00:00
<api>
2019-09-28 12:45:07 +00:00
<template slot="cn">
<CN />
2018-04-14 13:09:35 +00:00
</template>
2019-09-28 12:45:07 +00:00
<US />
2018-04-14 13:09:35 +00:00
</api>
</div>
2019-01-12 03:33:27 +00:00
);
2018-04-14 13:09:35 +00:00
},
2019-01-12 03:33:27 +00:00
};
2018-04-14 13:09:35 +00:00
</script>