feat:升级echarts到5.0.1

This commit is contained in:
wangwenrui
2021-01-29 18:17:52 +08:00
parent a0185ec4e8
commit 22db5d042f
5 changed files with 30 additions and 5 deletions

View File

@@ -181,7 +181,7 @@
<script>
import axios from 'axios';
import echarts from 'echarts';
import * as echarts from 'echarts';
import bus from '../../libs/bus';
import loading from "../common/loading";
import chartDataFormat from './chartDataFormat';
@@ -657,6 +657,10 @@
textStyle:{
color:'#000'
},
axisPointer:{
snap:false,
animation:false,
},
extraCssText:'z-index:1000;',
/*enterable:true, 导致tooltip不消失显示多个tooltip*/
position:function(point,params,dom,rect,size){
@@ -958,6 +962,10 @@
}
},
tooltip: {
axisPointer:{
snap:false,
animation:false,
},
formatter:function(params){
let str = `<div>`;
let sum = 0;
@@ -1121,6 +1129,10 @@
},
tooltip: {
axisPointer:{
snap:false,
animation:false,
},
formatter:function(params){
let str = `<div>`;
let sum = 0;