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

export const option = {
  textColors: ['#738073','#FFFFFF','#D0E6CF'],
  textSize: [16,14,13],
  backgroundColor: '#2D332B',
  dataset: [
    { label: '水泵取水' , value: '400 m³' },
    { label: '直升机调放' , value: '4331 m³' }
  ],
}

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