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

export const option = {
  textSize: 16,
  textColor: '#CBE7CD',
  text: '3号工具',
  dataset: [
    {label: '容量' ,value :'500 m³' },
    {label: '尺寸' ,value :'10m × 5m × 3m' },
    {label: '水深' ,value :'7.5m' }
  ]
}

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