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

export const option = {
  boxId: 'linearGradientTitlesLeftBtn',
  colors: ['#131415','#008C47','#02C175','#02AD69','#008C46','#06C869','#02B56D','#EBBE10','#02C074'],
}

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