fix:修复背景图设置问题

main
liu.shiyi 2 years ago
parent 265ea8123a
commit e00635e0c5

@ -321,7 +321,7 @@ export default {
return this.form.customTheme === 'light' ? 'lightBgColor' : 'bgColor' return this.form.customTheme === 'light' ? 'lightBgColor' : 'bgColor'
}, },
currentBg () { currentBg () {
return this.form.customTheme === 'light' ? 'lightBgColor' : 'bg' return this.form.customTheme === 'light' ? 'lightBg' : 'bg'
}, },
dsValue () { dsValue () {
return this.form.cacheDataSets?.map(dSet => ({ return this.form.cacheDataSets?.map(dSet => ({

@ -475,7 +475,7 @@ const setting = [
value: '#d0d0d0', value: '#d0d0d0',
tabName: 'custom', tabName: 'custom',
groupName: 'yAxis' groupName: 'yAxis'
}, }
// 边距 padding // 边距 padding
] ]
@ -501,7 +501,7 @@ const optionHandler = ' let pointEnable = setting.find(settingItem=>settingItem
' option.point = {shape: pointEnable}\n' + ' option.point = {shape: pointEnable}\n' +
' let pointColor = setting.find(settingItem=>settingItem.field === \'point_color\').value\n' + ' let pointColor = setting.find(settingItem=>settingItem.field === \'point_color\').value\n' +
' option.point.color = pointColor\n' + ' option.point.color = pointColor\n' +
' option.point.size = setting.find(settingItem=>settingItem.field === \'point_size\').value\n' + ' option.point.size = setting.find(settingItem=>settingItem.field === \'point_size\').value\n' +
'};' + '};' +
'option.yAxis.grid.line.style.lineDash = [4,setting.find(settingItem=>settingItem.field === \'yAxis_grid_line_style_lineDash\').value]' 'option.yAxis.grid.line.style.lineDash = [4,setting.find(settingItem=>settingItem.field === \'yAxis_grid_line_style_lineDash\').value]'
@ -517,6 +517,7 @@ const option = {
yField: 'scales', yField: 'scales',
smooth: false, smooth: false,
startOnZero: true, startOnZero: true,
isStack: false,
areaStyle: { areaStyle: {
fill: 'l(0) 0:#3e5bdb 1:#3e5bdb' fill: 'l(0) 0:#3e5bdb 1:#3e5bdb'
}, },

@ -484,6 +484,7 @@ const option = {
yField: 'scales', yField: 'scales',
smooth: false, smooth: false,
startOnZero: true, startOnZero: true,
isStack: false,
areaStyle: { areaStyle: {
fill: 'l(270) 0:#ffffff 1:#1890ff' fill: 'l(270) 0:#ffffff 1:#1890ff'
}, },

Loading…
Cancel
Save