Vue.js 2.x的动态,可扩展,水平/垂直组织树组件。
v1.3.4(07/26/2020)
2020/06/18
# Yarn
$ yarn add vue-org-tree
# NPM
$ npm install vue-org-tree --save
import Vue from 'vue'
import OrgTree from 'vue-org-tree'
data: {
type: Object,
required: true
},
props: {
type: Object,
default: () => ({
label: 'label',
expand: 'expand',
children: 'children'
})
},
horizontal: Boolean,
collapsable: Boolean,
renderContent: Function,
labelWidth: [String, Number],
labelClassName: [Function, String]