...
|
...
|
@@ -27,6 +27,7 @@ import DigitalDashBoard from './InstrumentComponent/DigitalDashBoard.vue'; |
27
|
27
|
import ToggleSwitch from './ControlComponent/ToggleSwitch.vue';
|
28
|
28
|
import SlidingSwitch from './ControlComponent/SlidingSwitch.vue';
|
29
|
29
|
import SwitchWithIcon from './ControlComponent/SwitchWithIcon.vue';
|
|
30
|
+import MapComponent from './MapComponent/MapComponent.vue';
|
30
|
31
|
|
31
|
32
|
export enum FrontComponentCategory {
|
32
|
33
|
TEXT = 'text',
|
...
|
...
|
@@ -57,6 +58,7 @@ export enum FrontComponent { |
57
|
58
|
CONTROL_COMPONENT_TOGGLE_SWITCH = 'control-component-toggle-switch',
|
58
|
59
|
CONTROL_COMPONENT_SWITCH_WITH_ICON = 'control-component-switch-with-icon',
|
59
|
60
|
CONTROL_COMPONENT_SLIDING_SWITCH = 'control-component-sliding-switch',
|
|
61
|
+ MAP_COMPONENT_TRACK = 'map-component-track',
|
60
|
62
|
}
|
61
|
63
|
|
62
|
64
|
export interface ComponentConfig {
|
...
|
...
|
@@ -164,6 +166,13 @@ frontComponentMap.set(FrontComponent.CONTROL_COMPONENT_TOGGLE_SWITCH, { |
164
|
166
|
transformConfig: transformControlConfig,
|
165
|
167
|
});
|
166
|
168
|
|
|
169
|
+frontComponentMap.set(FrontComponent.MAP_COMPONENT_TRACK, {
|
|
170
|
+ Component: MapComponent,
|
|
171
|
+ ComponentKey: FrontComponent.MAP_COMPONENT_TRACK,
|
|
172
|
+ ComponentCategory: FrontComponentCategory.MAP,
|
|
173
|
+ transformConfig: () => {},
|
|
174
|
+});
|
|
175
|
+
|
167
|
176
|
frontComponentDefaultConfigMap.set(FrontComponent.TEXT_COMPONENT_1, TextComponentDefaultConfig);
|
168
|
177
|
frontComponentDefaultConfigMap.set(FrontComponent.TEXT_COMPONENT_3, TextComponentDefaultConfig);
|
169
|
178
|
frontComponentDefaultConfigMap.set(FrontComponent.TEXT_COMPONENT_4, TextComponentDefaultConfig);
|
...
|
...
|
|