wpg-tree

A tree component base Vue.component

Usage no npm install needed!

<script type="module">
  import wpgTree from 'https://cdn.skypack.dev/wpg-tree';
</script>

README

wpg-tree

A tree component based on Vue.

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

Document

封装自element-ui的树组件,添加其他扩展。

基础功能使用文档参见:https://element.eleme.io/#/zh-CN/component/tree

扩展功能:

  1. 图标扩展,每项尾部可添加自定义图标,数据项添加icon字段,使用方法参见App.vue内数据定义;
  2. 主题扩展,添加多种主题,展示样式做相应调整。