From 73ce53a388cca886903f8c054b3febd3091c5740 Mon Sep 17 00:00:00 2001 From: Soybean Date: Wed, 31 Aug 2022 22:57:53 +0800 Subject: [PATCH] =?UTF-8?q?build(projects):=20=E5=8D=87=E7=BA=A7=E4=BE=9D?= =?UTF-8?q?=E8=B5=96=EF=BC=8C=E4=BF=AE=E5=A4=8DTS=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 20 +++++++++---------- src/composables/echarts.ts | 2 +- .../analysis/components/TopChart/index.vue | 5 +++-- src/views/plugin/charts/antv/index.vue | 12 +++++------ src/views/plugin/charts/echarts/index.vue | 15 +++++++------- 5 files changed, 28 insertions(+), 26 deletions(-) diff --git a/package.json b/package.json index 4c56ed009..d32d7b79a 100644 --- a/package.json +++ b/package.json @@ -65,14 +65,14 @@ "echarts": "^5.3.3", "form-data": "^4.0.0", "lodash-es": "^4.17.21", - "naive-ui": "2.32.2", + "naive-ui": "2.33.1", "pinia": "^2.0.21", "print-js": "^1.6.0", "qs": "^6.11.0", "swiper": "^8.3.2", "ua-parser-js": "^1.0.2", "vditor": "^3.8.17", - "vue": "3.2.37", + "vue": "3.2.38", "vue-router": "^4.1.5", "wangeditor": "^4.7.15", "xgplayer": "^2.31.7" @@ -81,12 +81,12 @@ "@amap/amap-jsapi-types": "^0.0.8", "@commitlint/cli": "^17.1.2", "@commitlint/config-conventional": "^17.1.0", - "@iconify/json": "^2.1.100", + "@iconify/json": "^2.1.101", "@iconify/vue": "^3.2.1", "@milahu/patch-package": "^6.4.14", "@types/bmapgl": "^0.0.5", "@types/crypto-js": "^4.1.1", - "@types/node": "^18.7.13", + "@types/node": "^18.7.14", "@types/qs": "^6.9.7", "@types/ua-parser-js": "^0.7.36", "@vitejs/plugin-vue": "^3.0.3", @@ -96,28 +96,28 @@ "cz-conventional-changelog": "^3.3.0", "cz-customizable": "^6.9.2", "eslint": "^8.23.0", - "eslint-config-soybeanjs-vue": "^0.0.9", + "eslint-config-soybeanjs-vue": "^0.0.10", "husky": "^8.0.1", "lint-staged": "^13.0.3", "mockjs": "^1.1.0", "postinstall-postinstall": "^2.1.0", "rollup-plugin-visualizer": "^5.8.0", - "sass": "^1.54.5", + "sass": "^1.54.7", "standard-version": "^9.5.0", - "typescript": "4.7.4", + "typescript": "4.8.2", "unocss": "^0.45.13", "unplugin-icons": "^0.14.8", "unplugin-vue-components": "0.22.4", - "unplugin-vue-define-options": "^0.11.0", + "unplugin-vue-define-options": "^0.11.1", "utility-types": "^3.10.0", "vite": "^3.0.9", "vite-plugin-compression": "^0.5.1", "vite-plugin-html": "^3.2.0", "vite-plugin-mock": "^2.9.6", "vite-plugin-progress": "^0.0.3", - "vite-plugin-pwa": "^0.12.3", + "vite-plugin-pwa": "^0.12.4", "vite-plugin-svg-icons": "^2.0.1", - "vue-tsc": "^0.40.4" + "vue-tsc": "^0.40.5" }, "lint-staged": { "*.{vue,js,jsx,ts,tsx,json}": "eslint --fix" diff --git a/src/composables/echarts.ts b/src/composables/echarts.ts index d75ac65b5..98e31da85 100644 --- a/src/composables/echarts.ts +++ b/src/composables/echarts.ts @@ -81,7 +81,7 @@ export function useEcharts( ) { const theme = useThemeStore(); - const domRef = ref(null); + const domRef = ref(); const initialSize = { width: 0, height: 0 }; const { width, height } = useElementSize(domRef, initialSize); diff --git a/src/views/dashboard/analysis/components/TopChart/index.vue b/src/views/dashboard/analysis/components/TopChart/index.vue index a0592caac..54669c2b1 100644 --- a/src/views/dashboard/analysis/components/TopChart/index.vue +++ b/src/views/dashboard/analysis/components/TopChart/index.vue @@ -32,6 +32,7 @@ diff --git a/src/views/plugin/charts/antv/index.vue b/src/views/plugin/charts/antv/index.vue index 34b308669..c7617e82f 100644 --- a/src/views/plugin/charts/antv/index.vue +++ b/src/views/plugin/charts/antv/index.vue @@ -26,12 +26,12 @@ import { onMounted, ref } from 'vue'; import DataSet from '@antv/data-set'; import { Chart } from '@antv/g2'; -const pieRef = ref(null); -const lineRef = ref(null); -const barRef = ref(null); -const scatterRef = ref(null); -const areaRef = ref(null); -const radarRef = ref(null); +const pieRef = ref(); +const lineRef = ref(); +const barRef = ref(); +const scatterRef = ref(); +const areaRef = ref(); +const radarRef = ref(); function renderPieChart() { if (!pieRef.value) return; diff --git a/src/views/plugin/charts/echarts/index.vue b/src/views/plugin/charts/echarts/index.vue index fff7984b4..7ad4a2cd4 100644 --- a/src/views/plugin/charts/echarts/index.vue +++ b/src/views/plugin/charts/echarts/index.vue @@ -26,6 +26,7 @@