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

export const option = {
  title: '组件标题栏',
  titleStyle: {
    x: 40,
    y: 23,
    fontcolor: '#FFFFFF',
    fontsize: 20
  }
}

export default class Config extends PublicConfigClass implements CreateComponentType {
  public key = ModalHeadConfig.key
  public attr = { ...chartInitConfig, w: 321, h: 31, zIndex: -1 }
  public chartConfig = cloneDeep(ModalHeadConfig)
  public option = cloneDeep(option)
}
