This commit is contained in:
Typer_Body
2026-05-20 02:49:44 +08:00
parent 313d553271
commit 5c5614667a
9 changed files with 1016 additions and 500 deletions
@@ -447,7 +447,7 @@ function WorkflowEditorInner() {
panOnDrag={[1, 2]} // Middle click and right click to pan
selectNodesOnDrag={false}
defaultEdgeOptions={{
type: 'bezier',
type: 'default',
animated: true,
markerEnd: {
type: MarkerType.ArrowClosed,
@@ -257,7 +257,7 @@ export const useWorkflowStore = create<WorkflowState>((set, get) => ({
const newEdge: WorkflowEdge = {
...connection,
id: generateEdgeId(),
type: 'bezier',
type: 'default',
} as WorkflowEdge;
set((state) => ({
@@ -464,7 +464,7 @@ export const useWorkflowStore = create<WorkflowState>((set, get) => ({
target: edge.target,
sourceHandle: edge.source_port,
targetHandle: edge.target_port,
type: 'bezier',
type: 'default',
data: {
label: edge.label,
condition: edge.condition,