fix(地图): 未开启标签但开启了提示二者会被同时触发

This commit is contained in:
fit2cloud-chenyw 2022-10-27 19:22:45 +08:00
parent 9ceb017d2a
commit 60205b25ed
2 changed files with 4 additions and 1 deletions

View File

@ -889,7 +889,9 @@ export const BASE_MAP = {
},
emphasis: {
label: {
show: false
}
}
}
}

View File

@ -95,6 +95,7 @@ export function baseMapOption(chart_option, chart, themeStyle, curAreaCode) {
chart_option.series[0].label.shadowBlur = 2
chart_option.series[0].label.showdowColor = customAttr.label.shadowColor
}
chart_option.series[0].itemStyle.emphasis.label.show = customAttr.label.show
}
const valueArr = chart.data.series[0].data
// visualMap