go-view-fetch/src/packages/components/Charts/MyComponents/AlarmList/config.ts
2025-08-20 18:03:57 +08:00

31 lines
857 B
TypeScript

import { PublicConfigClass } from '@/packages/public'
import { CreateComponentType } from '@/packages/index.d'
import { AlarmListConfig } from './index'
import dataJson from './data.json'
export const option = {
dataset: dataJson.source,
header: ['报警事件', '时间', '所属企业', '状态'],
headerTextColor: '#B4B4B4',
textColor: '#ffffff',
headerBackgroundColor: '#17325F',
itemBackgroundColor: 'transparent',
statusColors: {
'未解决': '#FF4D4F',
'已解决': '#B4B4B4'
},
headerHeight: 40,
itemHeight: 35,
fontSize: 14,
title: '近60分钟报警信息',
titleSize: 18,
titleColor: '#ffffff',
iconColor: '#00E5FF'
}
export default class Config extends PublicConfigClass implements CreateComponentType {
public key = AlarmListConfig.key
public chartConfig = AlarmListConfig
public option = option
}