config.ts
654 Bytes
import { PublicConfigClass } from '@/packages/public'
import { CreateComponentType } from '@/packages/index.d'
import { chartInitConfig } from '@/settings/designSetting'
import { VariableImageConfig } from './index'
import cloneDeep from 'lodash/cloneDeep'
export const option = {
dataset: '',
valueConfig: [
{
value: '',
imageUrl: ''
}
]
}
export default class Config extends PublicConfigClass implements CreateComponentType {
public key = VariableImageConfig.key
public attr = { ...chartInitConfig, w: 500, h: 300, zIndex: -1 }
public chartConfig = cloneDeep(VariableImageConfig)
public option = cloneDeep(option)
}