From 6c471271db70bba00e14bb258c87a5a0311ce077 Mon Sep 17 00:00:00 2001 From: ZLY Date: Thu, 30 Oct 2025 14:23:29 +0800 Subject: [PATCH] =?UTF-8?q?feat(flowEditor):=20=E6=98=BE=E7=A4=BA=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E6=95=B0=E6=8D=AE=E7=B1=BB=E5=9E=8B=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/flowEditor/components/nodeContentCode.tsx | 4 ++-- src/pages/flowEditor/components/nodeContentImage.tsx | 2 +- src/pages/flowEditor/components/nodeContentLoop.tsx | 4 ++-- src/pages/flowEditor/components/nodeContentOther.tsx | 7 +++---- src/pages/flowEditor/components/nodeContentREST.tsx | 4 ++-- src/pages/flowEditor/components/nodeContentSwitch.tsx | 4 ++-- 6 files changed, 12 insertions(+), 13 deletions(-) diff --git a/src/pages/flowEditor/components/nodeContentCode.tsx b/src/pages/flowEditor/components/nodeContentCode.tsx index b509400..2de608f 100644 --- a/src/pages/flowEditor/components/nodeContentCode.tsx +++ b/src/pages/flowEditor/components/nodeContentCode.tsx @@ -155,7 +155,7 @@ const NodeContent = ({ data }: { data: NodeContentData }) => {
{dataIns.map((input, index) => (
- {input.id || `输入${index + 1}`} + {input.id || `输入${index + 1}`} {input.dataType}
))}
@@ -165,7 +165,7 @@ const NodeContent = ({ data }: { data: NodeContentData }) => {
{dataOuts.map((output, index) => (
- {`${output.id} ${output.dataType}` || `输出${index + 1}`} + {output.dataType} {`${output.id}` || `输出${index + 1}`}
))}
diff --git a/src/pages/flowEditor/components/nodeContentImage.tsx b/src/pages/flowEditor/components/nodeContentImage.tsx index d600ff8..93f3c03 100644 --- a/src/pages/flowEditor/components/nodeContentImage.tsx +++ b/src/pages/flowEditor/components/nodeContentImage.tsx @@ -161,7 +161,7 @@ const NodeContent = ({ data }: { data: NodeContentData }) => {
{dataOuts.map((output, index) => (
- {output.id || `输出${index + 1}`} + {output.dataType} {output.id || `输出${index + 1}`}
))}
diff --git a/src/pages/flowEditor/components/nodeContentLoop.tsx b/src/pages/flowEditor/components/nodeContentLoop.tsx index 8bf4ded..5f33725 100644 --- a/src/pages/flowEditor/components/nodeContentLoop.tsx +++ b/src/pages/flowEditor/components/nodeContentLoop.tsx @@ -150,7 +150,7 @@ const NodeContent = ({ data }: { data: NodeContentData }) => {
{dataIns.map((input, index) => (
- {input.id || `输入${index + 1}`} + {input.id || `输入${index + 1}`} {input.dataType}
))}
@@ -160,7 +160,7 @@ const NodeContent = ({ data }: { data: NodeContentData }) => {
{dataOuts.map((output, index) => (
- {output.id || `输出${index + 1}`} + {output.dataType} {output.id || `输出${index + 1}`}
))}
diff --git a/src/pages/flowEditor/components/nodeContentOther.tsx b/src/pages/flowEditor/components/nodeContentOther.tsx index 456c1ff..fbaed69 100644 --- a/src/pages/flowEditor/components/nodeContentOther.tsx +++ b/src/pages/flowEditor/components/nodeContentOther.tsx @@ -215,7 +215,6 @@ const NodeContent = ({ data }: { data: NodeContentData }) => { const dataOuts = data.parameters?.dataOuts || []; const showFooter = formatFooter(data.component) || false; const footerData = (showFooter && data.component) || {}; - // console.log(apiIns, apiOuts, dataIns, dataOuts); // 判断节点类型 const isStartNode = data.type === 'start'; @@ -241,7 +240,7 @@ const NodeContent = ({ data }: { data: NodeContentData }) => {
{apiOuts.map((output, index) => (
- {output.desc} + {output.dataType} {output.desc}
))}
@@ -264,7 +263,7 @@ const NodeContent = ({ data }: { data: NodeContentData }) => {
{dataIns.map((input, index) => (
- {input.id || `输入${index + 1}`} + {input.id || `输入${index + 1}`} {input.dataType}
))}
@@ -274,7 +273,7 @@ const NodeContent = ({ data }: { data: NodeContentData }) => {
{dataOuts.map((output, index) => (
- {output.id || `输出${index + 1}`} + {output.dataType} {output.id || `输出${index + 1}`}
))}
diff --git a/src/pages/flowEditor/components/nodeContentREST.tsx b/src/pages/flowEditor/components/nodeContentREST.tsx index 22797ec..5fceddb 100644 --- a/src/pages/flowEditor/components/nodeContentREST.tsx +++ b/src/pages/flowEditor/components/nodeContentREST.tsx @@ -152,7 +152,7 @@ const NodeContent = ({ data }: { data: NodeContentData }) => {
{dataIns.map((input, index) => (
- {input.id || `输入${index + 1}`} + {input.id || `输入${index + 1}`} {input.dataType}
))}
@@ -162,7 +162,7 @@ const NodeContent = ({ data }: { data: NodeContentData }) => {
{dataOuts.map((output, index) => (
- {`${output.id} ${output.dataType}` || `输出${index + 1}`} + {output.dataType} {`${output.id}` || `输出${index + 1}`}
))}
diff --git a/src/pages/flowEditor/components/nodeContentSwitch.tsx b/src/pages/flowEditor/components/nodeContentSwitch.tsx index 4120a2c..590b6aa 100644 --- a/src/pages/flowEditor/components/nodeContentSwitch.tsx +++ b/src/pages/flowEditor/components/nodeContentSwitch.tsx @@ -148,7 +148,7 @@ const NodeContent = ({ data }: { data: NodeContentData }) => {
{dataIns.map((input, index) => (
- {input.id || `输入${index + 1}`} + {input.id || `输入${index + 1}`} {input.dataType}
))}
@@ -158,7 +158,7 @@ const NodeContent = ({ data }: { data: NodeContentData }) => {
{dataOuts.map((output, index) => (
- {output.id || `输出${index + 1}`} + {output.dataType} {output.id || `输出${index + 1}`}
))}