40 lines
1.1 KiB
TypeScript
40 lines
1.1 KiB
TypeScript
import { PublicConfigClass } from '@/packages/public'
|
|
import { CreateComponentType } from '@/packages/index.d'
|
|
import { DeviceStatusConfig } from './index'
|
|
import dataJson from './data.json'
|
|
export const option = {
|
|
secneID:"",
|
|
dataset: dataJson.source,
|
|
header: ['所属企业', '设备类型', '设备名称'],
|
|
headerTextColor: '#7F9DB4',
|
|
textColor: '#ffffff',
|
|
itemBackgroundColor: '#212936',
|
|
timeTextColor: '#B75055',
|
|
timeBgColor: '#562922',
|
|
headerHeight: 30,
|
|
itemHeight: 28,
|
|
fontSize: 11,
|
|
title: '设备实时在线概况',
|
|
titleSize: 16,
|
|
titleColor: '#eee',
|
|
iconColor: '#00E5FF',
|
|
onlineRate: 75,
|
|
onlineDevice: 23,
|
|
totalDevice: 100,
|
|
headerBgColor1: '#0059c9',
|
|
headerBgColor2: '#003a8c',
|
|
legendColors: ['#00E5FF', '#00FF7F', '#FFFFFF'],
|
|
progressColor: '#00E5FF',
|
|
progressBgColor: 'rgba(0, 0, 0, 0.1)',
|
|
progressTextColor: '#DDE3E9',
|
|
paddingX: 60,
|
|
paddingY: -1,
|
|
letterSpacing: 0.5
|
|
}
|
|
|
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
|
public key = DeviceStatusConfig.key
|
|
public chartConfig = DeviceStatusConfig
|
|
public option = option
|
|
}
|