diff --git a/src/pages/flowEditor/components/nodeContentApp.tsx b/src/pages/flowEditor/components/nodeContentApp.tsx index d43d04b..cc355a8 100644 --- a/src/pages/flowEditor/components/nodeContentApp.tsx +++ b/src/pages/flowEditor/components/nodeContentApp.tsx @@ -2,7 +2,6 @@ import React, { useMemo } from 'react'; import styles from '@/components/FlowEditor/node/style/baseOther.module.less'; import { Handle, Position, useStore } from '@xyflow/react'; import { deserializeValue, isJSON } from '@/utils/common'; -import cronstrue from 'cronstrue/i18n'; interface NodeContentData { parameters?: { @@ -224,25 +223,25 @@ const NodeContent = ({ data }: { data: NodeContentData }) => {
- {apiIns.length > 0 && ( -
- {apiIns.map((input, index) => { - // 查找关联的事件分组 - const group = findApiGroupByTopic(input, eventGroups); - return ( -
- {isValidApi(input) ? input.name : ''} -
- ); - })} -
- )} + {/*{apiIns.length > 0 && (*/} +
+ {apiIns.map((input, index) => { + // 查找关联的事件分组 + const group = findApiGroupByTopic(input, eventGroups); + return ( +
+ {isValidApi(input) ? input.name : ''} +
+ ); + })} +
+ {/*)}*/} {apiOuts.length > 0 && (
@@ -273,25 +272,25 @@ const NodeContent = ({ data }: { data: NodeContentData }) => { {/*content栏-data部分*/}
- {dataIns.length > 0 && ( -
- {dataIns.map((input, index) => { - // 查找关联的事件分组 - const group = findRelatedEventGroup(input, eventGroups, 'eventSends'); - return ( -
- {isValidData(input) ? `${input.name || input.id} ${input?.dataType}` : ''} -
- ); - })} -
- )} + {/*{dataIns.length > 0 && (*/} +
+ {dataIns.map((input, index) => { + // 查找关联的事件分组 + const group = findRelatedEventGroup(input, eventGroups, 'eventSends'); + return ( +
+ {isValidData(input) ? `${input.name || input.id} ${input?.dataType}` : ''} +
+ ); + })} +
+ {/*)}*/} {dataOuts.length > 0 && (