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