mirror of
https://gitee.com/dromara/go-view.git
synced 2025-04-22 13:36:23 +08:00
style: 优化类命名,格式化代码结构,优化注释
This commit is contained in:
parent
27020b2920
commit
ee1b55cad9
@ -1,4 +1,4 @@
|
|||||||
import { echartOptionProfixHandle, publicConfig } from '@/packages/public'
|
import { echartOptionProfixHandle, PublicConfigClass } from '@/packages/public'
|
||||||
import { BarCommonConfig } from './index'
|
import { BarCommonConfig } from './index'
|
||||||
import { CreateComponentType } from '@/packages/index.d'
|
import { CreateComponentType } from '@/packages/index.d'
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
import cloneDeep from 'lodash/cloneDeep'
|
||||||
@ -39,7 +39,7 @@ export const option = {
|
|||||||
series: [seriesItem, seriesItem]
|
series: [seriesItem, seriesItem]
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Config extends publicConfig implements CreateComponentType {
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||||
public key = BarCommonConfig.key
|
public key = BarCommonConfig.key
|
||||||
public chartConfig = cloneDeep(BarCommonConfig)
|
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 { BarCrossrangeConfig } from './index'
|
||||||
import { CreateComponentType } from '@/packages/index.d'
|
import { CreateComponentType } from '@/packages/index.d'
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
import cloneDeep from 'lodash/cloneDeep'
|
||||||
@ -39,7 +39,7 @@ export const option = {
|
|||||||
series: [seriesItem, seriesItem]
|
series: [seriesItem, seriesItem]
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Config extends publicConfig implements CreateComponentType {
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||||
public key = BarCrossrangeConfig.key
|
public key = BarCrossrangeConfig.key
|
||||||
public chartConfig = cloneDeep(BarCrossrangeConfig)
|
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 { LineCommonConfig } from './index'
|
||||||
import { CreateComponentType } from '@/packages/index.d'
|
import { CreateComponentType } from '@/packages/index.d'
|
||||||
import { defaultTheme, chartColorsSearch } from '@/settings/chartThemes/index'
|
import { defaultTheme, chartColorsSearch } from '@/settings/chartThemes/index'
|
||||||
@ -41,7 +41,7 @@ export const option = {
|
|||||||
series: [seriesItem, seriesItem]
|
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 key: string = LineCommonConfig.key
|
||||||
public chartConfig = LineCommonConfig
|
public chartConfig = LineCommonConfig
|
||||||
// 图表配置项
|
// 图表配置项
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { echartOptionProfixHandle, publicConfig } from '@/packages/public'
|
import { echartOptionProfixHandle, PublicConfigClass } from '@/packages/public'
|
||||||
import { LineGradientSingleConfig } from './index'
|
import { LineGradientSingleConfig } from './index'
|
||||||
import { CreateComponentType } from '@/packages/index.d'
|
import { CreateComponentType } from '@/packages/index.d'
|
||||||
import { graphic } from 'echarts/core'
|
import { graphic } from 'echarts/core'
|
||||||
@ -20,7 +20,7 @@ const options = {
|
|||||||
},
|
},
|
||||||
xAxis: {
|
xAxis: {
|
||||||
show: true,
|
show: true,
|
||||||
type: 'category',
|
type: 'category'
|
||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
show: true,
|
show: true,
|
||||||
@ -52,8 +52,7 @@ const options = {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Config extends publicConfig
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||||
implements CreateComponentType {
|
|
||||||
public key: string = LineGradientSingleConfig.key
|
public key: string = LineGradientSingleConfig.key
|
||||||
public chartConfig = LineGradientSingleConfig
|
public chartConfig = LineGradientSingleConfig
|
||||||
// 图表配置项
|
// 图表配置项
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { echartOptionProfixHandle, publicConfig } from '@/packages/public'
|
import { echartOptionProfixHandle, PublicConfigClass } from '@/packages/public'
|
||||||
import { LineGradientsConfig } from './index'
|
import { LineGradientsConfig } from './index'
|
||||||
import { CreateComponentType } from '@/packages/index.d'
|
import { CreateComponentType } from '@/packages/index.d'
|
||||||
import { graphic } from 'echarts/core'
|
import { graphic } from 'echarts/core'
|
||||||
@ -20,7 +20,7 @@ const option = {
|
|||||||
},
|
},
|
||||||
xAxis: {
|
xAxis: {
|
||||||
show: true,
|
show: true,
|
||||||
type: 'category',
|
type: 'category'
|
||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
show: true,
|
show: true,
|
||||||
@ -33,7 +33,7 @@ const option = {
|
|||||||
smooth: false,
|
smooth: false,
|
||||||
lineStyle: {
|
lineStyle: {
|
||||||
width: 3,
|
width: 3,
|
||||||
type: 'solid',
|
type: 'solid'
|
||||||
},
|
},
|
||||||
areaStyle: {
|
areaStyle: {
|
||||||
opacity: 0.8,
|
opacity: 0.8,
|
||||||
@ -47,7 +47,7 @@ const option = {
|
|||||||
color: 'rgba(0,0,0,0)'
|
color: 'rgba(0,0,0,0)'
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'line',
|
type: 'line',
|
||||||
@ -69,13 +69,12 @@ const option = {
|
|||||||
color: 'rgba(0,0,0,0)'
|
color: 'rgba(0,0,0,0)'
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Config extends publicConfig
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||||
implements CreateComponentType {
|
|
||||||
public key: string = LineGradientsConfig.key
|
public key: string = LineGradientsConfig.key
|
||||||
public chartConfig = LineGradientsConfig
|
public chartConfig = LineGradientsConfig
|
||||||
// 图表配置项
|
// 图表配置项
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { echartOptionProfixHandle, publicConfig } from '@/packages/public'
|
import { echartOptionProfixHandle, PublicConfigClass } from '@/packages/public'
|
||||||
import { LineLinearSingleConfig } from './index'
|
import { LineLinearSingleConfig } from './index'
|
||||||
import { CreateComponentType } from '@/packages/index.d'
|
import { CreateComponentType } from '@/packages/index.d'
|
||||||
import { defaultTheme, chartColorsSearch } from '@/settings/chartThemes/index'
|
import { defaultTheme, chartColorsSearch } from '@/settings/chartThemes/index'
|
||||||
@ -19,7 +19,7 @@ export const option = {
|
|||||||
},
|
},
|
||||||
xAxis: {
|
xAxis: {
|
||||||
show: true,
|
show: true,
|
||||||
type: 'category',
|
type: 'category'
|
||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
show: true,
|
show: true,
|
||||||
@ -49,13 +49,12 @@ export const option = {
|
|||||||
shadowColor: chartColorsSearch[defaultTheme][2],
|
shadowColor: chartColorsSearch[defaultTheme][2],
|
||||||
shadowBlur: 10,
|
shadowBlur: 10,
|
||||||
shadowOffsetY: 20
|
shadowOffsetY: 20
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Config extends publicConfig
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||||
implements CreateComponentType {
|
|
||||||
public key: string = LineLinearSingleConfig.key
|
public key: string = LineLinearSingleConfig.key
|
||||||
public chartConfig = LineLinearSingleConfig
|
public chartConfig = LineLinearSingleConfig
|
||||||
// 图表配置项
|
// 图表配置项
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { echartOptionProfixHandle, publicConfig } from '@/packages/public'
|
import { echartOptionProfixHandle, PublicConfigClass } from '@/packages/public'
|
||||||
import { MapChinaConfig } from './index'
|
import { MapChinaConfig } from './index'
|
||||||
import { chartInitConfig } from '@/settings/designSetting'
|
import { chartInitConfig } from '@/settings/designSetting'
|
||||||
import { CreateComponentType } from '@/packages/index.d'
|
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 key: string = MapChinaConfig.key
|
||||||
public attr = { ...chartInitConfig, w: 750, h: 800, zIndex: -1 }
|
public attr = { ...chartInitConfig, w: 750, h: 800, zIndex: -1 }
|
||||||
public chartConfig = MapChinaConfig
|
public chartConfig = MapChinaConfig
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { echartOptionProfixHandle, publicConfig } from '@/packages/public'
|
import { echartOptionProfixHandle, PublicConfigClass } from '@/packages/public'
|
||||||
import { FunnelConfig } from './index'
|
import { FunnelConfig } from './index'
|
||||||
import { CreateComponentType } from '@/packages/index.d'
|
import { CreateComponentType } from '@/packages/index.d'
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
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 key: string = FunnelConfig.key
|
||||||
public chartConfig = cloneDeep(FunnelConfig)
|
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 { CreateComponentType } from '@/packages/index.d'
|
||||||
import { ProcessConfig } from './index'
|
import { ProcessConfig } from './index'
|
||||||
import { chartInitConfig } from '@/settings/designSetting'
|
import { chartInitConfig } from '@/settings/designSetting'
|
||||||
@ -53,7 +53,7 @@ export const option = {
|
|||||||
offsetDegree: 0
|
offsetDegree: 0
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Config extends publicConfig implements CreateComponentType {
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||||
public key = ProcessConfig.key
|
public key = ProcessConfig.key
|
||||||
public attr = { ...chartInitConfig, h: 500, zIndex: -1 }
|
public attr = { ...chartInitConfig, h: 500, zIndex: -1 }
|
||||||
public chartConfig = cloneDeep(ProcessConfig)
|
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 { RadarConfig } from './index'
|
||||||
import { CreateComponentType } from '@/packages/index.d'
|
import { CreateComponentType } from '@/packages/index.d'
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
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 key = RadarConfig.key
|
||||||
public chartConfig = cloneDeep(RadarConfig)
|
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 { CreateComponentType } from '@/packages/index.d'
|
||||||
import { WaterPoloConfig } from './index'
|
import { WaterPoloConfig } from './index'
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
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 key = WaterPoloConfig.key
|
||||||
public chartConfig = cloneDeep(WaterPoloConfig)
|
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 { PieCircleConfig } from './index'
|
||||||
import { CreateComponentType } from '@/packages/index.d'
|
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 key: string = PieCircleConfig.key
|
||||||
|
|
||||||
public chartConfig = PieCircleConfig
|
public chartConfig = PieCircleConfig
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { echartOptionProfixHandle, publicConfig } from '@/packages/public'
|
import { echartOptionProfixHandle, PublicConfigClass } from '@/packages/public'
|
||||||
import { PieCommonConfig } from './index'
|
import { PieCommonConfig } from './index'
|
||||||
import { CreateComponentType } from '@/packages/index.d'
|
import { CreateComponentType } from '@/packages/index.d'
|
||||||
import dataJson from './data.json'
|
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 key: string = PieCommonConfig.key
|
||||||
|
|
||||||
public chartConfig = PieCommonConfig
|
public chartConfig = PieCommonConfig
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { publicConfig } from '@/packages/public'
|
import { PublicConfigClass } from '@/packages/public'
|
||||||
import { CreateComponentType } from '@/packages/index.d'
|
import { CreateComponentType } from '@/packages/index.d'
|
||||||
import { Border01Config } from './index'
|
import { Border01Config } from './index'
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
import cloneDeep from 'lodash/cloneDeep'
|
||||||
@ -9,7 +9,7 @@ export const option = {
|
|||||||
backgroundColor: '#00000000'
|
backgroundColor: '#00000000'
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Config extends publicConfig implements CreateComponentType {
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||||
public key = Border01Config.key
|
public key = Border01Config.key
|
||||||
public chartConfig = cloneDeep(Border01Config)
|
public chartConfig = cloneDeep(Border01Config)
|
||||||
public option = cloneDeep(option)
|
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 { CreateComponentType } from '@/packages/index.d'
|
||||||
import { Border02Config } from './index'
|
import { Border02Config } from './index'
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
import cloneDeep from 'lodash/cloneDeep'
|
||||||
@ -8,8 +8,7 @@ export const option = {
|
|||||||
backgroundColor: '#00000000'
|
backgroundColor: '#00000000'
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Config extends publicConfig
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||||
implements CreateComponentType {
|
|
||||||
public key = Border02Config.key
|
public key = Border02Config.key
|
||||||
public chartConfig = cloneDeep(Border02Config)
|
public chartConfig = cloneDeep(Border02Config)
|
||||||
public option = cloneDeep(option)
|
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 { CreateComponentType } from '@/packages/index.d'
|
||||||
import { Border03Config } from './index'
|
import { Border03Config } from './index'
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
import cloneDeep from 'lodash/cloneDeep'
|
||||||
@ -8,7 +8,7 @@ export const option = {
|
|||||||
backgroundColor: '#00000000'
|
backgroundColor: '#00000000'
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Config extends publicConfig implements CreateComponentType {
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||||
public key = Border03Config.key
|
public key = Border03Config.key
|
||||||
public chartConfig = cloneDeep(Border03Config)
|
public chartConfig = cloneDeep(Border03Config)
|
||||||
public option = cloneDeep(option)
|
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 { CreateComponentType } from '@/packages/index.d'
|
||||||
import { Border04Config } from './index'
|
import { Border04Config } from './index'
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
import cloneDeep from 'lodash/cloneDeep'
|
||||||
@ -13,7 +13,7 @@ export const option = {
|
|||||||
backgroundColor: '#00000000'
|
backgroundColor: '#00000000'
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Config extends publicConfig implements CreateComponentType {
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||||
public key = Border04Config.key
|
public key = Border04Config.key
|
||||||
public chartConfig = cloneDeep(Border04Config)
|
public chartConfig = cloneDeep(Border04Config)
|
||||||
public option = cloneDeep(option)
|
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 { CreateComponentType } from '@/packages/index.d'
|
||||||
import { Border05Config } from './index'
|
import { Border05Config } from './index'
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
import cloneDeep from 'lodash/cloneDeep'
|
||||||
@ -8,7 +8,7 @@ export const option = {
|
|||||||
backgroundColor: '#00000000'
|
backgroundColor: '#00000000'
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Config extends publicConfig implements CreateComponentType {
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||||
public key = Border05Config.key
|
public key = Border05Config.key
|
||||||
public chartConfig = cloneDeep(Border05Config)
|
public chartConfig = cloneDeep(Border05Config)
|
||||||
public option = cloneDeep(option)
|
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 { CreateComponentType } from '@/packages/index.d'
|
||||||
import { Border06Config } from './index'
|
import { Border06Config } from './index'
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
import cloneDeep from 'lodash/cloneDeep'
|
||||||
@ -8,7 +8,7 @@ export const option = {
|
|||||||
backgroundColor: '#00000000'
|
backgroundColor: '#00000000'
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Config extends publicConfig implements CreateComponentType {
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||||
public key = Border06Config.key
|
public key = Border06Config.key
|
||||||
public chartConfig = cloneDeep(Border06Config)
|
public chartConfig = cloneDeep(Border06Config)
|
||||||
public option = cloneDeep(option)
|
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 { CreateComponentType } from '@/packages/index.d'
|
||||||
import { Border07Config } from './index'
|
import { Border07Config } from './index'
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
import cloneDeep from 'lodash/cloneDeep'
|
||||||
@ -8,7 +8,7 @@ export const option = {
|
|||||||
backgroundColor: '#00000000'
|
backgroundColor: '#00000000'
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Config extends publicConfig implements CreateComponentType {
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||||
public key = Border07Config.key
|
public key = Border07Config.key
|
||||||
public chartConfig = cloneDeep(Border07Config)
|
public chartConfig = cloneDeep(Border07Config)
|
||||||
public option = cloneDeep(option)
|
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 { CreateComponentType } from '@/packages/index.d'
|
||||||
import { Border08Config } from './index'
|
import { Border08Config } from './index'
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
import cloneDeep from 'lodash/cloneDeep'
|
||||||
@ -10,7 +10,7 @@ export const option = {
|
|||||||
backgroundColor: '#00000000'
|
backgroundColor: '#00000000'
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Config extends publicConfig implements CreateComponentType {
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||||
public key = Border08Config.key
|
public key = Border08Config.key
|
||||||
public chartConfig = cloneDeep(Border08Config)
|
public chartConfig = cloneDeep(Border08Config)
|
||||||
public option = cloneDeep(option)
|
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 { CreateComponentType } from '@/packages/index.d'
|
||||||
import { Border09Config } from './index'
|
import { Border09Config } from './index'
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
import cloneDeep from 'lodash/cloneDeep'
|
||||||
@ -8,7 +8,7 @@ export const option = {
|
|||||||
backgroundColor: '#00000000'
|
backgroundColor: '#00000000'
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Config extends publicConfig implements CreateComponentType {
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||||
public key = Border09Config.key
|
public key = Border09Config.key
|
||||||
public chartConfig = cloneDeep(Border09Config)
|
public chartConfig = cloneDeep(Border09Config)
|
||||||
public option = cloneDeep(option)
|
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 { CreateComponentType } from '@/packages/index.d'
|
||||||
import { Border10Config } from './index'
|
import { Border10Config } from './index'
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
import cloneDeep from 'lodash/cloneDeep'
|
||||||
@ -8,7 +8,7 @@ export const option = {
|
|||||||
backgroundColor: '#00000000'
|
backgroundColor: '#00000000'
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Config extends publicConfig implements CreateComponentType {
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||||
public key = Border10Config.key
|
public key = Border10Config.key
|
||||||
public chartConfig = cloneDeep(Border10Config)
|
public chartConfig = cloneDeep(Border10Config)
|
||||||
public option = cloneDeep(option)
|
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 { CreateComponentType } from '@/packages/index.d'
|
||||||
import { Border11Config } from './index'
|
import { Border11Config } from './index'
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
import cloneDeep from 'lodash/cloneDeep'
|
||||||
@ -8,7 +8,7 @@ export const option = {
|
|||||||
backgroundColor: '#00000000'
|
backgroundColor: '#00000000'
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Config extends publicConfig implements CreateComponentType {
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||||
public key = Border11Config.key
|
public key = Border11Config.key
|
||||||
public chartConfig = cloneDeep(Border11Config)
|
public chartConfig = cloneDeep(Border11Config)
|
||||||
public option = cloneDeep(option)
|
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 { CreateComponentType } from '@/packages/index.d'
|
||||||
import { Border12Config } from './index'
|
import { Border12Config } from './index'
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
import cloneDeep from 'lodash/cloneDeep'
|
||||||
@ -8,7 +8,7 @@ export const option = {
|
|||||||
backgroundColor: '#00000000'
|
backgroundColor: '#00000000'
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Config extends publicConfig implements CreateComponentType {
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||||
public key = Border12Config.key
|
public key = Border12Config.key
|
||||||
public chartConfig = cloneDeep(Border12Config)
|
public chartConfig = cloneDeep(Border12Config)
|
||||||
public option = cloneDeep(option)
|
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 { CreateComponentType } from '@/packages/index.d'
|
||||||
import { Border13Config } from './index'
|
import { Border13Config } from './index'
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
import cloneDeep from 'lodash/cloneDeep'
|
||||||
@ -8,7 +8,7 @@ export const option = {
|
|||||||
backgroundColor: '#00000000'
|
backgroundColor: '#00000000'
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Config extends publicConfig implements CreateComponentType {
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||||
public key = Border13Config.key
|
public key = Border13Config.key
|
||||||
public chartConfig = cloneDeep(Border13Config)
|
public chartConfig = cloneDeep(Border13Config)
|
||||||
public option = cloneDeep(option)
|
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 { CreateComponentType } from '@/packages/index.d'
|
||||||
import { Decorates01Config } from './index'
|
import { Decorates01Config } from './index'
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
import cloneDeep from 'lodash/cloneDeep'
|
||||||
@ -10,7 +10,7 @@ export const option = {
|
|||||||
endWidth: 5
|
endWidth: 5
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Config extends publicConfig implements CreateComponentType {
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||||
public key = Decorates01Config.key
|
public key = Decorates01Config.key
|
||||||
public chartConfig = cloneDeep(Decorates01Config)
|
public chartConfig = cloneDeep(Decorates01Config)
|
||||||
public option = cloneDeep(option)
|
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 { CreateComponentType } from '@/packages/index.d'
|
||||||
import { Decorates02Config } from './index'
|
import { Decorates02Config } from './index'
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
import cloneDeep from 'lodash/cloneDeep'
|
||||||
@ -9,7 +9,7 @@ export const option = {
|
|||||||
lineHeight: 3
|
lineHeight: 3
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Config extends publicConfig implements CreateComponentType {
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||||
public key = Decorates02Config.key
|
public key = Decorates02Config.key
|
||||||
public chartConfig = cloneDeep(Decorates02Config)
|
public chartConfig = cloneDeep(Decorates02Config)
|
||||||
public option = cloneDeep(option)
|
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 { CreateComponentType } from '@/packages/index.d'
|
||||||
import { Decorates03Config } from './index'
|
import { Decorates03Config } from './index'
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
import cloneDeep from 'lodash/cloneDeep'
|
||||||
@ -9,7 +9,7 @@ export const option = {
|
|||||||
colors: ['#1dc1f5', '#1dc1f5'],
|
colors: ['#1dc1f5', '#1dc1f5'],
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Config extends publicConfig implements CreateComponentType {
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||||
public key = Decorates03Config.key
|
public key = Decorates03Config.key
|
||||||
public chartConfig = cloneDeep(Decorates03Config)
|
public chartConfig = cloneDeep(Decorates03Config)
|
||||||
public option = cloneDeep(option)
|
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 { CreateComponentType } from '@/packages/index.d'
|
||||||
import { Decorates04Config } from './index'
|
import { Decorates04Config } from './index'
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
import cloneDeep from 'lodash/cloneDeep'
|
||||||
@ -9,7 +9,7 @@ export const option = {
|
|||||||
reverse: false
|
reverse: false
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Config extends publicConfig implements CreateComponentType {
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||||
public key = Decorates04Config.key
|
public key = Decorates04Config.key
|
||||||
public chartConfig = cloneDeep(Decorates04Config)
|
public chartConfig = cloneDeep(Decorates04Config)
|
||||||
public option = cloneDeep(option)
|
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 { CreateComponentType } from '@/packages/index.d'
|
||||||
import { Decorates05Config } from './index'
|
import { Decorates05Config } from './index'
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
import cloneDeep from 'lodash/cloneDeep'
|
||||||
@ -8,7 +8,7 @@ export const option = {
|
|||||||
dur: 3
|
dur: 3
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Config extends publicConfig implements CreateComponentType {
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||||
public key = Decorates05Config.key
|
public key = Decorates05Config.key
|
||||||
public chartConfig = cloneDeep(Decorates05Config)
|
public chartConfig = cloneDeep(Decorates05Config)
|
||||||
public option = cloneDeep(option)
|
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 { CreateComponentType } from '@/packages/index.d'
|
||||||
import { NumberConfig } from './index'
|
import { NumberConfig } from './index'
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
import cloneDeep from 'lodash/cloneDeep'
|
||||||
@ -18,7 +18,7 @@ export const option = {
|
|||||||
suffixColor: '#4a9ef8',
|
suffixColor: '#4a9ef8',
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Config extends publicConfig implements CreateComponentType {
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||||
public key = NumberConfig.key
|
public key = NumberConfig.key
|
||||||
public chartConfig = cloneDeep(NumberConfig)
|
public chartConfig = cloneDeep(NumberConfig)
|
||||||
public option = cloneDeep(option)
|
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 { CreateComponentType } from '@/packages/index.d'
|
||||||
import { TimeCommonConfig } from './index'
|
import { TimeCommonConfig } from './index'
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
import cloneDeep from 'lodash/cloneDeep'
|
||||||
@ -30,7 +30,7 @@ export const option = {
|
|||||||
colorShadow: '#0075ff'
|
colorShadow: '#0075ff'
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Config extends publicConfig implements CreateComponentType {
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||||
public key = TimeCommonConfig.key
|
public key = TimeCommonConfig.key
|
||||||
public attr = { ...chartInitConfig, w: 300, h: 50, zIndex: -1 }
|
public attr = { ...chartInitConfig, w: 300, h: 50, zIndex: -1 }
|
||||||
public chartConfig = cloneDeep(TimeCommonConfig)
|
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 { CreateComponentType } from '@/packages/index.d'
|
||||||
import { ImageConfig } from './index'
|
import { ImageConfig } from './index'
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
import cloneDeep from 'lodash/cloneDeep'
|
||||||
@ -13,7 +13,7 @@ export const option = {
|
|||||||
borderRadius: 10
|
borderRadius: 10
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Config extends publicConfig implements CreateComponentType
|
export default class Config extends PublicConfigClass implements CreateComponentType
|
||||||
{
|
{
|
||||||
public key = ImageConfig.key
|
public key = ImageConfig.key
|
||||||
public chartConfig = cloneDeep(ImageConfig)
|
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 { CreateComponentType } from '@/packages/index.d'
|
||||||
import { TextCommonConfig } from './index'
|
import { TextCommonConfig } from './index'
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
import cloneDeep from 'lodash/cloneDeep'
|
||||||
@ -31,7 +31,7 @@ export const option = {
|
|||||||
backgroundColor: '#00000000',
|
backgroundColor: '#00000000',
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Config extends publicConfig implements CreateComponentType
|
export default class Config extends PublicConfigClass implements CreateComponentType
|
||||||
{
|
{
|
||||||
public key = TextCommonConfig.key
|
public key = TextCommonConfig.key
|
||||||
public chartConfig = cloneDeep(TextCommonConfig)
|
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 { CreateComponentType } from '@/packages/index.d'
|
||||||
import { TextGradientConfig } from './index'
|
import { TextGradientConfig } from './index'
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
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 key = TextGradientConfig.key
|
||||||
public chartConfig = cloneDeep(TextGradientConfig)
|
public chartConfig = cloneDeep(TextGradientConfig)
|
||||||
public option = cloneDeep(option)
|
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 { CreateComponentType } from '@/packages/index.d'
|
||||||
import { TableListConfig } from './index'
|
import { TableListConfig } from './index'
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
import cloneDeep from 'lodash/cloneDeep'
|
||||||
@ -29,7 +29,7 @@ export const option = {
|
|||||||
valueFormatter(item: { value: any}) { return item.value}
|
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 key = TableListConfig.key
|
||||||
public chartConfig = cloneDeep(TableListConfig)
|
public chartConfig = cloneDeep(TableListConfig)
|
||||||
public option = cloneDeep(option)
|
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 { CreateComponentType } from '@/packages/index.d'
|
||||||
import { TableScrollBoardConfig } from './index'
|
import { TableScrollBoardConfig } from './index'
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
import cloneDeep from 'lodash/cloneDeep'
|
||||||
@ -16,13 +16,10 @@ export const option = {
|
|||||||
carousel: 'single',
|
carousel: 'single',
|
||||||
headerBGC: '#00BAFF',
|
headerBGC: '#00BAFF',
|
||||||
oddRowBGC: '#003B51',
|
oddRowBGC: '#003B51',
|
||||||
evenRowBGC: '#0A2732',
|
evenRowBGC: '#0A2732'
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Config
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||||
extends publicConfig
|
|
||||||
implements CreateComponentType
|
|
||||||
{
|
|
||||||
public key = TableScrollBoardConfig.key
|
public key = TableScrollBoardConfig.key
|
||||||
public chartConfig = cloneDeep(TableScrollBoardConfig)
|
public chartConfig = cloneDeep(TableScrollBoardConfig)
|
||||||
public option = cloneDeep(option)
|
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 id = getUUID()
|
||||||
public isGroup = false
|
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
|
public isGroup = true
|
||||||
// 名称
|
// 名称
|
||||||
|
Loading…
x
Reference in New Issue
Block a user