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

export const option = {
  text: '风险指数',
  value: '73%',
  colors: ['#CBE7CD','#FFCE00'],
  textSize1: 14,
  textSize2: 28
}

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