已解决;
可以在 tooltip 中设置button 块添加点击事件;
Vue.component('server_qgfwzs', {
data() {
return {
provinceCode: '',
list: [],
}
},
mounted() {
this.mychart = echarts.init(document.getElementById('server_map'));
let _this = this;
var option = {
tooltip: {
trigger: 'item',
formatter: function (params) {
return (
'中国 ' + '查 看>' + '
' +
params.name + ' ' + params.value
);
},
enterable: true,
alwaysShowContent: true,
position: function (poi