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

export const option = {
  title: '直升机',
  unit: '架',
  dataset: 2,
  titleSize: 14,
  unitSize: 10,
  dataSize: 24,
  colors: ['#FFFFFF','#1180FF','#1180FF'],
}

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