From f9a8b66e8ceaad09cb1f698026aeeda448efec55 Mon Sep 17 00:00:00 2001 From: ZLY Date: Mon, 1 Sep 2025 16:15:13 +0800 Subject: [PATCH] =?UTF-8?q?refactor(flowEditor):=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E8=8A=82=E7=82=B9=E7=BC=96=E8=BE=91=E5=99=A8=E7=9A=84=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E7=BB=93=E6=9E=84=20-=20=E5=B0=86=20nodeEditors=20?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=A4=B9=E4=BB=8E=20components=20=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E7=A7=BB=E5=8A=A8=E5=88=B0=20flowEditor=20=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E4=B8=8B=20-=20=E6=9B=B4=E6=96=B0=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=AD=E7=9A=84=E5=AF=BC=E5=85=A5=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=20-=20=E6=AD=A4=E6=9B=B4=E6=94=B9=E6=97=A8=E5=9C=A8?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A1=B9=E7=9B=AE=E7=BB=93=E6=9E=84=EF=BC=8C?= =?UTF-8?q?=E4=BD=BF=E8=8A=82=E7=82=B9=E7=BC=96=E8=BE=91=E5=99=A8=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E6=9B=B4=E6=98=93=E4=BA=8E=E7=AE=A1=E7=90=86=E5=92=8C?= =?UTF-8?q?=E8=AE=BF=E9=97=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/flowEditor/components/nodeEditModal.tsx | 2 +- .../flowEditor/{components => }/nodeEditors/BasicNodeEditor.tsx | 0 .../flowEditor/{components => }/nodeEditors/EndNodeEditor.tsx | 2 +- .../flowEditor/{components => }/nodeEditors/LocalNodeEditor.tsx | 0 .../flowEditor/{components => }/nodeEditors/StartNodeEditor.tsx | 2 +- .../nodeEditors => nodeEditors/components}/ParamsTable.tsx | 0 src/pages/flowEditor/{components => }/nodeEditors/index.tsx | 0 7 files changed, 3 insertions(+), 3 deletions(-) rename src/pages/flowEditor/{components => }/nodeEditors/BasicNodeEditor.tsx (100%) rename src/pages/flowEditor/{components => }/nodeEditors/EndNodeEditor.tsx (94%) rename src/pages/flowEditor/{components => }/nodeEditors/LocalNodeEditor.tsx (100%) rename src/pages/flowEditor/{components => }/nodeEditors/StartNodeEditor.tsx (91%) rename src/pages/flowEditor/{components/nodeEditors => nodeEditors/components}/ParamsTable.tsx (100%) rename src/pages/flowEditor/{components => }/nodeEditors/index.tsx (100%) diff --git a/src/pages/flowEditor/components/nodeEditModal.tsx b/src/pages/flowEditor/components/nodeEditModal.tsx index 4e42e73..d381412 100644 --- a/src/pages/flowEditor/components/nodeEditModal.tsx +++ b/src/pages/flowEditor/components/nodeEditModal.tsx @@ -1,7 +1,7 @@ import React, { useState, useEffect } from 'react'; import { Node } from '@xyflow/react'; import { Modal } from '@arco-design/web-react'; -import { getNodeEditorByType } from './nodeEditors'; +import { getNodeEditorByType } from '../nodeEditors'; interface NodeData { type?: string; diff --git a/src/pages/flowEditor/components/nodeEditors/BasicNodeEditor.tsx b/src/pages/flowEditor/nodeEditors/BasicNodeEditor.tsx similarity index 100% rename from src/pages/flowEditor/components/nodeEditors/BasicNodeEditor.tsx rename to src/pages/flowEditor/nodeEditors/BasicNodeEditor.tsx diff --git a/src/pages/flowEditor/components/nodeEditors/EndNodeEditor.tsx b/src/pages/flowEditor/nodeEditors/EndNodeEditor.tsx similarity index 94% rename from src/pages/flowEditor/components/nodeEditors/EndNodeEditor.tsx rename to src/pages/flowEditor/nodeEditors/EndNodeEditor.tsx index dc0e374..a9e49ac 100644 --- a/src/pages/flowEditor/components/nodeEditors/EndNodeEditor.tsx +++ b/src/pages/flowEditor/nodeEditors/EndNodeEditor.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { NodeEditorProps } from './index'; import { Typography } from '@arco-design/web-react'; import { IconUnorderedList } from '@arco-design/web-react/icon'; -import ParamsTable from './ParamsTable'; +import ParamsTable from './components/ParamsTable'; const EndNodeEditor: React.FC = ({ node, diff --git a/src/pages/flowEditor/components/nodeEditors/LocalNodeEditor.tsx b/src/pages/flowEditor/nodeEditors/LocalNodeEditor.tsx similarity index 100% rename from src/pages/flowEditor/components/nodeEditors/LocalNodeEditor.tsx rename to src/pages/flowEditor/nodeEditors/LocalNodeEditor.tsx diff --git a/src/pages/flowEditor/components/nodeEditors/StartNodeEditor.tsx b/src/pages/flowEditor/nodeEditors/StartNodeEditor.tsx similarity index 91% rename from src/pages/flowEditor/components/nodeEditors/StartNodeEditor.tsx rename to src/pages/flowEditor/nodeEditors/StartNodeEditor.tsx index ffb8b9f..7603198 100644 --- a/src/pages/flowEditor/components/nodeEditors/StartNodeEditor.tsx +++ b/src/pages/flowEditor/nodeEditors/StartNodeEditor.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { NodeEditorProps } from './index'; import { Typography } from '@arco-design/web-react'; import { IconUnorderedList } from '@arco-design/web-react/icon'; -import ParamsTable from './ParamsTable'; +import ParamsTable from './components/ParamsTable'; const StartNodeEditor: React.FC = ({ diff --git a/src/pages/flowEditor/components/nodeEditors/ParamsTable.tsx b/src/pages/flowEditor/nodeEditors/components/ParamsTable.tsx similarity index 100% rename from src/pages/flowEditor/components/nodeEditors/ParamsTable.tsx rename to src/pages/flowEditor/nodeEditors/components/ParamsTable.tsx diff --git a/src/pages/flowEditor/components/nodeEditors/index.tsx b/src/pages/flowEditor/nodeEditors/index.tsx similarity index 100% rename from src/pages/flowEditor/components/nodeEditors/index.tsx rename to src/pages/flowEditor/nodeEditors/index.tsx