fix(图表): 修复图表在没有配置整体字体时,配置字体大小无效的问题

This commit is contained in:
jianneng-fit2cloud
2024-12-10 17:53:37 +08:00
parent 978cee8ff6
commit 7e8ad0eda6

View File

@@ -232,7 +232,7 @@ const renderChart = async (view, callback?) => {
const chart = deepCopy({
...defaultsDeep(view, cloneDeep(BASE_VIEW_CONFIG)),
data: chartData.value,
fontFamily: props.fontFamily
...(props.fontFamily && props.fontFamily !== 'inherit' ? { fontFamily: props.fontFamily } : {})
})
const chartView = chartViewManager.getChartView(view.render, view.type)
recursionTransObj(customAttrTrans, chart.customAttr, scale.value, terminal.value)