引入echarts 可以全局引入: import * as echarts from "echarts" /* 之前vue2 */ Vue.prototype.$ecahrt = echarts /* vue3 */ app.config.globalProperties.$echarts = echarts 1. 2. 3. 4. 5. 6. 7. 也可以直接在绘制页面内按需引用。 引入需要绘制的地图数据 json 或 js 文件,本文使用的是 ...
引入echarts 可以全局引入: import * as echarts from "echarts" /* 之前vue2 */ Vue.prototype.$ecahrt = echarts /* vue3 */ app.config.globalProperties.$echarts = echarts 1. 2. 3. 4. 5. 6. 7. 也可以直接在绘制页面内按需引用。 引入需要绘制的地图数据 json 或 js 文件,本文使用的是 ...