@monashakeri/vue-smart-tree-select 1.0.3 → 1.0.4

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 +50 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,5 +1,53 @@
1
1
  # Vue 3 + Vite
2
2
 
3
- This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
3
+ # Vue Smart Tree Select
4
4
 
5
- Learn more about IDE Support for Vue in the [Vue Docs Scaling up Guide](https://vuejs.org/guide/scaling-up/tooling.html#ide-support).
5
+ A customizable RTL-friendly tree select component for Vue 3.
6
+
7
+ [Live Demo](https://vue-smart-tree-select.vercel.app/) ·
8
+
9
+ ## Installation
10
+
11
+ ```bash
12
+ npm install @monashakeri/vue-smart-tree-select
13
+
14
+ <script>
15
+ import SmartTreeSelect from '@monashakeri/vue-smart-tree-select'
16
+ import '@monashakeri/vue-smart-tree-select/style.css'
17
+
18
+ export default {
19
+ components: {
20
+ SmartTreeSelect,
21
+ },
22
+
23
+ data() {
24
+ return {
25
+ selected: [],
26
+ options: [
27
+ {
28
+ _id: 'warehouse',
29
+ title: 'کاربران',
30
+ children: [
31
+ {
32
+ _id: 'warehouse-view',
33
+ title: 'مشاهده کاربران',
34
+ },
35
+ {
36
+ _id: 'warehouse-edit',
37
+ title: 'ویرایش کاربران',
38
+ },
39
+ ],
40
+ },
41
+ ],
42
+ }
43
+ },
44
+ }
45
+ </script>
46
+
47
+ <template>
48
+ <SmartTreeSelect
49
+ v-model="selected"
50
+ :options="options"
51
+ child-title-mode="parent-child"
52
+ />
53
+ </template>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monashakeri/vue-smart-tree-select",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "A customizable RTL-friendly tree select component for Vue 3.",
5
5
  "main": "./dist/vue-smart-tree-select.umd.js",
6
6
  "module": "./dist/vue-smart-tree-select.es.js",