2018-04-14 13:09:35 +00:00
< 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'
2018-09-28 06:35:26 +00:00
import Directory from './directory'
2018-04-14 13:09:35 +00:00
import CN from '../index.zh-CN.md'
import US from '../index.en-US.md'
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
` ,
}
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 / >
2018-09-28 06:35:26 +00:00
< Directory / >
2018-04-14 13:09:35 +00:00
< api >
< template slot = 'cn' >
< CN / >
< / template >
< US / >
< / api >
< / div >
)
} ,
}
< / script >