index.ts 936 B

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