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

export const option = {
  secBackground: ['#0A3629', '#00611A'],
  textColor: ['#16D49D', '#FFFFFF', '#FFFFFF','#FFFFFF'],
  textSize: 10,
  InpBackgroundColor: '#0C2411',
  InpBorderColor: '#00611A',
  InpTextColor: '#099860',
  InpTextSize: 10,
  treeColor: '#CBE6CD',
  treeSize: 10,
  unitsOptions: [],
  TableColumns:[
    { 
      type: 'selection',
    },
    { 
      title: '姓名',
      key: 'name'
    }
  ],
  TableDatas: []
}

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