const.ts 1.14 KB
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',
}