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

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

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