Merge pull request #11980 from dataease/pr@dev-v2@fix_table_header_white_line

fix(图表): 表格隐藏表头之后去除白线
This commit is contained in:
wisonic-s 2024-09-03 19:00:33 +08:00 committed by GitHub
commit c395bc8588
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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