Skip to content

Commit

Permalink
fix(视图-横向百分比条形图): 修复横向百分比条形图提示隐藏不生效
Browse files Browse the repository at this point in the history
修复横向百分比条形图提示隐藏不生效,去除无用的配置项
  • Loading branch information
wisonic-s committed Nov 30, 2022
1 parent 6e38a0b commit 4c5a938
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion frontend/src/views/chart/chart/common/common_antv.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 0 additions & 10 deletions frontend/src/views/chart/chart/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -1179,10 +1178,6 @@ export const TYPE_CONFIGS = [
'gradient',
'alpha'
],
'size-selector-ant-v': [
'barDefault',
'barGap'
],
'label-selector-ant-v': [
'show',
'fontSize',
Expand Down Expand Up @@ -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',
Expand All @@ -1494,10 +1488,6 @@ export const TYPE_CONFIGS = [
'gradient',
'alpha'
],
'size-selector-ant-v': [
'barDefault',
'barGap'
],
'label-selector-ant-v': [
'show',
'fontSize',
Expand Down

0 comments on commit 4c5a938

Please sign in to comment.