feat: 新增进度条多个配置项

This commit is contained in:
奔跑的面条
2022-06-25 15:51:38 +08:00
parent 665ebd7b17
commit 6cecbb6ec2
3 changed files with 84 additions and 28 deletions
@@ -33,15 +33,29 @@ export const indicatorPlacements = [
export const option = {
dataset: 36,
// 默认类型
type: types[2].value,
// 进行时效果
processing: true,
// 主颜色
color: '#4992FFFF',
// 轨道颜色
railColor: '#3e3e3f',
// 指标
unit: '%',
// 指标大小
indicatorTextSize: 34,
// 指标位置(线条时可用)
indicatorPlacement: "outside"
indicatorPlacement: 'outside',
// 指标颜色
indicatorTextColor: '#FFFFFFFF',
// 偏移角度
offsetDegree: 0
}
export default class Config extends publicConfig implements CreateComponentType {
public key = ProcessConfig.key
public attr = {...chartInitConfig, h: 500, zIndex: -1}
public attr = { ...chartInitConfig, h: 500, zIndex: -1 }
public chartConfig = cloneDeep(ProcessConfig)
public option = cloneDeep(option)
}