21 lines
560 B
TypeScript
21 lines
560 B
TypeScript
import { PublicConfigClass } from '@/packages/public'
|
|
import { CreateComponentType } from '@/packages/index.d'
|
|
import { TextGradientConfig } from './index'
|
|
import cloneDeep from 'lodash/cloneDeep'
|
|
|
|
export const option = {
|
|
dataset: '我是渐变文本',
|
|
size: 20,
|
|
gradient: {
|
|
from: '#0000FFFF',
|
|
to: '#00FF00FF',
|
|
deg: 45
|
|
}
|
|
}
|
|
|
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
|
public key = TextGradientConfig.key
|
|
public chartConfig = cloneDeep(TextGradientConfig)
|
|
public option = cloneDeep(option)
|
|
}
|