feat: 隐藏对称柱状图的纵轴名称设置

This commit is contained in:
ulleo 2023-11-20 17:35:10 +08:00
parent e37026158f
commit 8f00d8678c
2 changed files with 4 additions and 1 deletions

View File

@ -1602,7 +1602,6 @@ export const TYPE_CONFIGS = [
'x-axis-selector-ant-v': [ 'x-axis-selector-ant-v': [
'show', 'show',
'position', 'position',
'nameTextStyle',
'splitLine', 'splitLine',
'axisForm', 'axisForm',
'axisLabel' 'axisLabel'

View File

@ -2160,6 +2160,10 @@ export default {
type: 'warning' type: 'warning'
}) })
this.view.xaxis = [] this.view.xaxis = []
} else if (newVal.type === 'bidirectional-bar') {
if (this.view.customStyle && this.view.customStyle.xAxis && this.view.customStyle.xAxis.name) {
this.view.customStyle.xAxis.name = undefined
}
} }
if (newVal.type !== oldVal.type) { if (newVal.type !== oldVal.type) {
this.view.senior.threshold = {} this.view.senior.threshold = {}