From 6438399f33ecbaf45279f8e5ab1a867f24f8b3f9 Mon Sep 17 00:00:00 2001 From: wisonic-s <51065359+wisonic-s@users.noreply.github.com> Date: Wed, 12 Mar 2025 20:45:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=B1=87=E6=80=BB=E8=A1=A8=E5=BA=8F=E5=88=97=E5=8F=B7=E6=96=91?= =?UTF-8?q?=E9=A9=AC=E7=BA=B9=E6=97=A0=E6=95=88=20(#15332)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chart/components/js/panel/charts/table/table-normal.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-normal.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-normal.ts index 3a8bf91d34..d7c5ff2138 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-normal.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-normal.ts @@ -16,6 +16,7 @@ import { S2Options, ScrollbarPositionType, TableColCell, + TableDataCell, TableSheet, ViewMeta } from '@antv/s2' @@ -172,6 +173,9 @@ export class TableNormal extends S2ChartView { col.value = indexLabel } } + s2Options.dataCell = meta => { + return new TableDataCell(meta, meta.spreadsheet) + } } // tooltip this.configTooltip(chart, s2Options)