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