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 = {
  dur: 0.5,
  borderTitle: '按钮',
  borderTitleWidth: 124,
  borderTitleHeight: 30,
  borderTitleSize: 18,
  borderTitleColor: '#fff',
  colors: ['#0E8A6D', '#02261C'],
  backgroundColor: '#00000000'
}

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)
}
