workflow-bpmn-modeler-maslong
v1.0.8
Published
基于 `vue` 和 `[email protected]` ,实现 flowable 的 modeler 模型设计器
Downloads
2
Readme
English | 简体中文
Preview 📟
Install ⏳
# Install
yarn add workflow-bpmn-modeler-maslong
How to use 👣
<template>
<div>
<bpmn-modeler
ref="refNode"
:xmlObj="xml"
storeColor="red"
@elementClick="elementClick"
/>
</div>
</template>
<script>
import bpmnModeler from "workflow-bpmn-modeler-maslong";
import xml from "../package/xml.json";
export default {
components: {
bpmnModeler,
},
data() {
return {
xml: undefined, // Query the xml xml={}
};
},
mounted() {
this.getModelDetail()
},
methods: {
elementClick(e) {
console.log(e);
},
getModelDetail() {
this.xml=xml.result
},
},
};
</script>