config.ts
768 Bytes
import { PublicConfigClass } from '@/packages/public'
import { CreateComponentType } from '@/packages/index.d'
import { Title2Config } from './index'
import cloneDeep from 'lodash/cloneDeep'
import { chartInitConfig } from '@/settings/designSetting'
export const option = {
dataset: '我是标题',
attribute: {
linearColors: ['#21649C', '#060F1E', '#2AFFFF', '#000000', '#ffcc33', '#ffcc33'],
fontSize: 20,
fontPos: {
x: 0,
y: 20
},
fontColor: '#2AFFFF'
}
}
export default class Config extends PublicConfigClass implements CreateComponentType {
public key = Title2Config.key
public attr = { ...chartInitConfig, zIndex: 1, w: 550, h: 60 }
public chartConfig = cloneDeep(Title2Config)
public option = cloneDeep(option)
}