- {dataIns.map((input, index) => (
-
- {input.id || `输入${index + 1}`}
+ {/*content栏-data部分*/}
+
+
+ {dataIns.length > 0 && !isStartNode && (
+
+ {dataIns.map((input, index) => (
+
+ {input.id || `输入${index + 1}`}
+
+ ))}
- ))}
-
- )}
+ )}
- {dataOuts.length > 0 && !isEndNode && (
-
- {dataOuts.map((output, index) => (
-
- {output.id || `输出${index + 1}`}
+ {dataOuts.length > 0 && !isEndNode && (
+
+ {dataOuts.map((output, index) => (
+
+ {output.id || `输出${index + 1}`}
+
+ ))}
- ))}
+ )}
- )}
-
-
+
+ >
+ )}
{/*footer栏*/}
{showFooter && (
diff --git a/src/pages/flowEditor/node/basicNode/BasicNode.tsx b/src/pages/flowEditor/node/basicNode/BasicNode.tsx
index 8976c54..050aced 100644
--- a/src/pages/flowEditor/node/basicNode/BasicNode.tsx
+++ b/src/pages/flowEditor/node/basicNode/BasicNode.tsx
@@ -1,6 +1,6 @@
import React from 'react';
-import styles from '@/pages/flowEditor/node/style/base.module.less';
-// import styles from '@/pages/flowEditor/node/style/baseOther.module.less';
+// import styles from '@/pages/flowEditor/node/style/base.module.less';
+import styles from '@/pages/flowEditor/node/style/baseOther.module.less';
import NodeContent from '@/pages/flowEditor/components/nodeContent';
import NodeContentOther from '@/pages/flowEditor/components/nodeContentOther';
import { useStore } from '@xyflow/react';
@@ -21,8 +21,8 @@ const BasicNode = ({ data, id }: { data: defaultNodeTypes; id: string }) => {
{title}