UNPKG

ilead-ibpmp-design-new

Version:

基于 `vue` 和 `bpmn.io@7.0` ,实现 flowable 的 modeler 模型设计器

24 lines (21 loc) 657 B
import merge from '../assets/img/merge.png' export function randomStr() { return Math.random().toString(36).slice(-8) } export function parseCDATA(str) { if (str) { const tmp = str.replace(/<!\[CDATA\[(.+)\]\]>/, '$1') const value = tmp.replace(/&lt;!\[CDATA\[(.+)\]\]&gt;/, '$1') return value } return '' } const customElements = ['bpmn:InclusiveGateway'] const customConfig = { 'bpmn:InclusiveGateway': { // 'url': 'https://hexo-blog-1256114407.cos.ap-shenzhen-fsi.myqcloud.com/rules.png', 'url': merge, 'attr': { x: 0, y: 0, width: 54, height: 54 } } } export { customElements, customConfig }