wf-bm-modeler
基于bpmn实现的二次封装
1,910
| Install | |
|---|---|
npm install wf-bm-modeler |
|
| Latest Version: | 1.0.15 |
| Vue: | 2 |
| Last Updated: | Mar 14, 2023 |
| Links: | npm |
Maintainer: liumingyao
基于bpmn实现的二次封装
npm i wf-bm-modeler
<wfBmModler ref="wf-bm-view" :xml="xml" :users="users" :groups="groups" :categorys="categorys" :exps="exps" :is-view="false" @save="save" @showXML="showXML" />
import wfBmModler from 'wf-bm-modeler' import 'wf-bm-modeler/lib/index.css';
components: { wfBmModler },
save(data) {
console.log(data);
const elementRegistry = this.$refs["wf-bm-view"].modeler.get('elementRegistry')
const processList = elementRegistry.filter((item) => item.type === 'bpmn:Process');
console.log(processList[0]);
const { businessObject } = processList[0];
const { id, name, documentation } = businessObject;
const description =
documentation && documentation.length > 0
? documentation[0].text
: null;
const params = {
modelKey: id,
name,
description,
modelEditorXml: data.xml,
xml: data.xml
};
console.log(params);
},
showXML(xmlData) {
this.xmlOpen = true
console.log(xmlData);
this.xmlData = xmlData
}
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.0.15 | ^2.6.10 | ||
| 1.0.14 | ^2.6.10 | ||
| 1.0.13 | ^2.6.10 | ||
| 1.0.12 | ^2.6.10 | ||
| 1.0.11 | ^2.6.10 | ||
| 1.0.10 | ^2.6.10 | ||
| 1.0.9 | ^2.6.10 | ||
| 1.0.8 | ^2.6.10 | ||
| 1.0.4 | ^2.6.10 | ||
| 1.0.3 | ^2.6.10 | ||
| 1.0.2 | ^2.6.10 | ||
| 1.0.0 | ^2.6.10 |