vue項目中Echarts圖表的使用

1、執行 npm install echarts --save-dev 進行全局安裝; 2、在main.js中全局配置 import echarts from ‘echarts’ Vue.prototype.$echarts = echarts 3、封裝定義組件 4、在相關頁面引用 5、效果展示
相關文章
相關標籤/搜索