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

export const option = {
  labelText: '在线人数',
  labelSize: 14,
  labelColor: '#CFDAE6',
  valSize: 24,
  valFlod: 500,
  valColor: '#FFFFFF',
  unitText: '人',
  unitSize: 8,
  unitColor: '#CFDAE6',
  dataset: 15
}

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