feat(web): 增加节点输出编辑

This commit is contained in:
2025-06-24 10:15:08 +08:00
parent b58c34443f
commit ab56385c8a
4 changed files with 60 additions and 33 deletions

View File

@@ -1,6 +1,5 @@
import type {NodeProps} from '@xyflow/react'
import AmisNode from './AmisNode.tsx'
import {horizontalFormOptions} from '../../../../util/amis.tsx'
import AmisNode, {outputsFormColumns} from './AmisNode.tsx'
const EndNode = (props: NodeProps) => AmisNode(
props,
@@ -8,30 +7,7 @@ const EndNode = (props: NodeProps) => AmisNode(
'结束节点',
'定义输出变量',
undefined,
[
{
type: 'input-kvs',
name: 'outputVariables',
label: '输出变量',
addButtonText: '新增输出',
draggable: false,
keyItem: {
...horizontalFormOptions(),
label: '参数名称',
},
valueItems: [
{
...horizontalFormOptions(),
type: 'select',
name: 'type',
label: '参数',
required: true,
selectFirst: true,
options: [],
},
],
},
],
outputsFormColumns(true),
)
export default EndNode