go-viee-fetch-Demo/src/packages/components/Charts/IntegratedEnergy/ConstructionIndex/config.ts
gaohaifeng 8ce15ac064 refactor(Charts): 统一调整集成能源图表尺寸并添加背景组件
- 将FeeOverview、ConsumptionProportion和ConstructionIndex图表的宽度调整为450,高度调整为320
- 为ConstructionIndex图表添加缺失的attr配置
- 在各图表组件中用Background组件替换原有容器,并添加标题
- 调整ConstructionIndex列表项的样式
2025-09-05 13:39:47 +08:00

20 lines
671 B
TypeScript

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 }
}