From d4595ac702e00bda29e4fbdf94c15c5d94ff2604 Mon Sep 17 00:00:00 2001 From: junjun Date: Fri, 22 Jul 2022 15:47:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=A7=86=E5=9B=BE):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=80=8F=E8=A7=86=E8=A1=A8=E6=8C=87=E6=A0=87=E7=B1=BB=E8=A1=A8?= =?UTF-8?q?=E5=A4=B4=E5=AD=97=E4=BD=93=E5=A4=A7=E5=B0=8F=E4=B8=8D=E6=94=B9?= =?UTF-8?q?=E5=8F=98=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/chart/chart/common/common_table.js | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/frontend/src/views/chart/chart/common/common_table.js b/frontend/src/views/chart/chart/common/common_table.js index 23f1a32b73..32c26e808a 100644 --- a/frontend/src/views/chart/chart/common/common_table.js +++ b/frontend/src/views/chart/chart/common/common_table.js @@ -31,6 +31,11 @@ export function getCustomTheme(chart) { fill: DEFAULT_COLOR_CASE.tableFontColor, fontSize: DEFAULT_SIZE.tableTitleFontSize, textAlign: headerAlign + }, + measureText: { + fill: DEFAULT_COLOR_CASE.tableFontColor, + fontSize: DEFAULT_SIZE.tableTitleFontSize, + textAlign: headerAlign } }, rowCell: { @@ -48,6 +53,11 @@ export function getCustomTheme(chart) { fill: DEFAULT_COLOR_CASE.tableFontColor, fontSize: DEFAULT_SIZE.tableTitleFontSize, textAlign: headerAlign + }, + measureText: { + fill: DEFAULT_COLOR_CASE.tableFontColor, + fontSize: DEFAULT_SIZE.tableTitleFontSize, + textAlign: headerAlign } }, colCell: { @@ -65,6 +75,11 @@ export function getCustomTheme(chart) { fill: DEFAULT_COLOR_CASE.tableFontColor, fontSize: DEFAULT_SIZE.tableTitleFontSize, textAlign: headerAlign + }, + measureText: { + fill: DEFAULT_COLOR_CASE.tableFontColor, + fontSize: DEFAULT_SIZE.tableTitleFontSize, + textAlign: headerAlign } }, dataCell: { @@ -82,6 +97,11 @@ export function getCustomTheme(chart) { fill: DEFAULT_COLOR_CASE.tableFontColor, fontSize: DEFAULT_SIZE.tableItemFontSize, textAlign: itemAlign + }, + measureText: { + fill: DEFAULT_COLOR_CASE.tableFontColor, + fontSize: DEFAULT_SIZE.tableItemFontSize, + textAlign: headerAlign } } } @@ -103,24 +123,28 @@ export function getCustomTheme(chart) { theme.cornerCell.cell.verticalBorderColor = b_c theme.cornerCell.bolderText.fill = c.tableFontColor theme.cornerCell.text.fill = c.tableFontColor + theme.cornerCell.measureText.fill = c.tableFontColor theme.rowCell.cell.backgroundColor = h_c theme.rowCell.cell.horizontalBorderColor = b_c theme.rowCell.cell.verticalBorderColor = b_c theme.rowCell.bolderText.fill = c.tableFontColor theme.rowCell.text.fill = c.tableFontColor + theme.rowCell.measureText.fill = c.tableFontColor theme.colCell.cell.backgroundColor = h_c theme.colCell.cell.horizontalBorderColor = b_c theme.colCell.cell.verticalBorderColor = b_c theme.colCell.bolderText.fill = c.tableFontColor theme.colCell.text.fill = c.tableFontColor + theme.colCell.measureText.fill = c.tableFontColor theme.dataCell.cell.backgroundColor = i_c theme.dataCell.cell.horizontalBorderColor = b_c theme.dataCell.cell.verticalBorderColor = b_c theme.dataCell.bolderText.fill = c.tableFontColor theme.dataCell.text.fill = c.tableFontColor + theme.dataCell.measureText.fill = c.tableFontColor } // size if (customAttr.size) { @@ -132,21 +156,29 @@ export function getCustomTheme(chart) { theme.cornerCell.bolderText.textAlign = h_a theme.cornerCell.text.fontSize = parseInt(s.tableTitleFontSize) theme.cornerCell.text.textAlign = h_a + theme.cornerCell.measureText.fontSize = parseInt(s.tableTitleFontSize) + theme.cornerCell.measureText.textAlign = h_a theme.rowCell.bolderText.fontSize = parseInt(s.tableTitleFontSize) theme.rowCell.bolderText.textAlign = h_a theme.rowCell.text.fontSize = parseInt(s.tableTitleFontSize) theme.rowCell.text.textAlign = h_a + theme.rowCell.measureText.fontSize = parseInt(s.tableTitleFontSize) + theme.rowCell.measureText.textAlign = h_a theme.colCell.bolderText.fontSize = parseInt(s.tableTitleFontSize) theme.colCell.bolderText.textAlign = h_a theme.colCell.text.fontSize = parseInt(s.tableTitleFontSize) theme.colCell.text.textAlign = h_a + theme.colCell.measureText.fontSize = parseInt(s.tableTitleFontSize) + theme.colCell.measureText.textAlign = h_a theme.dataCell.bolderText.fontSize = parseInt(s.tableItemFontSize) theme.dataCell.bolderText.textAlign = i_a theme.dataCell.text.fontSize = parseInt(s.tableItemFontSize) theme.dataCell.text.textAlign = i_a + theme.dataCell.measureText.fontSize = parseInt(s.tableItemFontSize) + theme.dataCell.measureText.textAlign = i_a } }