From a96d15a5b4ffbe81c4226f341573ac0e6eaeb8fe Mon Sep 17 00:00:00 2001 From: Qiuxia Fan Date: Tue, 12 Jul 2022 14:58:18 +0800 Subject: [PATCH] remove unuse lib --- package-lock.json | 22 +--------------------- package.json | 3 +-- src/hooks/useEcharts.ts | 2 -- src/utils/echarts.ts | 9 +-------- 4 files changed, 3 insertions(+), 33 deletions(-) diff --git a/package-lock.json b/package-lock.json index 217941fd..59d7203e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,8 +22,7 @@ "vue-grid-layout": "^3.0.0-beta1", "vue-i18n": "^9.1.9", "vue-router": "^4.0.0-0", - "vue-types": "^4.1.1", - "vuex": "^4.0.0-0" + "vue-types": "^4.1.1" }, "devDependencies": { "@types/d3": "^7.1.0", @@ -27338,17 +27337,6 @@ "vue": "^2.0.0 || ^3.0.0" } }, - "node_modules/vuex": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/vuex/-/vuex-4.0.2.tgz", - "integrity": "sha512-M6r8uxELjZIK8kTKDGgZTYX/ahzblnzC4isU1tpmEuOIIKmV+TRdc+H4s8ds2NuZ7wpUTdGRzJRtoj+lI+pc0Q==", - "dependencies": { - "@vue/devtools-api": "^6.0.0-beta.11" - }, - "peerDependencies": { - "vue": "^3.0.2" - } - }, "node_modules/w3c-hr-time": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", @@ -50552,14 +50540,6 @@ "is-plain-object": "5.0.0" } }, - "vuex": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/vuex/-/vuex-4.0.2.tgz", - "integrity": "sha512-M6r8uxELjZIK8kTKDGgZTYX/ahzblnzC4isU1tpmEuOIIKmV+TRdc+H4s8ds2NuZ7wpUTdGRzJRtoj+lI+pc0Q==", - "requires": { - "@vue/devtools-api": "^6.0.0-beta.11" - } - }, "w3c-hr-time": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", diff --git a/package.json b/package.json index 040092aa..2877874e 100644 --- a/package.json +++ b/package.json @@ -24,8 +24,7 @@ "vue-grid-layout": "^3.0.0-beta1", "vue-i18n": "^9.1.9", "vue-router": "^4.0.0-0", - "vue-types": "^4.1.1", - "vuex": "^4.0.0-0" + "vue-types": "^4.1.1" }, "devDependencies": { "@types/d3": "^7.1.0", diff --git a/src/hooks/useEcharts.ts b/src/hooks/useEcharts.ts index 01f7d7ed..24698653 100644 --- a/src/hooks/useEcharts.ts +++ b/src/hooks/useEcharts.ts @@ -18,7 +18,6 @@ import { BarSeriesOption, LineSeriesOption, HeatmapSeriesOption, - PieSeriesOption, SankeySeriesOption, } from "echarts/charts"; import { @@ -46,7 +45,6 @@ export type ECOption = echarts.ComposeOption< | DatasetComponentOption | LegendComponentOption | HeatmapSeriesOption - | PieSeriesOption | SankeySeriesOption >; diff --git a/src/utils/echarts.ts b/src/utils/echarts.ts index 9103f912..59fc2874 100644 --- a/src/utils/echarts.ts +++ b/src/utils/echarts.ts @@ -16,13 +16,7 @@ */ import * as echarts from "echarts/core"; -import { - BarChart, - LineChart, - PieChart, - HeatmapChart, - SankeyChart, -} from "echarts/charts"; +import { BarChart, LineChart, HeatmapChart, SankeyChart } from "echarts/charts"; import { TitleComponent, @@ -43,7 +37,6 @@ echarts.use([ GridComponent, BarChart, LineChart, - PieChart, HeatmapChart, SankeyChart, SVGRenderer,