Draggable Nested Tree Component – he-tree-vue


he-tree-vue is a Vue.js component to render a nested tree view that allows you to resort nodes via drag and drop.

More features:

  • Checkable nodes with checkboxes.
  • Filterable nodes with a search box.
  • Expand & collapse nodes with click.

Basic usage:

1. Install & import.

import {
  Tree, // Base tree
  Fold, Check, Draggable, // plugins
  cloneTreeData, walkTreeData, getPureTreeData, // utils
} from 'he-tree-vue'
import 'he-tree-vue/dist/he-tree-vue.css'

2. Create a tree component in your template.

  <Tree :value="treeData"></Tree>

3. Register the component.

export default {
  components: {Tree},
  data() {
    return {
      treeData: yourdATA

4. Prepare your hierarchical data for the nested tree.

  {text: 'node 1'}, 
  {text: 'node 2', children: [
    {text: 'node 2-1'},
    {text: 'node 2-2'},
    {text: 'node 2-3'}

Download Details:

Author: phphe

Live Demo: https://he-tree-vue.phphe.com/

Download Link: https://github.com/phphe/he-tree-vue/archive/master.zip

Official Website: https://github.com/phphe/he-tree-vue

Install & Download:

$ npm install he-tree-vue --save

You Might Be Interested In:


Add Comment