config.ts
788 Bytes
import { PublicConfigClass } from '@/packages/public'
import { CreateComponentType } from '@/packages/index.d'
import { Title3Config } from './index'
import cloneDeep from 'lodash/cloneDeep'
export const option = {
dataset: '我是标题',
attribute: {
linearColors: [
'#21649C',
'#060F1E',
'#2AFFFF',
'#2AFFFF',
'#2AFFFF',
'#2AFFFF',
'#2affff',
'#16d9d9',
'#2affff',
'#2affff',
'#2affff',
'#2affff'
],
fontSize: 20,
fontPos: {
x: 0,
y: 20
},
fontColor: '#2AFFFF'
}
}
export default class Config extends PublicConfigClass implements CreateComponentType {
public key = Title3Config.key
public chartConfig = cloneDeep(Title3Config)
public option = cloneDeep(option)
}