Merge pull request #7874 from ulleo/dev-v2

fix(图表): 带钻取等操作的图表切换图表为水波图显示依然可以钻取
This commit is contained in:
ulleo 2024-01-29 14:23:30 +08:00 committed by GitHub
commit 54a3827646
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -637,6 +637,13 @@ const onTypeChange = (render, type) => {
emitter.emit('removeAxis', { axisType: 'yAxis', axis, editType: 'remove' })
}
}
if (
view.value.type === 'liquid' ||
view.value.type === 'gauge' ||
view.value.type === 'indicator'
) {
removeItems('drillFields')
}
}
curComponent.value.innerType = type
calcData(view.value, true)