feat(web): 增加循环节点的基本参数
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user