feat(web): 增加循环节点的基本参数

This commit is contained in:
v-zhangjc9
2025-07-15 11:11:36 +08:00
parent b0e4f5853e
commit df8270676a
2 changed files with 26 additions and 10 deletions

View File

@@ -23,6 +23,21 @@ const LoopNode = (props: NodeProps) => {
}, [props.id])
const columnsSchema = useCallback(() => [
{
type: 'switch',
name: 'failFast',
label: '快速失败',
description: '执行过程中一旦出现错误,及时中断循环任务的执行',
},
{
disabled: true,
type: 'switch',
name: 'parallel',
label: '并行执行',
},
{
type: 'divider',
},
...outputsFormColumns(false, true),
], [props.id])
@@ -48,7 +63,7 @@ const LoopNode = (props: NodeProps) => {
color={flowDotColor}
bgColor={flowBackgroundColor}
/>
<AddNodeButton className="mt-2 ml-2" parent={props.id}/>
<AddNodeButton className="mt-2 ml-2" parent={props.id} onlyIcon/>
</div>
}
columnSchema={columnsSchema}