go-view-fetch/src/packages/components/Charts/MyComponents/AlarmList/config.ts

57 lines
1.4 KiB
TypeScript
Raw Normal View History

2025-08-20 12:09:24 +08:00
import { PublicConfigClass } from '@/packages/public'
import { CreateComponentType } from '@/packages/index.d'
import { AlarmListConfig } from './index'
import dataJson from './data.json'
import { chartInitConfig } from '@/settings/designSetting'
export enum FontWeightEnum {
NORMAL = '常规',
BOLD = '加粗',
}
export enum FontStyleEnum {
NORMAL = '常规',
ITALIC = '斜体',
}
2025-08-20 12:09:24 +08:00
export const FontWeightObject = {
[FontWeightEnum.NORMAL]: 'normal',
[FontWeightEnum.BOLD]: 'bold',
}
export const FontStyleObject = {
[FontStyleEnum.NORMAL]: 'normal',
[FontStyleEnum.ITALIC]: 'italic',
}
2025-08-20 12:09:24 +08:00
export const option = {
dataset: dataJson.source,
header: ['报警事件', '时间', '所属企业', '状态'],
2025-08-20 18:03:57 +08:00
headerTextColor: '#B4B4B4',
2025-08-20 12:09:24 +08:00
textColor: '#ffffff',
2025-08-20 18:03:57 +08:00
headerBackgroundColor: '#17325F',
itemBackgroundColor: '#242834',
2025-08-20 12:09:24 +08:00
statusColors: {
'未解决': '#FF4D4F',
2025-08-20 18:08:43 +08:00
'已解决': '#ffffff'
2025-08-20 12:09:24 +08:00
},
headerHeight: 30,
itemHeight: 30,
fontSize: 17,
2025-08-20 12:09:24 +08:00
title: '近60分钟报警信息',
titleSize: 18,
titleColor: '#ffffff',
iconColor: '#00E5FF',
fontWeight: 'normal',
fontStyle: 'normal',
paddingX: 40,
paddingY: -16,
letterSpacing: 2
2025-08-20 12:09:24 +08:00
}
export default class Config extends PublicConfigClass implements CreateComponentType {
public key = AlarmListConfig.key
public chartConfig = AlarmListConfig
public option = option
public attr = { ...chartInitConfig, x: 0, y: 0, w: 450, h: 300, zIndex: 1 }
2025-08-20 12:09:24 +08:00
}