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

export const option = {
  boxId: 'EquipmentTitlesbg07',
  colors: ['#457453','#0D6336','#11D16D'],
  textColor: '#4FE985',
  textSize: 28,
  textValue: '57',
  textBlod: 500
}

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