@zhxy/flowable-bpmn-vue
v0.0.9
Published
工作流设计器(自用)
Downloads
20
Readme
flowable-bpmn-vue
基础用法
- 安装组件
npm i @zhxy/flowable-bpmn-vue -S
- 全局引入
在
main.js
文件下
import BpmnContent from '@zhxy/flowable-bpmn-vue';
import '@zhxy/flowable-bpmn-vue/lib/flowable-bpmn-vue.css';
Vue.use(BpmnContent);
- 页面中引入
<template>
<BpmnContent :form-id="id" :disabled="disabled"></BpmnContent>
</template>
组件参数
| 参数 | 说明 | 类型 | 可选值 | 默认值 | | ---- | ---- | ---- | ------ | ------ | |id | 流程key| 字符串 | | | |disabled| 是否只读 true: 不可编辑 false: 可编辑 | 布尔 | |false|
组件方法
| 事件名称 | 说明 | 回调参数 | | -------- | ---- | -------- |