刘光辉
7 小时以前 0dfe84494048ce27ba8449831782128412d3eb13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import { bpmnLabel } from '../../variableName';
import { jnpfConfigBpmnContextPad } from '../../contextPad';
const {
  approver,
  subFlow,
  inclusive,
  parallel,
  exclusive,
  trigger,
  getData,
  addData,
  updateData,
  delData,
  interfaceData,
  message,
  launch,
  schedule,
  choose,
  processing,
  outside
} = jnpfConfigBpmnContextPad;
const jnpfLabelConfig: any = {
  name: bpmnLabel,
  shapeType: bpmnLabel,
  element: {
    label: 'Timer',
    actionName: 'replace-with-timer',
    className: 'bpmn-icon-timer',
    target: {
      type: bpmnLabel,
    },
  },
  palette: {
    name: 'create.yinmai-timer',
    group: 'model',
    className: 'icon-yinmai-create icon-yinmai-timer',
    title: '修改为渲染按钮',
  },
  renderer: {
    background: '#ffffff',
    attr: { x: 0, y: 0, width: 28, height: 28 },
    rendererName: 'label按钮',
    fillColor: 'rgb(255,255,255)',
  },
  contextPad: {
    default: false, // contextPad 中的元素使用默认 否则遵循自定义
    customization: { approver, subFlow, processing, outside, exclusive, inclusive, parallel, choose, trigger }, // 自定义 只有default = false 开启
    groupCustomization: { getData, addData, updateData, delData, interfaceData, message, launch, schedule }, // 分组内部使用这个配置
  },
  properties: {},
};
 
export { jnpfLabelConfig };