Merge pull request #13184 from dataease/pr@dev-v2@fix_pivot_row_hrader_border

fix(图表): 修复透视表行头边框颜色不生效
This commit is contained in:
wisonic-s 2024-11-06 19:22:29 +08:00 committed by GitHub
commit 6ab818e256
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -353,7 +353,10 @@ export class TablePivot extends S2ChartView<PivotSheet> {
if (!isAlphaColor(tableHeaderBgColor)) {
tableHeaderBgColor = hexColorToRGBA(tableHeaderBgColor, basicStyle.alpha)
}
const tableBorderColor = hexColorToRGBA(basicStyle.tableBorderColor, basicStyle.alpha)
let tableBorderColor = basicStyle.tableBorderColor
if (!isAlphaColor(tableBorderColor)) {
tableBorderColor = hexColorToRGBA(tableHeaderBgColor, basicStyle.alpha)
}
const tableHeaderFontColor = hexColorToRGBA(tableHeader.tableHeaderFontColor, basicStyle.alpha)
const fontStyle = tableHeader.isItalic ? 'italic' : 'normal'
const fontWeight = tableHeader.isBolder === false ? 'normal' : 'bold'