forked from github/dataease
fix(图表): 表格隐藏表头之后去除白线
This commit is contained in:
parent
683490adba
commit
3c9c10141a
@ -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