multi-inputs.ts 729 B

123456789101112131415161718192021222324252627282930313233343536
  1. import { FlowNodeBaseType, FlowNodeSplitType, type FlowNodeRegistry } from '@flowgram.ai/document';
  2. /**
  3. * 多输入节点, 只能作为 开始节点
  4. * - multiInputs:
  5. * - inlineBlocks
  6. * - input
  7. * - input
  8. */
  9. export const MultiInputsRegistry: FlowNodeRegistry = {
  10. type: FlowNodeBaseType.MULTI_INPUTS,
  11. extend: FlowNodeSplitType.SIMPLE_SPLIT,
  12. extendChildRegistries: [
  13. {
  14. type: FlowNodeBaseType.BLOCK_ICON,
  15. meta: {
  16. hidden: true,
  17. },
  18. getLines() {
  19. return [];
  20. },
  21. getLabels() {
  22. return [];
  23. },
  24. },
  25. {
  26. type: FlowNodeBaseType.INLINE_BLOCKS,
  27. getLabels() {
  28. return [];
  29. },
  30. },
  31. ],
  32. getLabels() {
  33. return [];
  34. },
  35. };