vue项目中引入
npm install echarts --save
npm i echarts-liquidfill@2.0.2 --save
在主文件入口js文件
import echarts from 'echarts';
import 'echarts-liquidfill';
//可以在别的组件中使用this.$echarts直接使用
Vue.prototype.$echarts = echarts;
mounted(){
this.setflow("flow","#104277","#58A2F0","#8BD7FF",0.5