fix(视图-横向百分比条形图): 修复横向百分比条形图提示隐藏不生效

修复横向百分比条形图提示隐藏不生效,去除无用的配置项
This commit is contained in:
wisonic-s 2022-11-30 19:27:27 +08:00
parent 6e38a0b0eb
commit 4c5a938238
2 changed files with 1 additions and 11 deletions

View File

@ -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

View File

@ -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',