mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
feat: 新增信息-文字-新增【渐变文字】组件
feat: 新增信息-文字-新增【渐变文字】组件
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { publicConfig } 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 publicConfig implements CreateComponentType {
|
||||
public key = TextGradientConfig.key
|
||||
public chartConfig = cloneDeep(TextGradientConfig)
|
||||
public option = cloneDeep(option)
|
||||
}
|
||||
Reference in New Issue
Block a user