...
|
...
|
@@ -3,10 +3,130 @@ export enum defaultOptions { |
3
|
3
|
fontColor = '#rer',
|
4
|
4
|
}
|
5
|
5
|
|
6
|
|
-export const mode: FormSchema[] = [
|
|
6
|
+export enum visualOptionField {
|
|
7
|
+ FONT_COLOR = 'fontColor',
|
|
8
|
+ UNIT = 'unit',
|
|
9
|
+ ICON_COLOR = 'iconColor',
|
|
10
|
+ ICON = 'icon',
|
|
11
|
+ FIRST_PHASE_COLOR = 'firstPhaseColor',
|
|
12
|
+ SECOND_PHASE_COLOR = 'secondPhaseColor',
|
|
13
|
+ THIRD_PHASE_COLOR = 'thirdPhaseColor',
|
|
14
|
+ FOURTH_PHASE_COLOR = 'fourthPhaseColor',
|
|
15
|
+ FIRST_PHASE_VALUE = 'firstPhaseValue',
|
|
16
|
+ SECOND_PHASE_VALUE = 'secondPhaseValue',
|
|
17
|
+ THIRD_PHASE_VALUE = 'thirdPhaseValue',
|
|
18
|
+ FOURTH_PHASE_VALUE = 'fourthPhaseValue',
|
|
19
|
+}
|
|
20
|
+
|
|
21
|
+export const modeOne: FormSchema[] = [
|
|
22
|
+ {
|
|
23
|
+ field: visualOptionField.FONT_COLOR,
|
|
24
|
+ label: '数值字体颜色',
|
|
25
|
+ component: 'ColorPicker',
|
|
26
|
+ changeEvent: 'update:value',
|
|
27
|
+ },
|
|
28
|
+];
|
|
29
|
+
|
|
30
|
+export const modeTwo: FormSchema[] = [
|
|
31
|
+ {
|
|
32
|
+ field: visualOptionField.UNIT,
|
|
33
|
+ label: '数值字体颜色',
|
|
34
|
+ component: 'ColorPicker',
|
|
35
|
+ changeEvent: 'update:value',
|
|
36
|
+ },
|
|
37
|
+ {
|
|
38
|
+ field: visualOptionField.UNIT,
|
|
39
|
+ label: '数值单位',
|
|
40
|
+ component: 'Input',
|
|
41
|
+ componentProps: {
|
|
42
|
+ placeholder: '请输入数值单位',
|
|
43
|
+ },
|
|
44
|
+ },
|
|
45
|
+ {
|
|
46
|
+ field: visualOptionField.ICON_COLOR,
|
|
47
|
+ label: '图标颜色',
|
|
48
|
+ component: 'ColorPicker',
|
|
49
|
+ changeEvent: 'update:value',
|
|
50
|
+ },
|
|
51
|
+ {
|
|
52
|
+ field: visualOptionField.ICON,
|
|
53
|
+ label: '图标',
|
|
54
|
+ component: 'Input',
|
|
55
|
+ },
|
|
56
|
+];
|
|
57
|
+
|
|
58
|
+export const modeThree: FormSchema[] = [
|
|
59
|
+ {
|
|
60
|
+ field: visualOptionField.FONT_COLOR,
|
|
61
|
+ label: '数值字体颜色',
|
|
62
|
+ component: 'ColorPicker',
|
|
63
|
+ changeEvent: 'update:value',
|
|
64
|
+ },
|
|
65
|
+ {
|
|
66
|
+ field: visualOptionField.UNIT,
|
|
67
|
+ label: '数值单位',
|
|
68
|
+ component: 'Input',
|
|
69
|
+ componentProps: {
|
|
70
|
+ placeholder: '请输入数值单位',
|
|
71
|
+ },
|
|
72
|
+ },
|
|
73
|
+ {
|
|
74
|
+ field: visualOptionField.FIRST_PHASE_COLOR,
|
|
75
|
+ label: '一阶段颜色',
|
|
76
|
+ component: 'ColorPicker',
|
|
77
|
+ changeEvent: 'update:value',
|
|
78
|
+ },
|
|
79
|
+ {
|
|
80
|
+ field: visualOptionField.FIRST_PHASE_VALUE,
|
|
81
|
+ label: '一阶段阀值',
|
|
82
|
+ component: 'Input',
|
|
83
|
+ componentProps: {
|
|
84
|
+ placeholder: '请输入一阶段阀值',
|
|
85
|
+ },
|
|
86
|
+ },
|
|
87
|
+ {
|
|
88
|
+ field: visualOptionField.SECOND_PHASE_COLOR,
|
|
89
|
+ label: '二阶段颜色',
|
|
90
|
+ component: 'ColorPicker',
|
|
91
|
+ changeEvent: 'update:value',
|
|
92
|
+ },
|
7
|
93
|
{
|
8
|
|
- field: 'fontColor',
|
|
94
|
+ field: visualOptionField.SECOND_PHASE_VALUE,
|
|
95
|
+ label: '二阶段阀值',
|
|
96
|
+ component: 'Input',
|
|
97
|
+ componentProps: {
|
|
98
|
+ placeholder: '请输入二阶段阀值',
|
|
99
|
+ },
|
|
100
|
+ },
|
|
101
|
+ {
|
|
102
|
+ field: visualOptionField.THIRD_PHASE_COLOR,
|
|
103
|
+ label: '三阶段颜色',
|
|
104
|
+ component: 'ColorPicker',
|
|
105
|
+ changeEvent: 'update:value',
|
|
106
|
+ },
|
|
107
|
+ {
|
|
108
|
+ field: visualOptionField.THIRD_PHASE_VALUE,
|
|
109
|
+ label: '三阶段阀值',
|
|
110
|
+ component: 'Input',
|
|
111
|
+ componentProps: {
|
|
112
|
+ placeholder: '请输入三阶段阀值',
|
|
113
|
+ },
|
|
114
|
+ },
|
|
115
|
+];
|
|
116
|
+
|
|
117
|
+export const modeFour: FormSchema[] = [
|
|
118
|
+ {
|
|
119
|
+ field: visualOptionField.FONT_COLOR,
|
9
|
120
|
label: '数值字体颜色',
|
10
|
121
|
component: 'ColorPicker',
|
|
122
|
+ changeEvent: 'update:value',
|
|
123
|
+ },
|
|
124
|
+ {
|
|
125
|
+ field: visualOptionField.UNIT,
|
|
126
|
+ label: '数值单位',
|
|
127
|
+ component: 'Input',
|
|
128
|
+ componentProps: {
|
|
129
|
+ placeholder: '请输入数值单位',
|
|
130
|
+ },
|
11
|
131
|
},
|
12
|
132
|
]; |
...
|
...
|
|