Merge pull request #13947 from dataease/pr@dev-v2@chart-table-fix
Some checks are pending
Typos Check / Spell Check with Typos (push) Waiting to run

fix(图表): 修复表格类图表在没有配置整体字体时,配置字体大小无效的问题
This commit is contained in:
jianneng-fit2cloud 2024-12-10 17:35:07 +08:00 committed by GitHub
commit 978cee8ff6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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'