Skip to content

archerding/ex-org-tree

 
 

Repository files navigation

ex-org-tree

A simple organization tree chart based on Vue2.x

API

  • props

    prop descripton type default
    data Object
    props configure props Object {label: 'label', children: 'children', expand: 'expand'}
    labelWidth node label width String | Number. auto
    collapsible children node is collapsible Boolean true
    labelClassName node label class Function | String -
  • events

    • expand-click(status='expanded|collapsed', data)

      well be called when the collapse-btn clicked

    • node-click(data)

      well be called when the node-label clicked

  • slot

  <template slot-scope="scope">
    {{scope.data.label}}
  </template>

Example

  • default

    default

  • horizontal

    horizontal

Browser support

use table layout!

IE9+、Chrome、Firefox、Opera

Build Setup

# install dependencies
npm install

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

# build for production with minification
npm run build

For detailed explanation on how things work, consult the docs for vue-loader.

About

A simple organization tree based on Vue2.x

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 63.3%
  • Vue 35.8%
  • HTML 0.9%