feat(web): add list-operator node & support file type variables

This commit is contained in:
zhaoying
2026-04-03 18:52:06 +08:00
parent 1732fc7af5
commit b20a65ce29
27 changed files with 1347 additions and 350 deletions

View File

@@ -313,8 +313,7 @@ export const nodeLibrary: NodeLibrary[] = [
},
{ type: "cycle-start", icon: 'rb:bg-[url("@/assets/images/workflow/start.svg")]'},
{ type: "break", icon: 'rb:bg-[url("@/assets/images/workflow/break.svg")]'},
{
type: "var-aggregator", icon: 'rb:bg-[url("@/assets/images/workflow/aggregator.svg")]',
{ type: "var-aggregator", icon: 'rb:bg-[url("@/assets/images/workflow/aggregator.svg")]',
config: {
group: {
type: 'switch',
@@ -462,6 +461,42 @@ export const nodeLibrary: NodeLibrary[] = [
}
}
},
{ type: "list-operator", icon: 'rb:bg-[url("@/assets/images/workflow/list-operator.svg")]',
config: {
variable: {
type: 'variableList',
},
filter_by: {
type: 'define',
defaultValue: {
enabled: false,
conditions: [{}]
}
},
order_by: {
type: 'define',
defaultValue: {
"enabled": false,
"key": "",
"value": "asc"
}
},
limit: {
type: 'define',
defaultValue: {
"enabled": false,
"size": 1
}
},
extract_by: {
type: 'define',
defaultValue: {
"enabled": false,
"serial": ""
}
},
}
},
]
},
];