From 1adc64fab618fee246dbbe602bc6ed7553e06e44 Mon Sep 17 00:00:00 2001 From: haoxr <1490493387@qq.com> Date: Wed, 1 Mar 2023 21:58:11 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BD=BF=E7=94=A8VueUse=E7=9A=84us?= =?UTF-8?q?eTransition=E5=87=BD=E6=95=B0=E6=9B=BF=E6=8D=A2vue-countup-v3?= =?UTF-8?q?=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: 5295b103fc91e2c205f1f16c286a2c83e8ad97dc --- package.json | 2 -- src/views/dashboard/index.vue | 48 ++++++++++++++++++++++++++++++----- 2 files changed, 41 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 3ff52cf7..e30adf26 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,6 @@ "@wangeditor/editor": "^5.0.0", "@wangeditor/editor-for-vue": "^5.1.10", "axios": "^1.2.2", - "default-passive-events": "^2.0.0", "echarts": "^5.2.2", "element-plus": "^2.2.32", "js-cookie": "^3.0.1", @@ -27,7 +26,6 @@ "screenfull": "^6.0.0", "sortablejs": "^1.14.0", "vue": "^3.2.45", - "vue-countup-v3": "^1.1.0", "vue-i18n": "^9.1.9", "vue-router": "^4.1.6" }, diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 896eef68..3114f79f 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -3,15 +3,15 @@ export default { name: 'Dashboard' }; @@ -92,7 +126,7 @@ const greetings = computed(() => { 访问数 - + {{ Math.round(visitCountOutput) }} @@ -109,7 +143,7 @@ const greetings = computed(() => { 消息数 - + {{ Math.round(messageCountOutput) }} @@ -125,7 +159,7 @@ const greetings = computed(() => { 收入金额 - + {{ Math.round(amountOutput) }} @@ -140,7 +174,7 @@ const greetings = computed(() => { 订单数 - + {{ Math.round(orderCountOutput) }}