config.ts 644 Bytes
import { PublicConfigClass } from '@/packages/public'
import { CreateComponentType } from '@/packages/index.d'
import { Title2Config } from './index'
import cloneDeep from 'lodash/cloneDeep'

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 chartConfig = cloneDeep(Title2Config)
  public option = cloneDeep(option)
}