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

export const option = {
  buttonName: '更多',
  buttonStyle:{
    color: '#FFFFFF',
    fontSize: 16,

    iconMarginLeft: 10,
    iconFlag: true,
    iconWidth: 11,
    iconHeight: 13,
    iconColor: '#57FF94',
  }
}

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