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

export const option = {
  dataset: [
    { label: '基本信息', value: 0 },
    { label: '处理记录', value: 13 },
    { label: '辅助决策', value: 100 },
  ],
  dataStyle: {
    borderWidth: 1,
    borderColor: '#4fe985',

    titleBackgroud: '#021d16',
    titleColor: '#099860',
    titleFontSize: 16,

    chooseBackgroud: '#18FFBE',
    chooseColor: '#0D2822',
    chooseFontSize: 16,
    
    navsNumBackgroud: '#f91b1b',
    navsNumColor: '#ffffff',
    navsNumFontSize: 8,

    list: [
        [
          'HuoQingDetailTiltButton',
          'HuoQingDetailInfo',
          'HuoQingDetailPie',
          'HuoQingDetailButton',
        ],
        [
          'HuoQingDetailProcessButton', 
          'HuoQingDetailTimeLine',
          'HuoQingDetailModal',
        ],
        [],
    ]
  },
}

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