From c41e602f23db436165b6acd369232252a42e9cd3 Mon Sep 17 00:00:00 2001 From: wisonic Date: Tue, 3 Sep 2024 18:07:40 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E8=83=8C=E6=99=AF=E9=A2=9C=E8=89=B2=E9=94=99=E8=AF=AF=20#11652?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/chart/components/js/panel/common/common_table.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/chart/components/js/panel/common/common_table.ts b/core/core-frontend/src/views/chart/components/js/panel/common/common_table.ts index 1a40a966be..0466a698ac 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/common/common_table.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/common/common_table.ts @@ -505,9 +505,13 @@ export function getConditions(chart: Chart) { const valueColor = tableCell.tableFontColor const valueBgColor = enableTableCrossBG ? null + : isAlphaColor(tableCell.tableItemBgColor) + ? tableCell.tableItemBgColor : hexColorToRGBA(tableCell.tableItemBgColor, basicStyle.alpha) const headerValueColor = tableHeader.tableHeaderFontColor - const headerValueBgColor = hexColorToRGBA(tableHeader.tableHeaderBgColor, basicStyle.alpha) + const headerValueBgColor = isAlphaColor(tableHeader.tableHeaderBgColor) + ? tableHeader.tableHeaderBgColor + : hexColorToRGBA(tableHeader.tableHeaderBgColor, basicStyle.alpha) for (let i = 0; i < conditions.length; i++) { const field = conditions[i] let defaultValueColor = valueColor