From 3c9c10141ac508e375a744333a2220196fc0a68e Mon Sep 17 00:00:00 2001 From: wisonic Date: Tue, 3 Sep 2024 18:59:17 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E9=9A=90=E8=97=8F=E8=A1=A8=E5=A4=B4=E4=B9=8B=E5=90=8E=E5=8E=BB?= =?UTF-8?q?=E9=99=A4=E7=99=BD=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/chart/components/js/panel/charts/table/table-info.ts | 3 +++ .../chart/components/js/panel/charts/table/table-normal.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-info.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-info.ts index 144635aaf8..4d30fdca5b 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-info.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-info.ts @@ -176,6 +176,9 @@ export class TableInfo extends S2ChartView { // 隐藏表头,保留顶部的分割线, 禁用表头横向 resize if (customAttr.tableHeader.showTableHeader === false) { s2Options.style.colCfg.height = 1 + if (customAttr.tableCell.showHorizonBorder === false) { + s2Options.style.colCfg.height = 0 + } s2Options.interaction = { resize: { colCellVertical: false 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 772e414548..2509fcee7e 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 @@ -157,6 +157,9 @@ export class TableNormal extends S2ChartView { // 隐藏表头,保留顶部的分割线, 禁用表头横向 resize if (customAttr.tableHeader.showTableHeader === false) { s2Options.style.colCfg.height = 1 + if (customAttr.tableCell.showHorizonBorder === false) { + s2Options.style.colCfg.height = 0 + } s2Options.interaction = { resize: { colCellVertical: false