index.ts 823 B

12345678910111213141516171819202122232425262728293031
  1. import { bpmnTimer, typeTimer } from '../../variableName';
  2. const jnpfTimerConfig: any = {
  3. name: typeTimer,
  4. shapeType: bpmnTimer,
  5. element: {
  6. label: 'Timer',
  7. actionName: 'replace-with-timer',
  8. className: 'bpmn-icon-timer',
  9. target: {
  10. type: bpmnTimer,
  11. },
  12. },
  13. palette: {
  14. name: 'create.yinmai-timer',
  15. group: 'model',
  16. className: 'icon-yinmai-create icon-yinmai-timer',
  17. title: '创建一个类型为yinmai-task的定时器',
  18. },
  19. renderer: {
  20. attr: { x: 0, y: 0, width: 200, height: 38 },
  21. rendererName: '定时器',
  22. fillColor: 'rgb(240,245,255)',
  23. },
  24. contextPad: {
  25. default: true, // contextPad 中的元素使用默认 否则遵循自定义
  26. customization: {}, // 自定义 只有default = false 开启
  27. },
  28. properties: {},
  29. };
  30. export { jnpfTimerConfig };