Merge pull request #13947 from dataease/pr@dev-v2@chart-table-fix

fix(图表): 修复表格类图表在没有配置整体字体时,配置字体大小无效的问题
This commit is contained in:
jianneng-fit2cloud
2024-12-10 17:35:07 +08:00
committed by GitHub

View File

@@ -65,7 +65,7 @@ export function getCustomTheme(chart: Chart): S2Theme {
)
const scrollBarColor = DEFAULT_BASIC_STYLE.tableScrollBarColor
const scrollBarHoverColor = resetRgbOpacity(scrollBarColor, 3)
const textFontFamily = chart.fontFamily ? chart.fontFamily : FONT_FAMILY
const textFontFamily = chart.fontFamily && chart.fontFamily !== 'inherit' ? chart.fontFamily : FONT_FAMILY
const theme: S2Theme = {
background: {
color: '#00000000'