event.stopPropagation()}
- >
-
- 插入节点
-
-
- {insertableNodeSpecs.map((spec) => (
-
- ))}
-
-
- )
-}
diff --git a/web/app/dashboard/ai-workflows/_components/workflow-port-add-context.tsx b/web/app/dashboard/ai-workflows/_components/workflow-port-add-context.tsx
index 96e9ec6..6024d8c 100644
--- a/web/app/dashboard/ai-workflows/_components/workflow-port-add-context.tsx
+++ b/web/app/dashboard/ai-workflows/_components/workflow-port-add-context.tsx
@@ -2,11 +2,13 @@
import { createContext, useContext } from "react"
-import type { WorkflowPortEntity } from "@flowgram.ai/free-layout-editor"
+import type { WorkflowLineEntity, WorkflowPortEntity } from "@flowgram.ai/free-layout-editor"
export type WorkflowPortAddRequest = {
- port: WorkflowPortEntity
- event: React.MouseEvent