- 设置默认边节点为自己定义节点
<ReactFlow
defaultEdgeOptions={{ type: 'buttonEdge' }}
>
<Background />
<Controls />
</ReactFlow>
react flow 实用记录
<ReactFlow
defaultEdgeOptions={{ type: 'buttonEdge' }}
>
<Background />
<Controls />
</ReactFlow>