feat(web): 调整节点入参形式
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user