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

export const option = {
  dataset: [
    { value: '火点上报' },
    { value: '实况反馈' },
    { value: '启用预案' },
    { value: '作战指令' },
    { value: '处理推送' },
    { value: '推送消息' },
    { value: '前线消息' },
  ],
  dataStyle:{
    backgroud: '#FFFFFF00',
    marginTop: 15,
    marginLeft: 20,
    gap: 20,

    fontsize: 20,
    fontcolor: '#FFFFFF',
    width: 157,
    height: 42,
  }
}

export default class Config extends PublicConfigClass implements CreateComponentType {
  public key = HuoQingDetailProcessButtonConfig.key
  public attr = { ...chartInitConfig, w: 197, h: 480, zIndex: 5 }
  public chartConfig = cloneDeep(HuoQingDetailProcessButtonConfig)
  public option = cloneDeep(option)
  public filter = "return res.result;"
}
