简单介绍
v-org-tree是一个基于Vue封装的组织结构树组件,支持自定义节点和收缩按钮,高自由度定制,有水平和垂直两种方向
使用步骤
1. Install v-org-tree (安装)
1 | npm install v-org-tree |
2. 组件内使用代码
1 |
|
3. data数据结构(注意:配置的 props 的属性值应与 data中的字段对应)
1 | export const data = { |
4. 效果如下
````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````