data.js
1.04 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
50
51
52
53
54
55
56
57
58
/*
* @Date: 2025-03-11 15:09:49
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-03-19 17:26:16
* @FilePath: /logic-flow2/src/views/node-model/data.js
* @Description: 文件描述
*/
export default {
nodes: [
{
id: '1',
type: 'custom-rect',
x: 100,
y: 100,
text: 'default',
properties: {
width: 70,
height: 70,
},
},
{
id: '2',
type: 'custom-rect',
x: 300,
y: 100,
text: 'pass',
properties: {
status: 'pass', // 业务属性
width: 100, // 形状属性
height: 100,
radius: 20,
style: {
// 样式属性
strokeWidth: 5,
},
},
},
{
id: '3',
type: 'custom-rect',
x: 500,
y: 100,
text: 'reject',
properties: {
status: 'reject',
width: 130,
height: 130,
},
},
{
id: '4',
type: 'custom-polygon',
x: 100,
y: 300,
text: 'custom-polygon',
}
],
};