18 lines
534 B
TypeScript
18 lines
534 B
TypeScript
|
import { PublicConfigClass } from '@/packages/public'
|
||
|
import { CreateComponentType } from '@/packages/index.d'
|
||
|
import { ConstructionIndexConfig } from './index'
|
||
|
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)
|
||
|
}
|