vue3-nice-treeview 0.1.2 → 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.
Files changed (2) hide show
  1. package/README.md +11 -10
  2. package/package.json +1 -1
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
- ## Usage
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
- ```vue
23
- <nice-treeview :nodes="treeData" @node-check-change="onSelectionChange" />
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.2",
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",