# vue-tree **Repository Path**: mirrors_singod/vue-tree ## Basic Information - **Project Name**: vue-tree - **Description**: A tree component - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2026-03-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Vue Tree View Component Support `Vue.js` 2.0+ ## Usage Add the following required resources. ```html ``` Add the component in your vue view. ```html
``` ## Node Options `[opt]` means optional property. ```javascript { name: 'Node Name', title: 'Node Tag title attr', isParent: true, // Requested for parent node isOpen: false, // [opt] Control node to fold or unfold icon: 'fa fa-folder', //[opt] Icon class name openedIcon: 'fa fa-folder-open', // [opt] For parent. Show when isOpen == true, show icon if it's null or empty closedIcon: 'fa fa-folder', // [opt] For parent. Show when isOpen != true, show icon if it's null or empty children: [], // Requested for parent node buttons: [ // [opt] { title: 'icon button tag title attr', //[opt] icon: 'fa fa-edit', click: function (node) { //[opt] // } } //... ], showLoading: false, // [opt] For parent, when `node.showLoading && node._loading` and node is opened then show loading icon onOpened: function (node) {}, // [opt] onClosed: function (node) {} // [opt] } ``` ## License Copyright (c) 2016 weibangtuo. Under MIT License.