From c42c9a2edfbfff42bcf325a911ff329a6755a72f Mon Sep 17 00:00:00 2001 From: jiangchu Date: Sun, 31 Mar 2024 23:08:48 +0800 Subject: [PATCH] :sparkles: feat: demo --- .../demos/pipeline/taskPipeline/data.tsx | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/docs/caseShow/demos/pipeline/taskPipeline/data.tsx b/docs/caseShow/demos/pipeline/taskPipeline/data.tsx index 5217cff..9101487 100644 --- a/docs/caseShow/demos/pipeline/taskPipeline/data.tsx +++ b/docs/caseShow/demos/pipeline/taskPipeline/data.tsx @@ -68,6 +68,37 @@ export const nodes = [ }, zIndex: -1, }, + { + id: 'B2', + type: 'StageNode', + position: { x: 400, y: 500 }, + data: { + title: '多任务并行', + children: [ + { + id: 'b21', + title: '提交申请', + status: 'success', + isOpen: false, + }, + { + id: 'b22', + title: '提交申请', + status: 'success', + isOpen: true, + children: , + }, + { + id: 'b23', + title: '提交申请123', + status: 'success', + isOpen: false, + children: , + }, + ], + }, + zIndex: -1, + }, { id: 'C', type: 'StageNode', @@ -133,6 +164,14 @@ export const edges = [ type: 'bezier', targetHandle: 'b3', }, + { + id: 'A-B3', + source: 'A', + target: 'B2', + sourceHandle: 'task1', + type: 'bezier', + targetHandle: 'b23', + }, { id: 'B-C', source: 'B', @@ -141,6 +180,14 @@ export const edges = [ type: 'bezier', targetHandle: 'c1', }, + { + id: 'B2-C', + source: 'B2', + target: 'C', + sourceHandle: 'b23', + type: 'bezier', + targetHandle: 'c1', + }, { id: 'B-C2', source: 'B',