Merge pull request #9188 from ulleo/dev-v2

fix(图表): 修复双轴图右轴不能隐藏问题
This commit is contained in:
ulleo 2024-04-18 13:44:12 +08:00 committed by GitHub
commit 841daecafe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -116,11 +116,14 @@ const onChangeXAxisForm = (val, prop) => {
}
const onChangeYAxisForm = (val, prop) => {
if (prop === 'show' && chart.value.type === 'chart-mix') {
chart.value.customStyle.yAxisExt.show = val.show
onChangeYAxisExtForm(chart.value.customStyle.yAxisExt, 'show')
}
state.initReady && emit('onChangeYAxisForm', val, prop)
}
const onChangeYAxisExtForm = (val, prop) => {
console.log(val, prop)
state.initReady && emit('onChangeYAxisExtForm', val, prop)
}

View File

@ -49,7 +49,6 @@ const changeAxisStyle = (val, prop) => {
}
const changeSubAxisStyle = (val, prop) => {
console.log(val, prop)
emit('onChangeYAxisExtForm', val, prop)
}