iteration.ts 581 B

12345678910111213141516171819202122232425262728293031
  1. import { NodeConnectionTypes, type INodeType } from '../Interface'
  2. export type IterationData = {}
  3. export const iterationNode: INodeType = {
  4. version: ['1'],
  5. displayName: '迭代',
  6. name: 'iteration',
  7. description: '迭代节点',
  8. group: '业务逻辑',
  9. icon: 'lucide:repeat-2',
  10. iconColor: '#9373ee',
  11. inputs: [NodeConnectionTypes.main],
  12. outputs: [NodeConnectionTypes.main],
  13. // 业务数据
  14. schema: {
  15. appAgentId: '',
  16. parentId: '',
  17. position: {
  18. x: 20,
  19. y: 30
  20. },
  21. width: 96,
  22. height: 96,
  23. selected: false,
  24. nodeType: 'iteration',
  25. zIndex: 1,
  26. data: {}
  27. }
  28. }