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

export const option = {
  boxId: 'linearGradientSearchBox',
  colors: ['#00AF4A','#00751E','#344534','#647B64','#04691A','#0EF840','#07261E','#4A5C4A','#FFE4AC','#84DC9B'],
}

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