Skip to content

Commit 30abd29

Browse files
authored
Merge pull request #1039 from didi/towersxu-patch-6
Update README.md
2 parents 6035ba3 + d1c5b45 commit 30abd29

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

README.md

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -61,34 +61,26 @@ const data = {
6161
// 节点
6262
nodes: [
6363
{
64-
id: 21,
64+
id: '21',
6565
type: 'rect',
6666
x: 100,
6767
y: 200,
68-
text: {
69-
value: '矩形节点',
70-
x: 100,
71-
y: 200,
72-
},
68+
text: '矩形节点',
7369
},
7470
{
75-
id: 50,
71+
id: '50',
7672
type: 'circle',
7773
x: 300,
7874
y: 400,
79-
text: {
80-
value: '圆形节点',
81-
x: 300,
82-
y: 400,
83-
},
75+
text: '圆形节点',
8476
},
8577
],
8678
//
8779
edges: [
8880
{
8981
type: 'polyline',
90-
sourceNodeId: 50,
91-
targetNodeId: 21,
82+
sourceNodeId: '50',
83+
targetNodeId: '21',
9284
},
9385
],
9486
};

0 commit comments

Comments
 (0)