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

export const option = {
  boxId: 'linearGradientContentBackground',
  colors: ['#06463A','#02221B'],
}

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