18 lines
654 B
TypeScript
18 lines
654 B
TypeScript
|
import { PublicConfigClass } from '@/packages/public'
|
||
|
import { CreateComponentType } from '@/packages/index.d'
|
||
|
import { EnergyOverviewConfig } from './index'
|
||
|
import cloneDeep from 'lodash/cloneDeep'
|
||
|
import { chartInitConfig } from '@/settings/designSetting'
|
||
|
//导入数据
|
||
|
import dataJson from './data.json'
|
||
|
export const option = {
|
||
|
dataset: dataJson
|
||
|
}
|
||
|
|
||
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||
|
public key = EnergyOverviewConfig.key
|
||
|
public chartConfig = cloneDeep(EnergyOverviewConfig)
|
||
|
public option = cloneDeep(option)
|
||
|
public attr = { ...chartInitConfig, x: 0, y: 0, w: 1000, h: 240, zIndex: 1 }
|
||
|
}
|