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/components/tree/demo/index.vue

57 lines
1.5 KiB

7 years ago
<script>
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'
7 years ago
import CN from '../index.zh-CN.md'
import US from '../index.en-US.md'
const md = {
cn: `# 树形控件
## 何时使用
文件夹组织架构生物分类国家地区等等世间万物的大多数结构都是树形结构使用\`树控件\`可以完整展现其中的层级关系,并具有展开收起选择等交互功能。
## 代码演示`,
us: `# Tree
## When To Use
Almost anything can be represented in a tree structure.
7 years ago
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
`,
}
export default {
category: 'Components',
type: 'Data Display',
title: 'Tree',
subtitle: '树形控件',
render () {
return (
<div>
<md cn={md.cn} us={md.us}/>
<BasicControlled/>
<Basic/>
<CustomizedIcon/>
<Draggable/>
<Dynamic/>
<Line/>
<Search/>
<Directory/>
7 years ago
<api>
<template slot='cn'>
<CN/>
</template>
<US/>
</api>
</div>
)
},
}
</script>