Skip to content

Commit

Permalink
✨ feat: demo
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangchu committed Mar 31, 2024
1 parent 59d52d2 commit c42c9a2
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions docs/caseShow/demos/pipeline/taskPipeline/data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: <TaskContent />,
},
{
id: 'b23',
title: '提交申请123',
status: 'success',
isOpen: false,
children: <TaskContent />,
},
],
},
zIndex: -1,
},
{
id: 'C',
type: 'StageNode',
Expand Down Expand Up @@ -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',
Expand All @@ -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',
Expand Down

0 comments on commit c42c9a2

Please sign in to comment.