diff --git a/core/core-frontend/src/views/chart/components/js/panel/common/common_table.ts b/core/core-frontend/src/views/chart/components/js/panel/common/common_table.ts index a13fecd54e..32bf06f53f 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/common/common_table.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/common/common_table.ts @@ -52,7 +52,8 @@ export function getCustomTheme(chart: Chart): S2Theme { }, splitLine: { horizontalBorderColor: borderColor, - verticalBorderColor: borderColor + verticalBorderColor: borderColor, + horizontalBorderWidth: 0 }, cornerCell: { cell: { @@ -276,7 +277,7 @@ export function getCustomTheme(chart: Chart): S2Theme { } merge(theme, tmpTheme) } - if (tableHeader.showVerticalBorder === false) { + if (tableHeader.showVerticalBorder === false && tableHeader.showTableHeader !== false) { const tmpTheme: S2Theme = { splitLine: { verticalBorderColor: tableHeaderBgColor, @@ -287,6 +288,12 @@ export function getCustomTheme(chart: Chart): S2Theme { verticalBorderColor: tableHeaderBgColor, verticalBorderWidth: 0 } + }, + cornerCell: { + cell: { + verticalBorderColor: tableHeaderBgColor, + verticalBorderWidth: 0 + } } } merge(theme, tmpTheme)