fix: 主题设置 表格样式跟随问题

This commit is contained in:
wangjiahao
2021-06-17 18:21:13 +08:00
parent 73d311e99f
commit f2f698b2d1
6 changed files with 54 additions and 22 deletions

View File

@@ -68,6 +68,7 @@ export default {
title: '',
customAttr: JSON.stringify({
color: DEFAULT_COLOR_CASE,
tableColor: DEFAULT_COLOR_CASE,
size: DEFAULT_SIZE,
label: DEFAULT_LABEL,
tooltip: DEFAULT_TOOLTIP
@@ -148,7 +149,11 @@ export default {
// 组件样式-背景设置
customStyleChart.background = customStylePanel.background
// 图形属性-颜色设置
customAttrChart.color = customAttrPanel.color
if (this.chart.type.includes('table')) {
customAttrChart.color = customAttrPanel.tableColor
} else {
customAttrChart.color = customAttrPanel.color
}
this.chart = {
...this.chart,