Skip to content

flowable workflow designer for Vue base on @antv/g6

Notifications You must be signed in to change notification settings

keyreply/wfd-vue

 
 

Repository files navigation

Workflow Designer for Vue

NPM Version NPM Downloads

image

Usage

<template>
  <div id="app">
    <wfd-vue ref="wfd" :data="demoData" :height="600" :users="candidateUsers" :groups="candidateGroups" :lang="lang" />
  </div>
</template>

<script>
import WfdVue from 'wfd-vue'
export default {
  name: 'app',
  components:{
    WfdVue
  },
  data () {
    return {
      lang: "en",
      data: {...},
      export: () => { ... }
    }
  }
}
</script>

API

Attributes
  • data: initial data
  • height: canvas height
  • mode: view/edit
  • lang: en
  • isView: whether it is preview mode (hide the toolbar and property bar)
Methods
  • export(): export to JSON data, including nodes, edges, and groups

Run Example

npm run serve

About

flowable workflow designer for Vue base on @antv/g6

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • JavaScript 61.0%
  • Vue 38.6%
  • HTML 0.4%