Merge pull request #8912 from dataease/pr@dev@fix_template

fix(仪表板): 适配历史主题不支持仪表板背景透明度设置问题
This commit is contained in:
王嘉豪 2024-04-03 11:20:48 +08:00 committed by GitHub
commit e870a65cfb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -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
},

View File

@ -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)