55 lines
1.3 KiB
TypeScript
55 lines
1.3 KiB
TypeScript
|
import { PublicConfigClass } from '@/packages/public'
|
||
|
import { CreateComponentType } from '@/packages/index.d'
|
||
|
import { TopAlarmsConfig } from './index'
|
||
|
import dataJson from './data.json'
|
||
|
export const option = {
|
||
|
dateTime: {
|
||
|
selectValue: 'day',
|
||
|
dataset: [
|
||
|
{
|
||
|
label: '当天',
|
||
|
value: 'day'
|
||
|
},
|
||
|
{
|
||
|
label: '本周',
|
||
|
value: 'week'
|
||
|
},
|
||
|
{
|
||
|
label: '当月',
|
||
|
value: 'month'
|
||
|
},
|
||
|
{
|
||
|
label: '本季度',
|
||
|
value: 'quarter'
|
||
|
},
|
||
|
{
|
||
|
label: '当年',
|
||
|
value: 'year'
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
|
||
|
dataset: dataJson.source,
|
||
|
title: '未处置报警数TOP5',
|
||
|
titleColor: '#ffffff',
|
||
|
titleSize: 17,
|
||
|
rankColor: '#5AA1AD',
|
||
|
nameColor: '#eeeeee',
|
||
|
valueColor: '#eeeeee',
|
||
|
barColorStart: '#2f72b5',
|
||
|
barColorEnd: '#99C6E6',
|
||
|
dropdownOptions: ['当日', '当月', '当年'],
|
||
|
dropdownDefault: '当日',
|
||
|
iconColor: '#00E5FF',
|
||
|
letterSpacing: 1,
|
||
|
paddingX: 40,
|
||
|
paddingY: -5,
|
||
|
isShowButton: false
|
||
|
}
|
||
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||
|
public key = TopAlarmsConfig.key
|
||
|
public chartConfig = TopAlarmsConfig
|
||
|
public option = option
|
||
|
|
||
|
}
|