1.0.27 • Published 2 years ago

customflow-ui v1.0.27

Weekly downloads
90
License
MIT
Repository
-
Last release
2 years ago

customflow-ui 前端工作流 UI

基于vue前端工作流UI

前端工作流生成器-Generator

1、首先通过npm安装: npm install customflow-ui --save

(注意:新版本插件未生效的话,试试npm update命令,或者customflow-ui版本并删除node_modules重新下载)

2、全局定义组件(否则会报循环引用):

main.js中

import Node from 'customflow-ui/src/components/Generator/node'
Vue.component('Node', Node)

3、在使用的地方:

<template>
  <div>
    <CustomFlow
      :data="data"
      @ok="ok"
    />
  </div>
</template>
<script>
import CustomFlow from 'customflow-ui'
import 'customflow-ui/lib/customflow-ui.css'
export default {
  components: {
    CustomFlow
  },
  data () {
    return {
      data: {
        title: '请假',
        node: {
          name: '发起人',
          type: 'start',
          nodeId: 'sid-startevent',
          childNode: {}
        }
      }
    }
  },
  methods: {
    ok (data) {
      console.log(data)
    }
  }
}
</script>
1.0.27

2 years ago

1.0.26

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.23

4 years ago

1.0.22

4 years ago

1.0.21

4 years ago

1.0.20

4 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago