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

export const option = {
  colors: ['#FFFFFF','#CBE6CD','#58FF95'],
  textSize1: 12,
  textSize2: 14,
  textSize3: 20,
  dataset:[
    { time: '27' },
    { time: '37' },
    { time: '47' }
  ]
}

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