data_D.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. var dataD = {
  2. name: '流程D',
  3. nodeList: [
  4. {
  5. id: 'nodeA',
  6. name: '流程D-节点A',
  7. type: 'task',
  8. left: '18px',
  9. top: '223px',
  10. ico: 'el-icon-user-solid',
  11. state: 'success'
  12. },
  13. {
  14. id: 'nodeB',
  15. type: 'task',
  16. name: '流程D-节点B',
  17. left: '351px',
  18. top: '96px',
  19. ico: 'el-icon-goods',
  20. state: 'error'
  21. },
  22. {
  23. id: 'nodeC',
  24. name: '流程D-节点C',
  25. type: 'task',
  26. left: '354px',
  27. top: '351px',
  28. ico: 'el-icon-present',
  29. state: 'warning'
  30. }, {
  31. id: 'nodeD',
  32. name: '流程D-节点D',
  33. type: 'task',
  34. left: '723px',
  35. top: '215px',
  36. ico: 'el-icon-present',
  37. state: 'running'
  38. }
  39. ],
  40. lineList: [{
  41. from: 'nodeA',
  42. to: 'nodeB',
  43. label: '直线,自定义线样式,固定锚点',
  44. connector: 'Straight',
  45. anchors: ['Top', 'Bottom'],
  46. paintStyle: {strokeWidth: 2, stroke: '#1879FF'}
  47. }, {
  48. from: 'nodeA',
  49. to: 'nodeC',
  50. label: '贝塞尔曲线,固定锚点',
  51. connector: 'Bezier',
  52. anchors: ['Bottom', 'Left']
  53. }, {
  54. from: 'nodeB',
  55. to: 'nodeD',
  56. label: '默认连线样式,动态锚点'
  57. }, {
  58. from: 'nodeC',
  59. to: 'nodeD',
  60. label: '默认连线样式,动态锚点'
  61. }, {
  62. from: 'nodeC',
  63. to: 'nodeC',
  64. label: '自连接'
  65. }
  66. ]
  67. }
  68. export function getDataD() {
  69. return dataD
  70. }