data.js
1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* @Date: 2023-10-27 09:29:48
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-11-15 16:16:04
* @FilePath: /vue-flow-editor/doc/data.js
* @Description: 初始化结构,数据都是固定的
*/
export const AppData = {
nodes: [
{
id: 'start-node',
x: 225,
y: 100,
text: '开始',
desc: '',
control: 'start',
},
{
id: '5353453523',
x: 225,
y: 210,
text: '流程节点',
desc: '',
control: 'flow',
},
{
id: 'end-node',
x: 225,
y: 335,
text: '结束',
desc: '',
control: 'end',
},
],
edges: [
{
source: 'start-node',
sourceAnchor: 2,
target: '5353453523',
targetAnchor: 0,
},
{
source: '5353453523',
sourceAnchor: 2,
target: 'end-node',
targetAnchor: 0,
},
],
}