diff --git a/frontend/src/components/canvas/utils/style.js b/frontend/src/components/canvas/utils/style.js index 0161e10091..fba57c474f 100644 --- a/frontend/src/components/canvas/utils/style.js +++ b/frontend/src/components/canvas/utils/style.js @@ -130,6 +130,9 @@ export const customAttrTrans = { }, 'slider': [ 'fontSize' + ], + 'graphic': [ + 'fontSize' ] } export const customStyleTrans = { diff --git a/frontend/src/views/chart/view/ChartEdit.vue b/frontend/src/views/chart/view/ChartEdit.vue index 0d5faf0cf6..e5f715844e 100644 --- a/frontend/src/views/chart/view/ChartEdit.vue +++ b/frontend/src/views/chart/view/ChartEdit.vue @@ -1955,7 +1955,7 @@ export default { return this.$store.state.panel.panelInfo }, showCfg() { - return includesAny(this.view.type, 'bar', 'line', 'area', 'gauge', 'table') || + return includesAny(this.view.type, 'bar', 'line', 'area', 'gauge', 'table') && this.view.type !== 'race-bar' || equalsAny(this.view.type, 'text', 'label', 'map', 'buddle-map') }, showSeniorCfg() {