fix(图表): 修复切换图表类型后,最值没有隐藏的问题
This commit is contained in:
parent
f3a223274d
commit
6cc6f9bbb8
@ -888,6 +888,14 @@ const onTypeChange = (render, type) => {
|
||||
) {
|
||||
removeItems('drillFields')
|
||||
}
|
||||
if (!['line', 'area', 'bar', 'bar-group'].includes(view.value.type)) {
|
||||
// 清除图表标注
|
||||
const pointElement = document.getElementById('point_' + view.value.id)
|
||||
if (pointElement) {
|
||||
pointElement.remove()
|
||||
pointElement.parentNode?.removeChild(pointElement)
|
||||
}
|
||||
}
|
||||
}
|
||||
curComponent.value.innerType = type
|
||||
calcData(view.value, true)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user