From fffcd10d1866f72015ebaa5e064c92ff1cc45275 Mon Sep 17 00:00:00 2001 From: ZLY Date: Tue, 21 Oct 2025 10:05:43 +0800 Subject: [PATCH] =?UTF-8?q?feat(flow):=20=E6=B7=BB=E5=8A=A0=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E8=8A=82=E7=82=B9=E7=B1=BB=E5=9E=8B=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/FlowEditor/node/index.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/FlowEditor/node/index.tsx b/src/components/FlowEditor/node/index.tsx index df79e70..0574886 100644 --- a/src/components/FlowEditor/node/index.tsx +++ b/src/components/FlowEditor/node/index.tsx @@ -3,26 +3,30 @@ import { NodeTypes } from '@xyflow/react'; import StartNode from './startNode/StartNode'; import EndNode from './endNode/EndNode'; import BasicNode from './basicNode/BasicNode'; +import AppNode from './appNode/AppNode'; // 定义所有可用的节点类型 export const nodeTypes: NodeTypes = { start: StartNode, end: EndNode, - BASIC: BasicNode + BASIC: BasicNode, + APP: AppNode }; // 节点类型映射,用于创建节点时的类型查找 export const nodeTypeMap: Record = { 'start': 'start', 'end': 'end', - 'basic': 'BASIC' + 'basic': 'BASIC', + 'app': 'APP' }; // 节点显示名称映射 export const nodeTypeNameMap: Record = { 'start': '开始节点', 'end': '结束节点', - 'basic': '基础节点' + 'basic': '基础节点', + 'app': '应用节点' }; // 注册新节点类型的函数