From 0d32bec07497947aa597593d3e0c9801e70bdf04 Mon Sep 17 00:00:00 2001 From: jiangchu Date: Wed, 20 Sep 2023 16:42:50 +0800 Subject: [PATCH] =?UTF-8?q?:memo:=20feat:=20=E7=AE=80=E5=8C=96=E5=9C=86?= =?UTF-8?q?=E8=A7=92=E7=BA=BF=E6=AE=B5=E7=BB=84=E4=BB=B6=E7=9A=84demo?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/RadiusEdge/demos/index.tsx | 84 +--------------------------------- 1 file changed, 2 insertions(+), 82 deletions(-) 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(() => {