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

31 lines
949 B
TypeScript
Raw Normal View History

2025-08-20 12:09:24 +08:00
import { PublicConfigClass } from '@/packages/public'
import { CreateComponentType } from '@/packages/index.d'
import { TopAlarmsConfig } from './index'
import dataJson from './data.json'
2025-08-21 16:06:26 +08:00
import { chartInitConfig } from '@/settings/designSetting'
2025-08-20 12:09:24 +08:00
export const option = {
dataset: dataJson.source,
title: '未处置报警数TOP5',
titleColor: '#ffffff',
2025-08-21 16:06:26 +08:00
titleSize: 17,
rankColor: '#5AA1AD',
nameColor: '#eeeeee',
valueColor: '#eeeeee',
barColorStart: '#2f72b5',
barColorEnd: '#99C6E6',
2025-08-20 12:09:24 +08:00
dropdownOptions: ['当日', '当月', '当年'],
2025-08-20 18:36:43 +08:00
dropdownDefault: '当日',
2025-08-21 16:06:26 +08:00
iconColor: '#00E5FF',
letterSpacing:2,
paddingX: 40,
paddingY: -5,
isShowButton: false
2025-08-20 12:09:24 +08:00
}
export default class Config extends PublicConfigClass implements CreateComponentType {
public key = TopAlarmsConfig.key
public chartConfig = TopAlarmsConfig
public option = option
2025-08-21 16:06:26 +08:00
public attr = { ...chartInitConfig, x: 0, y: 0, w: 450, h: 300, zIndex: 1 }
2025-08-20 12:09:24 +08:00
}