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

export const option = {
  dataset: {
    value: '下载报告',
  },
  dataStyle:{
    color: 'yellow',
    fontsize: 16,
    fontcolor: '#FFFFFF',
  }
}

export default class Config extends PublicConfigClass implements CreateComponentType {
  public key = HuoQingDetailButtonConfig.key
  public attr = { ...chartInitConfig, w: 121, h: 44, zIndex: 5 }
  public chartConfig = cloneDeep(HuoQingDetailButtonConfig)
  public option = cloneDeep(option)
}
