const.ts
1.68 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
export enum FrontComponentCategory {
TEXT = 'text',
PICTURE = 'picture',
INSTRUMENT = 'instrument',
CONTROL = 'control',
MAP = 'map',
}
export const FrontComponentCategoryName = {
[FrontComponentCategory.TEXT]: '文本组件',
[FrontComponentCategory.INSTRUMENT]: '仪表组件',
[FrontComponentCategory.CONTROL]: '控制组件',
[FrontComponentCategory.PICTURE]: '图片组件',
[FrontComponentCategory.MAP]: '地图组件',
};
export enum FrontComponent {
TEXT_COMPONENT_1 = 'text-component-1',
TEXT_COMPONENT_2 = 'text-component-2',
TEXT_COMPONENT_3 = 'text-component-3',
TEXT_COMPONENT_4 = 'text-component-4',
TEXT_COMPONENT_5 = 'text-component-5',
INSTRUMENT_COMPONENT_1 = 'instrument-component-1',
INSTRUMENT_COMPONENT_2 = 'instrument-component-2',
DIGITAL_DASHBOARD_COMPONENT = 'digital-dashboard-component',
PICTURE_COMPONENT_1 = 'picture-component-1',
CONTROL_COMPONENT_TOGGLE_SWITCH = 'control-component-toggle-switch',
CONTROL_COMPONENT_SWITCH_WITH_ICON = 'control-component-switch-with-icon',
CONTROL_COMPONENT_SLIDING_SWITCH = 'control-component-sliding-switch',
MAP_COMPONENT_TRACK = 'map-component-track',
}
export enum Gradient {
FIRST = 'first',
SECOND = 'second',
THIRD = 'third',
}
export enum GradientColor {
FIRST = '#67e0e3',
SECOND = '#37a2da',
THIRD = '#fd666d',
}
export enum visualOptionField {
FONT_COLOR = 'fontColor',
UNIT = 'unit',
ICON_COLOR = 'iconColor',
ICON = 'icon',
FIRST_PHASE_COLOR = 'firstPhaseColor',
SECOND_PHASE_COLOR = 'secondPhaseColor',
THIRD_PHASE_COLOR = 'thirdPhaseColor',
FIRST_PHASE_VALUE = 'firstPhaseValue',
SECOND_PHASE_VALUE = 'secondPhaseValue',
THIRD_PHASE_VALUE = 'thirdPhaseValue',
}