vue3-nice-treeview 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -10
- package/package.json +5 -6
package/README.md
CHANGED
|
@@ -1,30 +1,34 @@
|
|
|
1
1
|
# Vue 3 Nice Treeview
|
|
2
|
-
|
|
3
2
|
A treeview component for Vue 3 with checkbox/highlight selection, multi/single select, search, and RTL support.
|
|
4
3
|
|
|
5
4
|
## Installation
|
|
6
|
-
|
|
7
5
|
```bash
|
|
8
6
|
npm install vue3-nice-treeview
|
|
7
|
+
```
|
|
9
8
|
|
|
10
|
-
##
|
|
9
|
+
## Dependencies
|
|
10
|
+
```bash
|
|
11
|
+
npm install bootstrap-icons
|
|
12
|
+
```
|
|
11
13
|
|
|
14
|
+
## Configuration
|
|
12
15
|
```javascript
|
|
13
16
|
import { createApp } from 'vue'
|
|
14
17
|
import { NiceTreeViewPlugin } from 'vue3-nice-treeview'
|
|
15
18
|
import 'vue3-nice-treeview/dist/style.css'
|
|
19
|
+
import 'bootstrap-icons/font/bootstrap-icons.css'
|
|
16
20
|
|
|
17
21
|
const app = createApp(App)
|
|
18
22
|
app.use(NiceTreeViewPlugin)
|
|
19
23
|
app.mount('#app')
|
|
20
24
|
```
|
|
21
25
|
|
|
22
|
-
|
|
23
|
-
|
|
26
|
+
## Usage
|
|
27
|
+
```html
|
|
28
|
+
<nice-treeview :nodes="nodes" @node-check-change="onSelectionChange"/>
|
|
24
29
|
```
|
|
25
30
|
|
|
26
31
|
## Node Structure
|
|
27
|
-
|
|
28
32
|
```javascript
|
|
29
33
|
{
|
|
30
34
|
id: 1, // Required — unique identifier
|
|
@@ -36,7 +40,6 @@ app.mount('#app')
|
|
|
36
40
|
```
|
|
37
41
|
|
|
38
42
|
## Props
|
|
39
|
-
|
|
40
43
|
| Prop | Type | Default | Description |
|
|
41
44
|
|------|------|---------|-------------|
|
|
42
45
|
| `nodes` | `Array` | *required* | Tree data array |
|
|
@@ -50,11 +53,9 @@ app.mount('#app')
|
|
|
50
53
|
| `floatingHeader` | `Boolean` | `true` | Floating toolbar |
|
|
51
54
|
|
|
52
55
|
## Events
|
|
53
|
-
|
|
54
56
|
| Event | Payload | Description |
|
|
55
57
|
|-------|---------|-------------|
|
|
56
58
|
| `node-check-change` | `(node, selectedIds)` | Fires on selection change |
|
|
57
59
|
|
|
58
60
|
## License
|
|
59
|
-
|
|
60
|
-
MIT
|
|
61
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue3-nice-treeview",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "An easy to use treeview for vue3 with practical features",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "dist/vue3-nice-treeview.umd.js",
|
|
@@ -26,16 +26,15 @@
|
|
|
26
26
|
"build": "vite build && node -e \"require('fs').copyFileSync('src/index.d.ts','dist/index.d.ts')\"",
|
|
27
27
|
"prepublishOnly": "npm run build"
|
|
28
28
|
},
|
|
29
|
-
"dependencies": {
|
|
30
|
-
"bootstrap-icons": "1.11.0"
|
|
31
|
-
},
|
|
32
29
|
"peerDependencies": {
|
|
33
|
-
"vue": "^3.0.0"
|
|
30
|
+
"vue": "^3.0.0",
|
|
31
|
+
"bootstrap-icons": "1.11.0"
|
|
34
32
|
},
|
|
35
33
|
"devDependencies": {
|
|
36
34
|
"@vitejs/plugin-vue": "^4.5.0",
|
|
37
35
|
"vite": "^4.5.0",
|
|
38
|
-
"vue": "^3.4.37"
|
|
36
|
+
"vue": "^3.4.37",
|
|
37
|
+
"bootstrap-icons": "1.11.0"
|
|
39
38
|
},
|
|
40
39
|
"keywords": ["vue3", "vue", "treeview", "tree", "component", "ui", "select", "multiselect", "checkbox", "highlight"],
|
|
41
40
|
"author": "Milad Poursaleh",
|