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

export const option = {
  title: '机场',
  unit: '处',
  dataset: 3,
  titleSize: 14,
  unitSize: 10,
  dataSize: 24,
  colors: ['#FFFFFF','#FF6F00','#FF6F00'],
}

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