- 将FeeOverview、ConsumptionProportion和ConstructionIndex图表的宽度调整为450,高度调整为320 - 为ConstructionIndex图表添加缺失的attr配置 - 在各图表组件中用Background组件替换原有容器,并添加标题 - 调整ConstructionIndex列表项的样式
20 lines
671 B
TypeScript
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 }
|
|
}
|