JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q23095F
  • License MIT

Package Exports

  • vue-tree-example

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue-tree-example) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

vue-tree-example

GitHub license

VueJS component for rendering the tree with custom data.

Install

yarn add vue-tree-example or npm install --save vue-tree-example

Usage

Basic example

<script>
import VueTreeExample from 'vue-tree-example';
export default {
  components: {
    VueTreeExample,
  },
  data() {
    return {
      model: {
        name: 'My Tree',
        children: [
          { name: 'hello' },
          { name: 'wat' },
          {
            name: 'child folder',
            children: [
              {
                name: 'child folder',
                children: [
                  { name: 'hello' },
                  { name: 'wat' }
                ]
              },
              { name: 'hello' },
              { name: 'wat' },
              {
                name: 'child folder',
                children: [
                  { name: 'hello' },
                  { name: 'wat' }
                ]
              }
            ]
          }
        ]
      }
    };
  },
}
</script>

<template>
    <div>
      Here will be vue-tree-example
      <VueTreeExample :model="model"></VueTreeExample>
    </div>
</template>