go-viee-fetch-Demo/src/packages/components/Charts/IntegratedEnergy/ConstructionIndex/config.ts

20 lines
671 B
TypeScript
Raw Normal View History

import { PublicConfigClass } from '@/packages/public'
import { CreateComponentType } from '@/packages/index.d'
import { ConstructionIndexConfig } from './index'
import { chartInitConfig } from '@/settings/designSetting'
import cloneDeep from 'lodash/cloneDeep'
//导入数据
import dataJson from './data.json'
export const option = {
dataset: dataJson.source
}
export default class Config extends PublicConfigClass implements CreateComponentType {
public key = ConstructionIndexConfig.key
public chartConfig = cloneDeep(ConstructionIndexConfig)
public option = cloneDeep(option)
public attr = { ...chartInitConfig, x: 0, y: 0, w: 450, h: 320, zIndex: 1 }
}