mirror of
https://gitee.com/dromara/go-view.git
synced 2024-12-04 12:49:14 +08:00
style: 优化类命名,格式化代码结构,优化注释
This commit is contained in:
parent
18947db22b
commit
049d3fb911
@ -1,4 +1,4 @@
|
||||
import { echartOptionProfixHandle, publicConfig } from '@/packages/public'
|
||||
import { echartOptionProfixHandle, PublicConfigClass } from '@/packages/public'
|
||||
import { BarCommonConfig } from './index'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@ -39,7 +39,7 @@ export const option = {
|
||||
series: [seriesItem, seriesItem]
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = BarCommonConfig.key
|
||||
public chartConfig = cloneDeep(BarCommonConfig)
|
||||
// 图表配置项
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { echartOptionProfixHandle, publicConfig } from '@/packages/public'
|
||||
import { echartOptionProfixHandle, PublicConfigClass } from '@/packages/public'
|
||||
import { BarCrossrangeConfig } from './index'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@ -39,7 +39,7 @@ export const option = {
|
||||
series: [seriesItem, seriesItem]
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = BarCrossrangeConfig.key
|
||||
public chartConfig = cloneDeep(BarCrossrangeConfig)
|
||||
// 图表配置项
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { echartOptionProfixHandle, publicConfig } from '@/packages/public'
|
||||
import { echartOptionProfixHandle, PublicConfigClass } from '@/packages/public'
|
||||
import { LineCommonConfig } from './index'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { defaultTheme, chartColorsSearch } from '@/settings/chartThemes/index'
|
||||
@ -41,7 +41,7 @@ export const option = {
|
||||
series: [seriesItem, seriesItem]
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key: string = LineCommonConfig.key
|
||||
public chartConfig = LineCommonConfig
|
||||
// 图表配置项
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { echartOptionProfixHandle, publicConfig } from '@/packages/public'
|
||||
import { echartOptionProfixHandle, PublicConfigClass } from '@/packages/public'
|
||||
import { LineGradientSingleConfig } from './index'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { graphic } from 'echarts/core'
|
||||
@ -20,7 +20,7 @@ const options = {
|
||||
},
|
||||
xAxis: {
|
||||
show: true,
|
||||
type: 'category',
|
||||
type: 'category'
|
||||
},
|
||||
yAxis: {
|
||||
show: true,
|
||||
@ -52,8 +52,7 @@ const options = {
|
||||
]
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig
|
||||
implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key: string = LineGradientSingleConfig.key
|
||||
public chartConfig = LineGradientSingleConfig
|
||||
// 图表配置项
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { echartOptionProfixHandle, publicConfig } from '@/packages/public'
|
||||
import { echartOptionProfixHandle, PublicConfigClass } from '@/packages/public'
|
||||
import { LineGradientsConfig } from './index'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { graphic } from 'echarts/core'
|
||||
@ -20,7 +20,7 @@ const option = {
|
||||
},
|
||||
xAxis: {
|
||||
show: true,
|
||||
type: 'category',
|
||||
type: 'category'
|
||||
},
|
||||
yAxis: {
|
||||
show: true,
|
||||
@ -33,7 +33,7 @@ const option = {
|
||||
smooth: false,
|
||||
lineStyle: {
|
||||
width: 3,
|
||||
type: 'solid',
|
||||
type: 'solid'
|
||||
},
|
||||
areaStyle: {
|
||||
opacity: 0.8,
|
||||
@ -47,7 +47,7 @@ const option = {
|
||||
color: 'rgba(0,0,0,0)'
|
||||
}
|
||||
])
|
||||
},
|
||||
}
|
||||
},
|
||||
{
|
||||
type: 'line',
|
||||
@ -69,13 +69,12 @@ const option = {
|
||||
color: 'rgba(0,0,0,0)'
|
||||
}
|
||||
])
|
||||
},
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig
|
||||
implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key: string = LineGradientsConfig.key
|
||||
public chartConfig = LineGradientsConfig
|
||||
// 图表配置项
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { echartOptionProfixHandle, publicConfig } from '@/packages/public'
|
||||
import { echartOptionProfixHandle, PublicConfigClass } from '@/packages/public'
|
||||
import { LineLinearSingleConfig } from './index'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { defaultTheme, chartColorsSearch } from '@/settings/chartThemes/index'
|
||||
@ -19,7 +19,7 @@ export const option = {
|
||||
},
|
||||
xAxis: {
|
||||
show: true,
|
||||
type: 'category',
|
||||
type: 'category'
|
||||
},
|
||||
yAxis: {
|
||||
show: true,
|
||||
@ -49,13 +49,12 @@ export const option = {
|
||||
shadowColor: chartColorsSearch[defaultTheme][2],
|
||||
shadowBlur: 10,
|
||||
shadowOffsetY: 20
|
||||
},
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig
|
||||
implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key: string = LineLinearSingleConfig.key
|
||||
public chartConfig = LineLinearSingleConfig
|
||||
// 图表配置项
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { echartOptionProfixHandle, publicConfig } from '@/packages/public'
|
||||
import { echartOptionProfixHandle, PublicConfigClass } from '@/packages/public'
|
||||
import { MapChinaConfig } from './index'
|
||||
import { chartInitConfig } from '@/settings/designSetting'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
@ -60,7 +60,7 @@ export const option = {
|
||||
}
|
||||
]
|
||||
}
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key: string = MapChinaConfig.key
|
||||
public attr = { ...chartInitConfig, w: 750, h: 800, zIndex: -1 }
|
||||
public chartConfig = MapChinaConfig
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { echartOptionProfixHandle, publicConfig } from '@/packages/public'
|
||||
import { echartOptionProfixHandle, PublicConfigClass } from '@/packages/public'
|
||||
import { FunnelConfig } from './index'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@ -53,7 +53,7 @@ export const option = {
|
||||
]
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key: string = FunnelConfig.key
|
||||
public chartConfig = cloneDeep(FunnelConfig)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { publicConfig } from '@/packages/public'
|
||||
import { PublicConfigClass } from '@/packages/public'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { ProcessConfig } from './index'
|
||||
import { chartInitConfig } from '@/settings/designSetting'
|
||||
@ -53,7 +53,7 @@ export const option = {
|
||||
offsetDegree: 0
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = ProcessConfig.key
|
||||
public attr = { ...chartInitConfig, h: 500, zIndex: -1 }
|
||||
public chartConfig = cloneDeep(ProcessConfig)
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { echartOptionProfixHandle, publicConfig } from '@/packages/public'
|
||||
import { echartOptionProfixHandle, PublicConfigClass } from '@/packages/public'
|
||||
import { RadarConfig } from './index'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@ -43,7 +43,7 @@ export const option = {
|
||||
]
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = RadarConfig.key
|
||||
public chartConfig = cloneDeep(RadarConfig)
|
||||
// 图表配置项
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { echartOptionProfixHandle, publicConfig } from '@/packages/public'
|
||||
import { echartOptionProfixHandle, PublicConfigClass } from '@/packages/public'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { WaterPoloConfig } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@ -89,7 +89,7 @@ export const option = {
|
||||
]
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType
|
||||
{
|
||||
public key = WaterPoloConfig.key
|
||||
public chartConfig = cloneDeep(WaterPoloConfig)
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { echartOptionProfixHandle, publicConfig } from '@/packages/public'
|
||||
import { echartOptionProfixHandle, PublicConfigClass } from '@/packages/public'
|
||||
import { PieCircleConfig } from './index'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
|
||||
@ -54,7 +54,7 @@ const option = {
|
||||
]
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key: string = PieCircleConfig.key
|
||||
|
||||
public chartConfig = PieCircleConfig
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { echartOptionProfixHandle, publicConfig } from '@/packages/public'
|
||||
import { echartOptionProfixHandle, PublicConfigClass } from '@/packages/public'
|
||||
import { PieCommonConfig } from './index'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import dataJson from './data.json'
|
||||
@ -44,7 +44,7 @@ const option = {
|
||||
]
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key: string = PieCommonConfig.key
|
||||
|
||||
public chartConfig = PieCommonConfig
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { publicConfig } from '@/packages/public'
|
||||
import { PublicConfigClass } from '@/packages/public'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { Border01Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@ -9,7 +9,7 @@ export const option = {
|
||||
backgroundColor: '#00000000'
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Border01Config.key
|
||||
public chartConfig = cloneDeep(Border01Config)
|
||||
public option = cloneDeep(option)
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { publicConfig } from '@/packages/public'
|
||||
import { PublicConfigClass } from '@/packages/public'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { Border02Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@ -8,8 +8,7 @@ export const option = {
|
||||
backgroundColor: '#00000000'
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig
|
||||
implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Border02Config.key
|
||||
public chartConfig = cloneDeep(Border02Config)
|
||||
public option = cloneDeep(option)
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { publicConfig } from '@/packages/public'
|
||||
import { PublicConfigClass } from '@/packages/public'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { Border03Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@ -8,7 +8,7 @@ export const option = {
|
||||
backgroundColor: '#00000000'
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Border03Config.key
|
||||
public chartConfig = cloneDeep(Border03Config)
|
||||
public option = cloneDeep(option)
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { publicConfig } from '@/packages/public'
|
||||
import { PublicConfigClass } from '@/packages/public'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { Border04Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@ -13,7 +13,7 @@ export const option = {
|
||||
backgroundColor: '#00000000'
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Border04Config.key
|
||||
public chartConfig = cloneDeep(Border04Config)
|
||||
public option = cloneDeep(option)
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { publicConfig } from '@/packages/public'
|
||||
import { PublicConfigClass } from '@/packages/public'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { Border05Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@ -8,7 +8,7 @@ export const option = {
|
||||
backgroundColor: '#00000000'
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Border05Config.key
|
||||
public chartConfig = cloneDeep(Border05Config)
|
||||
public option = cloneDeep(option)
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { publicConfig } from '@/packages/public'
|
||||
import { PublicConfigClass } from '@/packages/public'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { Border06Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@ -8,7 +8,7 @@ export const option = {
|
||||
backgroundColor: '#00000000'
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Border06Config.key
|
||||
public chartConfig = cloneDeep(Border06Config)
|
||||
public option = cloneDeep(option)
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { publicConfig } from '@/packages/public'
|
||||
import { PublicConfigClass } from '@/packages/public'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { Border07Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@ -8,7 +8,7 @@ export const option = {
|
||||
backgroundColor: '#00000000'
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Border07Config.key
|
||||
public chartConfig = cloneDeep(Border07Config)
|
||||
public option = cloneDeep(option)
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { publicConfig } from '@/packages/public'
|
||||
import { PublicConfigClass } from '@/packages/public'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { Border08Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@ -10,7 +10,7 @@ export const option = {
|
||||
backgroundColor: '#00000000'
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Border08Config.key
|
||||
public chartConfig = cloneDeep(Border08Config)
|
||||
public option = cloneDeep(option)
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { publicConfig } from '@/packages/public'
|
||||
import { PublicConfigClass } from '@/packages/public'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { Border09Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@ -8,7 +8,7 @@ export const option = {
|
||||
backgroundColor: '#00000000'
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Border09Config.key
|
||||
public chartConfig = cloneDeep(Border09Config)
|
||||
public option = cloneDeep(option)
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { publicConfig } from '@/packages/public'
|
||||
import { PublicConfigClass } from '@/packages/public'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { Border10Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@ -8,7 +8,7 @@ export const option = {
|
||||
backgroundColor: '#00000000'
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Border10Config.key
|
||||
public chartConfig = cloneDeep(Border10Config)
|
||||
public option = cloneDeep(option)
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { publicConfig } from '@/packages/public'
|
||||
import { PublicConfigClass } from '@/packages/public'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { Border11Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@ -8,7 +8,7 @@ export const option = {
|
||||
backgroundColor: '#00000000'
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Border11Config.key
|
||||
public chartConfig = cloneDeep(Border11Config)
|
||||
public option = cloneDeep(option)
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { publicConfig } from '@/packages/public'
|
||||
import { PublicConfigClass } from '@/packages/public'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { Border12Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@ -8,7 +8,7 @@ export const option = {
|
||||
backgroundColor: '#00000000'
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Border12Config.key
|
||||
public chartConfig = cloneDeep(Border12Config)
|
||||
public option = cloneDeep(option)
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { publicConfig } from '@/packages/public'
|
||||
import { PublicConfigClass } from '@/packages/public'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { Border13Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@ -8,7 +8,7 @@ export const option = {
|
||||
backgroundColor: '#00000000'
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Border13Config.key
|
||||
public chartConfig = cloneDeep(Border13Config)
|
||||
public option = cloneDeep(option)
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { publicConfig } from '@/packages/public'
|
||||
import { PublicConfigClass } from '@/packages/public'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { Decorates01Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@ -10,7 +10,7 @@ export const option = {
|
||||
endWidth: 5
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Decorates01Config.key
|
||||
public chartConfig = cloneDeep(Decorates01Config)
|
||||
public option = cloneDeep(option)
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { publicConfig } from '@/packages/public'
|
||||
import { PublicConfigClass } from '@/packages/public'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { Decorates02Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@ -9,7 +9,7 @@ export const option = {
|
||||
lineHeight: 3
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Decorates02Config.key
|
||||
public chartConfig = cloneDeep(Decorates02Config)
|
||||
public option = cloneDeep(option)
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { publicConfig } from '@/packages/public'
|
||||
import { PublicConfigClass } from '@/packages/public'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { Decorates03Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@ -9,7 +9,7 @@ export const option = {
|
||||
colors: ['#1dc1f5', '#1dc1f5'],
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Decorates03Config.key
|
||||
public chartConfig = cloneDeep(Decorates03Config)
|
||||
public option = cloneDeep(option)
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { publicConfig } from '@/packages/public'
|
||||
import { PublicConfigClass } from '@/packages/public'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { Decorates04Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@ -9,7 +9,7 @@ export const option = {
|
||||
reverse: false
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Decorates04Config.key
|
||||
public chartConfig = cloneDeep(Decorates04Config)
|
||||
public option = cloneDeep(option)
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { publicConfig } from '@/packages/public'
|
||||
import { PublicConfigClass } from '@/packages/public'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { Decorates05Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@ -8,7 +8,7 @@ export const option = {
|
||||
dur: 3
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Decorates05Config.key
|
||||
public chartConfig = cloneDeep(Decorates05Config)
|
||||
public option = cloneDeep(option)
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { publicConfig } from '@/packages/public'
|
||||
import { PublicConfigClass } from '@/packages/public'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { NumberConfig } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@ -18,7 +18,7 @@ export const option = {
|
||||
suffixColor: '#4a9ef8',
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = NumberConfig.key
|
||||
public chartConfig = cloneDeep(NumberConfig)
|
||||
public option = cloneDeep(option)
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { publicConfig } from '@/packages/public'
|
||||
import { PublicConfigClass } from '@/packages/public'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { TimeCommonConfig } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@ -30,7 +30,7 @@ export const option = {
|
||||
colorShadow: '#0075ff'
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = TimeCommonConfig.key
|
||||
public attr = { ...chartInitConfig, w: 300, h: 50, zIndex: -1 }
|
||||
public chartConfig = cloneDeep(TimeCommonConfig)
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { publicConfig } from '@/packages/public'
|
||||
import { PublicConfigClass } from '@/packages/public'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { ImageConfig } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@ -13,7 +13,7 @@ export const option = {
|
||||
borderRadius: 10
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType
|
||||
{
|
||||
public key = ImageConfig.key
|
||||
public chartConfig = cloneDeep(ImageConfig)
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { publicConfig } from '@/packages/public'
|
||||
import { PublicConfigClass } from '@/packages/public'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { TextCommonConfig } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@ -31,7 +31,7 @@ export const option = {
|
||||
backgroundColor: '#00000000',
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType
|
||||
{
|
||||
public key = TextCommonConfig.key
|
||||
public chartConfig = cloneDeep(TextCommonConfig)
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { publicConfig } from '@/packages/public'
|
||||
import { PublicConfigClass } from '@/packages/public'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { TextGradientConfig } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@ -13,7 +13,7 @@ export const option = {
|
||||
}
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = TextGradientConfig.key
|
||||
public chartConfig = cloneDeep(TextGradientConfig)
|
||||
public option = cloneDeep(option)
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { publicConfig } from '@/packages/public'
|
||||
import { PublicConfigClass } from '@/packages/public'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { TableListConfig } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@ -29,7 +29,7 @@ export const option = {
|
||||
valueFormatter(item: { value: any}) { return item.value}
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = TableListConfig.key
|
||||
public chartConfig = cloneDeep(TableListConfig)
|
||||
public option = cloneDeep(option)
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { publicConfig } from '@/packages/public'
|
||||
import { PublicConfigClass } from '@/packages/public'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { TableScrollBoardConfig } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@ -9,20 +9,17 @@ export const option = {
|
||||
dataset: dataJson,
|
||||
index: true,
|
||||
columnWidth: [30, 100, 100],
|
||||
align: ['center','right','right','right'],
|
||||
align: ['center', 'right', 'right', 'right'],
|
||||
rowNum: 5,
|
||||
waitTime: 2,
|
||||
headerHeight: 35,
|
||||
carousel: 'single',
|
||||
headerBGC: '#00BAFF',
|
||||
oddRowBGC: '#003B51',
|
||||
evenRowBGC: '#0A2732',
|
||||
evenRowBGC: '#0A2732'
|
||||
}
|
||||
|
||||
export default class Config
|
||||
extends publicConfig
|
||||
implements CreateComponentType
|
||||
{
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = TableScrollBoardConfig.key
|
||||
public chartConfig = cloneDeep(TableScrollBoardConfig)
|
||||
public option = cloneDeep(option)
|
||||
|
@ -36,7 +36,7 @@ const requestConfig: RequestConfigType = {
|
||||
}
|
||||
|
||||
// 单实例类
|
||||
export class publicConfig implements PublicConfigType {
|
||||
export class PublicConfigClass implements PublicConfigType {
|
||||
public id = getUUID()
|
||||
public isGroup = false
|
||||
// 基本信息
|
||||
@ -78,8 +78,8 @@ export class publicConfig implements PublicConfigType {
|
||||
}
|
||||
}
|
||||
|
||||
// 成组类 (部分属性不需要, 不继承 publicConfig)
|
||||
export class PublicGroupConfigClass extends publicConfig implements CreateComponentGroupType {
|
||||
// 多选成组类
|
||||
export class PublicGroupConfigClass extends PublicConfigClass implements CreateComponentGroupType {
|
||||
// 成组
|
||||
public isGroup = true
|
||||
// 名称
|
||||
|
Loading…
Reference in New Issue
Block a user