config.ts
912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { PublicConfigClass } from '@/packages/public'
import { CreateComponentType } from '@/packages/index.d'
import { Title3Config } from './index'
import cloneDeep from 'lodash/cloneDeep'
import { chartInitConfig } from '@/settings/designSetting'
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 attr = { ...chartInitConfig, zIndex: 1, w: 550, h: 60 }
public chartConfig = cloneDeep(Title3Config)
public option = cloneDeep(option)
}