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: '#ffffff', textColor: '#ffffff', headerBackgroundColor: '#1A385A', itemBackgroundColor: '#0F233E', statusColors: { '未解决': '#FF4D4F', '已解决': '#52C41A' }, 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 }