vue-orgchart

A vue wrapper for OrgChart.js
21,740 173
Install
npm install vue-orgchart
Latest Version:1.1.7
Vue:2
License:MIT
Last Updated:Jun 15, 2018
Links: GitHub  ·  npm
Maintainer: spiritree

Intro

  • First of all, thanks a lot for dabeng's great work -- OrgChart.js
  • If you prefer the Vue.js Wrapper for Orgchart.js,you could try my project

Links

Feature

  • Support import and export JSON
  • Supports exporting chart as a picture
  • draggable Orgchart
  • Editable Orgchart

...

Install

npm install vue-orgchart -S

Quick Start

In main.js

import 'vue-orgchart/dist/style.min.css'

In *.vue

<template>
  <div>
    <vo-basic :data="chartData"></vo-basic>
  </div>
</template>

<script>
import { VoBasic } from 'vue-orgchart'
export default {
  components: { VoBasic }
  created () {
    this.chartData = {
      name: 'JavaScript',
        children: [
          { name: 'Angular' },
          {
            name: 'React',
            children: [{ name: 'Preact' }]
          },
          {
            name: 'Vue',
            children: [{ name: 'Moon' }]
          }
        ]
    }
}
</script>

Development

# install dependencies
npm install

# serve with hot reload at localhost:8999
npm run dev

# unit test
npm run test

# build by rollup
npm run rollup

License

MIT

Related Packages

zm-tree-org

A simplified organization chart with components dependent on Vue org tree. On th...

6,833
vue-organization-chart

organization chart component based vuejs

120,364 303
@klad/vue

Klad for Vue 3 — a canvas tree engine for tens of thousands of nodes. Tiered, fi...

2,933 33

Version History

Version Released License
1.1.7 MIT
1.1.6 MIT
1.1.5 MIT
1.1.4 MIT
1.1.3 MIT