import { PublicConfigClass } from '@/packages/public'
import { chartInitConfig, requestSqlConfig } from '@/settings/designSetting'
import { CreateComponentType } from '@/packages/index.d'
import { EquipmentTitlesbg04Config } from './index'
import cloneDeep from 'lodash/cloneDeep'

export const option = {
  boxId: 'EquipmentTitlesbg04',
  colors: ['#457453','#0D6336','#FFCE00','#4FE985','#9BCCB8'],
  textColors: ['#4FE985','#CBE7CD'],
  textSize: 28,
  textSize1: 14,
  dataset: {label: '在线', value: '23'}
}

export default class Config extends PublicConfigClass implements CreateComponentType {
  public key = EquipmentTitlesbg04Config.key
  public attr = { ...chartInitConfig, w: 103, h: 94, zIndex: 1 }
  public chartConfig = cloneDeep(EquipmentTitlesbg04Config)
  public option = cloneDeep(option)
  public request = { ...requestSqlConfig, requestSQLContent: { sql: 'select * from ' }, }
  public filter = "return res.result;"
}
