diff --git a/frontend/src/pages/Workflow/NodeDesign/Design.tsx b/frontend/src/pages/Workflow/NodeDesign/Design.tsx index b1d4e529..ed3f0701 100644 --- a/frontend/src/pages/Workflow/NodeDesign/Design.tsx +++ b/frontend/src/pages/Workflow/NodeDesign/Design.tsx @@ -50,10 +50,6 @@ const FormRenderer: React.FC<{ readOnly?: boolean; }> = ({ schema, path = '', readOnly = false }) => { if (!schema || !schema.properties) return null; - - console.log('Current path:', path); - console.log('Properties:', Object.keys(schema.properties)); - const renderPortConfig = (portSchema: any, portPath: string) => { if (!portSchema || !portSchema.properties) return null; @@ -297,62 +293,37 @@ const NodeDesignForm: React.FC = () => { }} >
- { + const node = nodeDefinitionsDefined.find(n => n.nodeCode === key); + if (node) { + handleNodeSelect(node); + } }} - styles={{ - body: { padding: 0 } - }} - > -
- 节点类型 -
- ({ - key: node.nodeCode, - label: ( -
-
- {node.nodeName} -
-
- {node.nodeCode} -
+ items={nodeDefinitionsDefined.map(node => ({ + key: node.nodeCode, + label: ( +
+
+ {node.nodeName}
- ) - }))} - onClick={({ key }) => { - const node = nodeDefinitionsDefined.find(n => n.nodeCode === key); - if (node) { - handleNodeSelect(node); - } - }} - style={{ border: 'none', padding: '8px 0' }} - /> - +
+ {node.nodeCode} +
+
+ ) + }))} + />
{
) : null }))} - style={{ - marginTop: '-16px', - marginLeft: '-16px', - marginRight: '-16px' - }} />