From e616459e25f6ab575599c73465248c16ef45e60e Mon Sep 17 00:00:00 2001 From: ulleo Date: Thu, 17 Aug 2023 16:17:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81ECharts=E6=8E=92?= =?UTF-8?q?=E5=BA=8F=E6=9F=B1=E7=8A=B6=E5=9B=BE=E6=8F=92=E4=BB=B6=20graphi?= =?UTF-8?q?c=E5=AD=97=E4=BD=93=E9=A2=9C=E8=89=B2=E4=B8=8E=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/canvas/utils/style.js | 3 +++ frontend/src/views/chart/view/ChartEdit.vue | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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() {