fix(图表): 表格隐藏表头之后去除白线

This commit is contained in:
wisonic 2024-09-03 18:59:17 +08:00
parent 683490adba
commit 3c9c10141a
2 changed files with 6 additions and 0 deletions

View File

@ -176,6 +176,9 @@ export class TableInfo extends S2ChartView<TableSheet> {
// 隐藏表头保留顶部的分割线, 禁用表头横向 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

View File

@ -157,6 +157,9 @@ export class TableNormal extends S2ChartView<TableSheet> {
// 隐藏表头保留顶部的分割线, 禁用表头横向 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