Skip to content

Latest commit

 

History

History
76 lines (51 loc) · 2 KB

README.zh-CN.md

File metadata and controls

76 lines (51 loc) · 2 KB

English | 简体中文

GGEditor

language GitHub license npm version npm downloads

基于 G6React 的可视化图编辑器

演示

流程图

Flow

思维导图

Mind

安装

npm

npm install --save gg-editor

umd

<script src="https://unpkg.com/gg-editor@${version}/dist/bundle.js"></script>

快速开始

流程图

import GGEditor, { Flow } from 'gg-editor';

const data = {
  nodes: [],
  edges: [],
};

<GGEditor>
  <Flow data={data} />
</GGEditor>

思维导图

import GGEditor, { Mind } from 'gg-editor';

const data = {
  roots: [{
    label: '',
    children: [{
      label: '',
    }],
  }],
};

<GGEditor>
  <Mind data={data} />
</GGEditor>

文档

钉钉交流

钉钉交流