design-flow-dev
v0.0.28
Published
1. npm 安装 <font size=1>推荐使用 npm 的方式安装,它能更好地和 webpack 打包工具配合使用。</font>
Downloads
41
Readme
安装
npm 安装 推荐使用 npm 的方式安装,它能更好地和 webpack 打包工具配合使用。
npm i design-flow-dev
快速开始
按需导入(推荐) 在你的页面里
import { flowCreate, flowStart,flowView,..... } from 'design-flow-dev'; import 'design-flow-dev/style.css';
创建模式
- 组件名称:flowCreate
- 接口描述:
- 创建一个可执行的流程,需要配置以及自己画流程
- 示例:
<flowCreate ref="flowCreate"/>
- 方法以及使用:
画完流程图获取xml: create.value是vue3里边的ref写法
create.value.saveXml((xml, error) => { if (error) { alert(error) } else { console.log(xml) } });