1
0
go-view-fetch/src/packages/components/Charts/MyComponents/DeviceStatus/config.ts

36 lines
1.0 KiB
TypeScript
Raw Normal View History

2025-08-20 12:44:02 +08:00
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,
2025-08-20 16:58:08 +08:00
header: ['所属企业', '设备类型', '设备名称'],
headerTextColor: '#ffffff',
textColor: '#ffffff',
2025-08-20 18:46:54 +08:00
headerBackgroundColor: 'rgba(26, 56, 90, 0.5)',
itemBackgroundColor: 'rgba(15, 35, 62, 0.5)',
2025-08-20 16:58:08 +08:00
timeColor: '#FF4D4F',
headerHeight: 40,
itemHeight: 35,
fontSize: 14,
title: '设备实时在线概况',
2025-08-20 18:46:54 +08:00
titleSize: 20,
2025-08-20 12:44:02 +08:00
titleColor: '#ffffff',
2025-08-20 16:58:08 +08:00
iconColor: '#00E5FF',
onlineRate: 75,
onlineDevice: 23,
2025-08-20 18:46:54 +08:00
totalDevice: 100,
headerBgColor1: '#0059c9',
headerBgColor2: '#003a8c',
legendColors: ['#00E5FF', '#00FF7F', '#FFFFFF'],
progressColor: '#00E5FF',
progressBgColor: '#1A385A'
2025-08-20 12:44:02 +08:00
}
export default class Config extends PublicConfigClass implements CreateComponentType {
public key = DeviceStatusConfig.key
public chartConfig = DeviceStatusConfig
public option = option
2025-08-20 18:46:54 +08:00
}