forked from github/dataease
Merge pull request #11980 from dataease/pr@dev-v2@fix_table_header_white_line
fix(图表): 表格隐藏表头之后去除白线
This commit is contained in:
commit
c395bc8588
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user