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: 'rgba(26, 56, 90, 0.5)', itemBackgroundColor: 'rgba(15, 35, 62, 0.5)', timeTextColor: '#ffffff', timeBgColor: '#FF4D4F', headerHeight: 40, itemHeight: 35, fontSize: 14, title: '设备实时在线概况', titleSize: 20, titleColor: '#B4E4FF', iconColor: '#00E5FF', onlineRate: 75, onlineDevice: 23, totalDevice: 100, headerBgColor1: '#0059c9', headerBgColor2: '#003a8c', legendColors: ['#00E5FF', '#00FF7F', '#FFFFFF'], progressColor: '#00E5FF', progressBgColor: '#1A385A' } export default class Config extends PublicConfigClass implements CreateComponentType { public key = DeviceStatusConfig.key public chartConfig = DeviceStatusConfig public option = option }