2025-09-05 10:54:48 +08:00
|
|
|
import { PublicConfigClass } from '@/packages/public'
|
|
|
|
import { CreateComponentType } from '@/packages/index.d'
|
|
|
|
import { ConstructionIndexConfig } from './index'
|
2025-09-05 13:39:47 +08:00
|
|
|
import { chartInitConfig } from '@/settings/designSetting'
|
2025-09-05 10:54:48 +08:00
|
|
|
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)
|
2025-09-05 13:39:47 +08:00
|
|
|
public attr = { ...chartInitConfig, x: 0, y: 0, w: 450, h: 320, zIndex: 1 }
|
2025-09-05 10:54:48 +08:00
|
|
|
}
|