import {Handle, type NodeProps, Position} from '@xyflow/react' import {Tag} from 'antd' import React from 'react' import AmisNode from './AmisNode.tsx' const cases = [ { index: 1, }, { index: 2, }, { index: 3, }, ] const SwitchNode = (props: NodeProps) => AmisNode({ nodeProps: props, type: 'normal', defaultNodeName: '分支节点', defaultNodeDescription: '根据不同的情况前往不同的分支', columnSchema: () => [], // @ts-ignore extraNodeDescription: nodeData => { return (