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

export const option = {
  dataset: [
    // { value: '蔓延分析' },
    { value: '态势标绘' },
    // { value: '灾害评估' },
  ],
  dataStyle: {
    backgroud: '#FFFFFF00',
    marginTop: 15,
    marginLeft: 20,

    buttonWidth: 100,
    buttonHeight: 23 * 140 / 81,
    buttonGap: 0,
    fontsize: 10,
    fontcolor: '#FFFFFF',
  },
}

export default class Config extends PublicConfigClass implements CreateComponentType {
  public key = HuoQingDetailTiltButtonConfig.key
  public attr = { ...chartInitConfig, w: 345, h: 70, zIndex: 1 }
  public chartConfig = cloneDeep(HuoQingDetailTiltButtonConfig)
  public option = cloneDeep(option)
}
