JSPM

enurm-vue3-mindmap

0.6.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q33791F
  • License MIT

Mindmap component for Vue3

Package Exports

  • enurm-vue3-mindmap

Readme

vue3-mindmap

Mindmap component for Vue3. Fork from https://github.com/hellowuxin/vue3-mindmap/

Install

npm install enurm-vue3-mindmap

Example

<template>
  <mindmap v-model="data"></mindmap>
</template>

<script>
import mindmap from 'vue3-mindmap'
import 'vue3-mindmap/dist/style.css'

export default defineComponent({
  components: { mindmap },
  setup () => {
    const data = [{
      "name":"Computer programming",
      "children": [
        {
          "name":"Web",
          "children": [
            { "name":"HTML & CSS" },
            { "name":"JavaScript" },
            ...
          ]
        },
        {
          "name":"Windows",
          "collapse": true,
          "children": [ { "name": "C#" } ]
        },
        { "name":"Other", "left": true },
        ...
      ]
    }]

    return { data }
  }
})
</script>