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

export const option = {
  dataset: {
    value: '更多',
  },
  dataStyle:{
    color: '#FFFFFF',
    fontSize: 16,

    iconMarginLeft: 10,
    iconFlag: true,
    iconWidth: 12,
    iconHeight: 15,
    iconColor: '#57FF94',
  }
}

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