config.ts
806 Bytes
import { PublicConfigClass } from '@/packages/public'
import { CreateComponentType } from '@/packages/index.d'
import { Title1Config } from './index'
import cloneDeep from 'lodash/cloneDeep'
import { chartInitConfig } from '@/settings/designSetting'
export const option = {
dataset: '我是标题',
attribute: {
linearColors: ['#0559A3', '#0654A3', '#2AFFFF', '#2AFFFF', '#2affff', ' #2affff', '#16d9d9'],
fontSize: 20,
fontPos: {
x: 0,
y: 20
},
fontColor: '#2AFFFF',
lineColor: '#2AFFFF'
}
}
export default class Config extends PublicConfigClass implements CreateComponentType {
public key = Title1Config.key
public attr = { ...chartInitConfig, zIndex: 1, w: 550, h: 60 }
public chartConfig = cloneDeep(Title1Config)
public option = cloneDeep(option)
}