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

export const option = {
  title: '组件标题栏',
  titleStyle: {
    x: 80,
    y: 30,
  }
}

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