Skip to content

Commit

Permalink
📝 feat: 简化圆角线段组件的demo示例
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangchu authored and ModestFun committed Sep 20, 2023
1 parent b683770 commit 0d32bec
Showing 1 changed file with 2 additions and 82 deletions.
84 changes: 2 additions & 82 deletions src/RadiusEdge/demos/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand All @@ -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(() => {
Expand Down

0 comments on commit 0d32bec

Please sign in to comment.