index.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import { jnpfConfigBpmnContextPad } from '../../contextPad';
  2. import { bpmnOutside, typeOutside } from '../../variableName';
  3. const { approver, processing, connect, copy, del } = jnpfConfigBpmnContextPad;
  4. const jnpfOutsideConfig: any = {
  5. name: typeOutside,
  6. shapeType: bpmnOutside,
  7. element: {
  8. label: 'Task',
  9. actionName: 'replace-with-task',
  10. className: 'bpmn-icon-task',
  11. target: {
  12. type: bpmnOutside,
  13. },
  14. },
  15. palette: {
  16. name: 'create.jnpf-task',
  17. group: 'model',
  18. className: 'icon-jnpf-create icon-ym icon-ym-flow-node-external',
  19. title: '创建一个类型为jnpf-task的任务节点',
  20. },
  21. renderer: {
  22. icon: 'icon-ym icon-ym-flow-node-external',
  23. iconColor: '#FC821A',
  24. titleColor: 'linear-gradient(90deg, #FCEDE2 0%, #FFBB81 100%)',
  25. background: '#ffffff',
  26. attr: { x: 0, y: 0, rx: 8, width: 200, height: 88 },
  27. rendererName: '外部节点',
  28. bodyDefaultText: '请设置外部审批',
  29. },
  30. contextPad: {
  31. default: false, // contextPad 中的元素使用默认 否则遵循自定义
  32. customization: { approver, processing, connect, copy, del },
  33. },
  34. properties: {},
  35. };
  36. export { jnpfOutsideConfig };