config.ts 607 Bytes
import { PublicConfigClass } from '@/packages/public'
import { CreateComponentType } from '@/packages/index.d'
import { chartInitConfig } from '@/settings/designSetting'
import { CustomEchartsConfig } from './index'
import cloneDeep from 'lodash/cloneDeep'

export const option = {
  //数据源设置
  dataset: "{}"
}

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