import { PublicConfigClass } from '@/packages/public' import { CreateComponentType } from '@/packages/index.d' import { DeviceStatusConfig } from './index' import dataJson from './data.json' export const option = { dataset: dataJson.source, header: ['所属企业', '设备类型', '设备名称'], headerTextColor: '#ffffff', textColor: '#ffffff', headerBackgroundColor: '#1A385A', itemBackgroundColor: '#0F233E', timeColor: '#FF4D4F', headerHeight: 40, itemHeight: 35, fontSize: 14, title: '设备实时在线概况', titleSize: 18, titleColor: '#ffffff', iconColor: '#00E5FF', onlineRate: 75, onlineDevice: 23, totalDevice: 100 } export default class Config extends PublicConfigClass implements CreateComponentType { public key = DeviceStatusConfig.key public chartConfig = DeviceStatusConfig public option = option }