index.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. import { jnpfConfigBpmnContextPad } from '../../../contextPad';
  2. import { bpmnDelData, typeDelData } from '../../../variableName';
  3. const { getData, addData, updateData, delData, interfaceData, message, launch, schedule, connect, del, paste, copy } = jnpfConfigBpmnContextPad;
  4. const jnpfDelDataConfig: any = {
  5. name: typeDelData,
  6. shapeType: bpmnDelData,
  7. element: {
  8. label: 'Task',
  9. actionName: 'replace-with-task',
  10. className: 'bpmn-icon-task',
  11. target: {
  12. type: bpmnDelData,
  13. },
  14. },
  15. renderer: {
  16. icon: 'icon-ym icon-ym-btn-clearn',
  17. iconColor: '#DD363C',
  18. titleColor: 'linear-gradient(90deg, #FFCDC1 0%, #FF8E92 100%)',
  19. background: '#ffffff',
  20. attr: { x: 0, y: 0, rx: 8, width: 200, height: 88 },
  21. rendererName: '删除数据',
  22. bodyDefaultText: '请设置删除节点',
  23. },
  24. contextPad: {
  25. default: false, // contextPad 中的元素使用默认 否则遵循自定义
  26. customization: { getData, addData, updateData, delData, interfaceData, message, launch, schedule, connect, copy, del },
  27. otherCustomization: { getData, addData, updateData, delData, interfaceData, message, launch, schedule, connect, copy, paste, del },
  28. },
  29. properties: {},
  30. };
  31. export { jnpfDelDataConfig };