From 4c5a9382380020ff7c2ef1c9f07e3e057b573c8c Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Wed, 30 Nov 2022 19:27:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=A7=86=E5=9B=BE-=E6=A8=AA=E5=90=91?= =?UTF-8?q?=E7=99=BE=E5=88=86=E6=AF=94=E6=9D=A1=E5=BD=A2=E5=9B=BE):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=A8=AA=E5=90=91=E7=99=BE=E5=88=86=E6=AF=94?= =?UTF-8?q?=E6=9D=A1=E5=BD=A2=E5=9B=BE=E6=8F=90=E7=A4=BA=E9=9A=90=E8=97=8F?= =?UTF-8?q?=E4=B8=8D=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复横向百分比条形图提示隐藏不生效,去除无用的配置项 --- frontend/src/views/chart/chart/common/common_antv.js | 2 +- frontend/src/views/chart/chart/util.js | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/frontend/src/views/chart/chart/common/common_antv.js b/frontend/src/views/chart/chart/common/common_antv.js index 580d202899..32a1e2f091 100644 --- a/frontend/src/views/chart/chart/common/common_antv.js +++ b/frontend/src/views/chart/chart/common/common_antv.js @@ -378,7 +378,7 @@ export function getTooltip(chart) { } else { // 百分比堆叠柱状图隐藏 tooltip 设置 show 为 false 或者直接设置 tooltip 为 false 都无效,会变成分组显示, // 需要将容器(container)或者内容框(showContent)设置为 false 或者 null 才可以隐藏 - if (chart.type === 'percentage-bar-stack') { + if (chart.type.includes('percentage')) { tooltip.showContent = false } else { tooltip = false diff --git a/frontend/src/views/chart/chart/util.js b/frontend/src/views/chart/chart/util.js index f651796cf9..604118ac6c 100644 --- a/frontend/src/views/chart/chart/util.js +++ b/frontend/src/views/chart/chart/util.js @@ -1163,7 +1163,6 @@ export const TYPE_CONFIGS = [ icon: 'percentage-bar-stack-horizontal', properties: [ 'color-selector', - 'size-selector-ant-v', 'label-selector-ant-v', 'tooltip-selector-ant-v', 'x-axis-selector-ant-v', @@ -1179,10 +1178,6 @@ export const TYPE_CONFIGS = [ 'gradient', 'alpha' ], - 'size-selector-ant-v': [ - 'barDefault', - 'barGap' - ], 'label-selector-ant-v': [ 'show', 'fontSize', @@ -1478,7 +1473,6 @@ export const TYPE_CONFIGS = [ icon: 'percentage-bar-stack', properties: [ 'color-selector', - 'size-selector-ant-v', 'label-selector-ant-v', 'tooltip-selector-ant-v', 'x-axis-selector-ant-v', @@ -1494,10 +1488,6 @@ export const TYPE_CONFIGS = [ 'gradient', 'alpha' ], - 'size-selector-ant-v': [ - 'barDefault', - 'barGap' - ], 'label-selector-ant-v': [ 'show', 'fontSize',