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

export const option = {
  labelText: '护林员数量',
  labelSize: 16,
  labelColor: '#F8FCFF',
  valSize: 28,
  valFlod: 500,
  valColors: ['#0BA142','#FFFFFF'],
  dataset: 1245
}

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