Merge pull request #8912 from dataease/pr@dev@fix_template
fix(仪表板): 适配历史主题不支持仪表板背景透明度设置问题
This commit is contained in:
commit
e870a65cfb
@ -192,6 +192,7 @@ const data = {
|
||||
if (style) {
|
||||
style['selfAdaption'] = true
|
||||
}
|
||||
style.panel['alpha'] = style.panel['alpha'] === undefined ? 100 : style.panel['alpha']
|
||||
state.canvasStyleData = style
|
||||
},
|
||||
|
||||
|
||||
@ -242,6 +242,7 @@ export default {
|
||||
// 主题变更
|
||||
this.canvasStyleData.chartInfo.chartCommonStyle.backgroundColorSelect = true
|
||||
this.canvasStyleData.panel.backgroundType = 'color'
|
||||
this.canvasStyleData.panel['alpha'] = 100
|
||||
if (this.overallSettingForm.panel.themeColor === 'light') {
|
||||
this.canvasStyleData.panel.color = deepCopy(LIGHT_THEME_PANEL_BACKGROUND)
|
||||
this.canvasStyleData.chartInfo.chartCommonStyle.color = deepCopy(LIGHT_THEME_COMPONENT_BACKGROUND)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user