diff --git a/src/RadiusEdge/demos/index.tsx b/src/RadiusEdge/demos/index.tsx index 89b2577..332d6e0 100644 --- a/src/RadiusEdge/demos/index.tsx +++ b/src/RadiusEdge/demos/index.tsx @@ -27,83 +27,13 @@ const nodes: ProFlowNode[] = [ }, }, { - id: 'b1', + id: 'a3', data: { title: 'XXX_API', logo: 'https://mdn.alipayobjects.com/huamei_ntgeqc/afts/img/A*kgyiRKi04eUAAAAAAAAAAAAADvuvAQ/original', describe: 'XXX_XXX_XXX_API', }, }, - { - id: 'a3', - data: { - title: 'XXXX产品', - logo: 'https://mdn.alipayobjects.com/huamei_ntgeqc/afts/img/A*ezaYT4wYRBwAAAAAAAAAAAAADvuvAQ/original', - describe: '2031030213014', - }, - }, - { - id: 'a4', - group: true, - data: [ - { - id: 'a5', - data: { - title: 'XXX数据源', - describe: 'cksadjfnf', - logo: 'https://mdn.alipayobjects.com/huamei_ntgeqc/afts/img/A*jWDsQ5GTmHMAAAAAAAAAAAAADvuvAQ/original', - }, - }, - { - id: 'a6', - data: { - title: 'XXX_API', - logo: 'https://mdn.alipayobjects.com/huamei_ntgeqc/afts/img/A*kgyiRKi04eUAAAAAAAAAAAAADvuvAQ/original', - describe: 'XXX_XXX_XXX_API', - }, - }, - { - id: 'a7', - data: { - title: 'XXXX产品', - logo: 'https://mdn.alipayobjects.com/huamei_ntgeqc/afts/img/A*ezaYT4wYRBwAAAAAAAAAAAAADvuvAQ/original', - describe: '2031030213014', - }, - }, - { - id: 'a8', - data: { - title: 'XXX数据源', - describe: 'cksadjfnf', - logo: 'https://mdn.alipayobjects.com/huamei_ntgeqc/afts/img/A*jWDsQ5GTmHMAAAAAAAAAAAAADvuvAQ/original', - }, - }, - { - id: 'a9', - data: { - title: 'XXX_API', - logo: 'https://mdn.alipayobjects.com/huamei_ntgeqc/afts/img/A*kgyiRKi04eUAAAAAAAAAAAAADvuvAQ/original', - describe: 'XXX_XXX_XXX_API', - }, - }, - { - id: 'a10', - data: { - title: 'XXXX产品', - logo: 'https://mdn.alipayobjects.com/huamei_ntgeqc/afts/img/A*ezaYT4wYRBwAAAAAAAAAAAAADvuvAQ/original', - describe: '2031030213014', - }, - }, - { - id: 'a11', - data: { - title: 'XXXX产品', - logo: 'https://mdn.alipayobjects.com/huamei_ntgeqc/afts/img/A*ezaYT4wYRBwAAAAAAAAAAAAADvuvAQ/original', - describe: '2031030213014', - }, - }, - ], - }, ]; const edges = [ @@ -112,21 +42,11 @@ const edges = [ source: 'a1', target: 'a2', }, - { - id: 'a1-b1', - source: 'a1', - target: 'b1', - }, { id: 'a2-a3', - source: 'a2', + source: 'a1', target: 'a3', }, - { - id: 'a3-a4', - source: 'a3', - target: 'a4', - }, ]; const Demos = memo(() => {