项目作者: yanlibo2013

项目描述 :
vue-g6-editor
高级语言: Vue
项目地址: git://github.com/yanlibo2013/vue-g6-editor.git
创建时间: 2019-04-30T06:41:30Z
项目社区:https://github.com/yanlibo2013/vue-g6-editor

开源协议:

下载


vue-g6-editor

一个基于vue & antv/g6-editor封装的基础流程图插件

install

  1. npm install --save vue-g6-editor

use

  1. import BaseFlow from 'vue-g6-editor'
  2. import 'vue-g6-editor/lib/BaseFlow.css'
  3. <BaseFlow :data=data :getData=getData ></BaseFlow>
  4. properties:
  5. data: 传入数据,数据格式参考:https://www.yuque.com/antv/g6-editor/flow-api#tg9kpf
  6. 或者参考example/model文件夹下的flow.json
  7. methods:
  8. getData: 获取数据接口,传入callback,如:
  9. getData(data) {
  10. console.log(data)
  11. ...
  12. }

online preview

http://www.coderlyc.xyz/vue-g6-editor/