@ -52,7 +52,7 @@ const setting = [
groupName: 'graph'
},
{
label: '背景图url',
label: '背景图URL',
// 设置组件类型
type: 'input',
// 字段
@ -94,8 +94,8 @@ const option = {
autoFit: true,
percent: 0.8,
barWidthRatio: 0.3,
backColor: '#fff',
frontColor: '#4a7af4',
backColor: '#EEEEEE',
frontColor: '#4391F4',
color: ['#4a7af4', '#fff'],
progressStyle: {
current: {
@ -125,7 +125,7 @@ export default {
optionField.forEach((field, index) => {
if (index === optionField.length - 1) {
// 数据配置时,必须有值才更新
if (set.tabName === type && set.value) {
if ((set.tabName === type && type === 'data' && set.value) || (set.tabName === type && type === 'custom')) {
option[field] = set.value
}
} else {