04egypt-orgchart

中文文档
1.0.0发布于 2019/03/07ISCCommonJS零依赖
原始使用文档
文档目录7 节
  1. Intro
  2. Links
  3. Feature
  4. Install
  5. Quick Start
  6. Development
  7. License

vue-orgchart logo

A Vue wrapper for OrgChart.js.

Travis Status npm

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

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

版本与发布记录

04egypt-orgchart 共发布 1 个版本,首次发布于 2019/03/07;过去 12 个月发布了 0 个版本。

版本发布日期距今
1.0.0latest2019/03/077 年前

关于 04egypt-orgchart 的常见问题

如何安装 04egypt-orgchart?

在项目目录运行 npm install 04egypt-orgchart,或使用 pnpm add / yarn add / bun add。

04egypt-orgchart 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/04egypt-orgchart 是否存在。

04egypt-orgchart 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

04egypt-orgchart 可以商用吗?

04egypt-orgchart 使用 ISC 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

04egypt-orgchart 还在维护吗?

最新版本 1.0.0 发布于 2019/03/07(7 年前);至今共发布 1 个版本,其中过去 12 个月发布了 0 个;首次发布于 2019/03/07。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。