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

export const option = {
  labelText: '全部打卡总数',
  labelSize: 16,
  labelColor: '#F8FCFF',
  valSize: 28,
  valFlod: 500,
  valColors: ['#EC5B13','#FFFFFF'],
  dataset: 3473
}

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