index.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. import { jnpfConfigBpmnContextPad } from '../../../contextPad';
  2. import { bpmnChoose, typeChoose } from '../../../variableName';
  3. const { approver } = jnpfConfigBpmnContextPad;
  4. const jnpfChooseConfig: any = {
  5. name: typeChoose,
  6. shapeType: bpmnChoose,
  7. element: {
  8. label: 'Task',
  9. actionName: 'replace-with-task',
  10. className: 'bpmn-icon-task',
  11. target: {
  12. type: typeChoose,
  13. },
  14. },
  15. palette: {
  16. name: 'create.jnpf-task',
  17. group: 'model',
  18. className: 'icon-jnpf-create icon-jnpf-task',
  19. title: '创建一个类型为jnpf-task的任务节点',
  20. },
  21. renderer: {
  22. icon: 'icon-ym icon-ym-flow-node-approve',
  23. iconColor: '#1DACEB',
  24. titleColor: '#C0EDF8',
  25. background: '#ffffff',
  26. attr: { x: 0, y: 0, width: 90, rx: 16, height: 32 },
  27. rendererName: '新增分支',
  28. bodyDefaultText: '请设置审批人',
  29. },
  30. contextPad: {
  31. default: false, // contextPad 中的元素使用默认 否则遵循自定义
  32. customization: { approver }, // 自定义 只有default = false 开启
  33. },
  34. properties: {},
  35. };
  36. export { jnpfChooseConfig };