From dc0ea7703f915e8970e040ce93474abfe6dada7f Mon Sep 17 00:00:00 2001 From: wisonic Date: Wed, 6 Nov 2024 17:12:41 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=98=8E=E7=BB=86=E8=A1=A8=E6=9D=A1=E4=BB=B6=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E5=88=97=E5=AD=97=E4=BD=93=E9=80=8F=E6=98=8E=E5=BA=A6=E4=B8=8D?= =?UTF-8?q?=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/chart/components/js/panel/common/common_table.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 82983fd5c8..aa461ec2d1 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 @@ -564,7 +564,7 @@ export function getConditions(chart: Chart) { if (conditions?.length > 0) { const { tableCell, basicStyle, tableHeader } = parseJson(chart.customAttr) const enableTableCrossBG = tableCell.enableTableCrossBG - const valueColor = tableCell.tableFontColor + const valueColor = isAlphaColor(tableCell.tableFontColor) ? tableCell.tableFontColor : hexColorToRGBA(tableCell.tableFontColor, basicStyle.alpha) const valueBgColor = enableTableCrossBG ? null : isAlphaColor(tableCell.tableItemBgColor) @@ -629,7 +629,7 @@ export function getConditions(chart: Chart) { } export function mappingColor(value, defaultColor, field, type, filedValueMap?, rowData?) { - let color + let color = null for (let i = 0; i < field.conditions.length; i++) { let flag = false const t = field.conditions[i]