feat(web): 调整节点入参形式

This commit is contained in:
v-zhangjc9
2025-06-26 14:38:09 +08:00
parent 873c1a1d20
commit a2aba82b6e
8 changed files with 54 additions and 196 deletions

View File

@@ -2,13 +2,12 @@ import type {NodeProps} from '@xyflow/react'
import {horizontalFormOptions} from '../../../../util/amis.tsx'
import AmisNode, {outputsFormColumns} from './AmisNode.tsx'
const CodeNode = (props: NodeProps) => AmisNode(
props,
'normal',
'代码执行',
'执行自定义的处理代码',
undefined,
[
const CodeNode = (props: NodeProps) => AmisNode({
nodeProps: props,
type: 'normal',
defaultNodeName: '代码执行',
defaultNodeDescription: '执行自定义的处理代码',
columnSchema: [
{
type: 'input-kvs',
name: 'inputs',
@@ -68,6 +67,6 @@ const CodeNode = (props: NodeProps) => AmisNode(
},
...outputsFormColumns(true, true, {result: {type: 'string'}}),
],
)
})
export default CodeNode