0.0.17 • Published 3 years ago

vue3-jstree-component v0.0.17

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

Vue3 JSTree Component

Demo

Demo

Usage

Using json file for parsing data

npm i vue3-jstree-component
import { RootTree } from "vue3-jstree-component"
import "../node_modules/vue3-jstree-component/dist/style.css"
<RootTree :userData="myData" />

Example Fie

<script>

import jsonData from "@/data.json";
import { RootTree } from "vue3-jstree-component";
import "../node_modules/vue3-jstree-component/dist/style.css";

export default {
  components: { RootTree },
  data: function () {
    return {
      userData: jsonData,
    };
  },
};
</script>

<template>
  <RootTree :userData="jsonData"></RootTree>
</template>

Data Input Format - json file

[
{
  "name": "Root Folder",
  "id": 1,
  "children": [
    {
      "name": "File #1"
    },
    {
      "name": "File #2",
      "children: [
        {
          "name": "Child 1",
          "name": "Child 2"
          }
      ]
    }
]

TO DO

  • Refactor allChildrenSelected & singleChildrenSelected functions
  • !!! Styles in JS
  • To emit the components instead using props
  • Try to ditch off the watchers
0.0.17

3 years ago

0.0.16

3 years ago

0.0.15

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago