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

export const option = {
  title: '无人机',
  unit: '台',
  dataset: 1,
  titleSize: 14,
  unitSize: 10,
  dataSize: 24,
  colors: ['#FFFFFF','#58FF95','#58FF95'],
}

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