vue-treeselect
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "vue-treeselect", | ||
"description": "a tree select plugin for vue2", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"keywords": [ | ||
@@ -22,3 +22,2 @@ "vue2", | ||
"dependencies": { | ||
"vue-jstree": "^1.0.3" | ||
}, | ||
@@ -35,2 +34,3 @@ "devDependencies": { | ||
"vue": "^2.3.3", | ||
"vue-jstree": "^1.0.3", | ||
"vue-loader": "^12.1.0", | ||
@@ -37,0 +37,0 @@ "vue-template-compiler": "^2.3.3", |
@@ -7,1 +7,97 @@ # vue-treeselect | ||
This Plugin is based on [vue-jstree](https://github.com/zdy1988/vue-jstree), Some "props" can be used for reference ! | ||
## NPM | ||
```html | ||
npm install vue-treeselect | ||
``` | ||
## ES6 | ||
```html | ||
import VTreeselect from 'vue-treeselect' | ||
new Vue({ | ||
components: { | ||
VTreeselect | ||
} | ||
}) | ||
``` | ||
## Setup | ||
```html | ||
npm install | ||
npm run dev | ||
``` | ||
## Usage | ||
```html | ||
<v-tree-select :data="data" value-field-name="id" v-model="selectItem"></v-tree-select> | ||
new Vue({ | ||
el: '#app', | ||
data: { | ||
data: [ | ||
{ | ||
"text": "Same but with checkboxes", | ||
"children": [ | ||
{ | ||
"text": "initially selected", | ||
}, | ||
{ | ||
"text": "custom icon", | ||
}, | ||
{ | ||
"text": "initially open", | ||
"children": [ | ||
{ | ||
"text": "Another node" | ||
} | ||
] | ||
}, | ||
{ | ||
"text": "custom icon", | ||
}, | ||
{ | ||
"text": "disabled node", | ||
"disabled": true | ||
} | ||
] | ||
}, | ||
{ | ||
"text": "Same but with checkboxes", | ||
"children": [ | ||
{ | ||
"text": "initially selected", | ||
}, | ||
{ | ||
"text": "custom icon", | ||
}, | ||
{ | ||
"text": "initially open", | ||
"children": [ | ||
{ | ||
"text": "Another node" | ||
} | ||
] | ||
}, | ||
{ | ||
"text": "custom icon", | ||
}, | ||
{ | ||
"text": "disabled node", | ||
"disabled": true | ||
} | ||
] | ||
}, | ||
{ | ||
"text": "And wholerow selection" | ||
} | ||
], | ||
selectItem: null | ||
} | ||
}) | ||
``` |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
371231
0
388
102
14
15
- Removedvue-jstree@^1.0.3
- Removedvue-jstree@1.2.0(transitive)