feat: Iteration node support parallel mode (#9493)

This commit is contained in:
Novice 2024-11-05 10:32:49 +08:00 • committed by GitHub
commit d1505b15c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 1283 additions and 192 deletions

View file

@ -644,6 +644,11 @@ export const useNodesInteractions = () => {
newNode.data.isInIteration = true
newNode.data.iteration_id = prevNode.parentId
newNode.zIndex = ITERATION_CHILDREN_Z_INDEX
if (newNode.data.type === BlockEnum.Answer || newNode.data.type === BlockEnum.Tool || newNode.data.type === BlockEnum.Assigner) {
const parentIterNodeIndex = nodes.findIndex(node => node.id === prevNode.parentId)
const iterNodeData: IterationNodeType = nodes[parentIterNodeIndex].data
iterNodeData._isShowTips = true
}
}
const newEdge: Edge = {