From 1d85b9e3817b81c724b07e9d66832ee8482c6e4f Mon Sep 17 00:00:00 2001 From: BoBoooooo <17746714@qq.com> Date: Fri, 4 Sep 2020 16:24:22 +0800 Subject: [PATCH] =?UTF-8?q?perf(echart):=20=E7=A7=BB=E9=99=A4echart?= =?UTF-8?q?=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 - src/plugins/echarts.ts | 21 --------------------- vue.config.js | 4 ---- 3 files changed, 26 deletions(-) delete mode 100644 src/plugins/echarts.ts diff --git a/package.json b/package.json index 017d3c0..66e6a99 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,6 @@ "core-js": "3.6.5", "crypto-js": "^4.0.0", "dayjs": "1.8.20", - "echarts": "4.8.0", "element-ui": "^2.13.2", "inquirer": "^6.5.2", "jsoneditor": "8.5.3", diff --git a/src/plugins/echarts.ts b/src/plugins/echarts.ts deleted file mode 100644 index 7f1d61d..0000000 --- a/src/plugins/echarts.ts +++ /dev/null @@ -1,21 +0,0 @@ -/* - * @file: 按需引入echarts - * @copyright: NanJing Anshare Tech .Com - * @author: BoBo - * @Date: 2020年03月07 12:30:13 - */ -import echarts from 'echarts/lib/echarts'; - -// 再引入你需要使用的图表类型,标题,提示信息等 -import 'echarts/lib/chart/pie'; -import 'echarts/lib/chart/bar'; -import 'echarts/lib/chart/line'; -import 'echarts/lib/chart/map'; -import 'echarts/lib/chart/heatmap'; -import 'echarts/lib/component/title'; -import 'echarts/lib/component/tooltip'; -import 'echarts/lib/component/legend'; -import 'echarts/lib/component/legendScroll'; -import 'echarts/lib/component/visualMap'; - -export default echarts; diff --git a/vue.config.js b/vue.config.js index 341e677..993ef10 100644 --- a/vue.config.js +++ b/vue.config.js @@ -95,11 +95,9 @@ module.exports = { vuex: 'Vuex', 'vue-router': 'VueRouter', 'element-ui': 'ELEMENT', - echarts: 'echarts', axios: 'axios', lodash: '_', jsoneditor: 'JSONEditor', - gojs: 'go', 'core-js': 'core', }); // 向模板插入资源 @@ -113,10 +111,8 @@ module.exports = { '/element-ui/2.13.0/theme-chalk/index.css', '/axios/0.19.0-beta.1/axios.min.js', '/lodash.js/4.17.11/lodash.min.js', - '/echarts/4.6.0/echarts.min.js', '/jsoneditor/7.0.5/jsoneditor.min.css', '/jsoneditor/7.0.5/jsoneditor.min.js', - '/gojs/2.0.4/go.js', '/core-js/2.6.5/shim.min.js', ], append: false,