diff --git a/src/packages/components/Charts/IntegratedEnergy/ConstructionIndex/config.ts b/src/packages/components/Charts/IntegratedEnergy/ConstructionIndex/config.ts index bc24166..c6a244e 100644 --- a/src/packages/components/Charts/IntegratedEnergy/ConstructionIndex/config.ts +++ b/src/packages/components/Charts/IntegratedEnergy/ConstructionIndex/config.ts @@ -1,6 +1,7 @@ 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' //导入数据 @@ -14,4 +15,5 @@ export default class Config extends PublicConfigClass implements CreateComponent 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 } } diff --git a/src/packages/components/Charts/IntegratedEnergy/ConstructionIndex/index.vue b/src/packages/components/Charts/IntegratedEnergy/ConstructionIndex/index.vue index 689d31a..a5948d2 100644 --- a/src/packages/components/Charts/IntegratedEnergy/ConstructionIndex/index.vue +++ b/src/packages/components/Charts/IntegratedEnergy/ConstructionIndex/index.vue @@ -1,6 +1,6 @@