From 7c8ae6434f0b13a22438d07c116d743664be26f9 Mon Sep 17 00:00:00 2001 From: yang <30883395+webvs2@users.noreply.github.com> Date: Tue, 15 Nov 2022 16:46:57 +0800 Subject: [PATCH 1/5] Modifying Spaces Modifying Spaces --- packages/statistic/src/main.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/statistic/src/main.vue b/packages/statistic/src/main.vue index 1d7a6130cf..4c9995417f 100644 --- a/packages/statistic/src/main.vue +++ b/packages/statistic/src/main.vue @@ -97,8 +97,7 @@ export default { let { timeIndices, countDown, dispose} = this; timeIndices ? countDown() : dispose(); }, - magnification(num, _mulriple = 1000, _groupSeparator = ',') { - // magnification factor + magnification(num, _mulriple = 1000, _groupSeparator = ',') { // magnification factor const level = String(_mulriple).length - 1; const reg = new RegExp(`\\d{1,${level}}(?=(\\d{${level}})+$)`, 'g'); const result = String(num) From ab1018383bc2ef0eef53d9294dc830bec77bf11d Mon Sep 17 00:00:00 2001 From: yang <2636098325@qq.com> Date: Thu, 17 Nov 2022 16:22:18 +0800 Subject: [PATCH 2/5] =?UTF-8?q?statistic=EF=BC=9AUpdated=20countdown=20fea?= =?UTF-8?q?ture=20to=20localize=20lodash?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/statistic/src/main.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/statistic/src/main.vue b/packages/statistic/src/main.vue index 4c9995417f..1d7a6130cf 100644 --- a/packages/statistic/src/main.vue +++ b/packages/statistic/src/main.vue @@ -97,7 +97,8 @@ export default { let { timeIndices, countDown, dispose} = this; timeIndices ? countDown() : dispose(); }, - magnification(num, _mulriple = 1000, _groupSeparator = ',') { // magnification factor + magnification(num, _mulriple = 1000, _groupSeparator = ',') { + // magnification factor const level = String(_mulriple).length - 1; const reg = new RegExp(`\\d{1,${level}}(?=(\\d{${level}})+$)`, 'g'); const result = String(num) From f05007765dc3bbc56358cd7a8db872002090024c Mon Sep 17 00:00:00 2001 From: yang <2636098325@qq.com> Date: Tue, 6 Dec 2022 11:20:21 +0800 Subject: [PATCH 3/5] statistic: optimize --- packages/statistic/src/main.vue | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/packages/statistic/src/main.vue b/packages/statistic/src/main.vue index 1d7a6130cf..e52a7239d3 100644 --- a/packages/statistic/src/main.vue +++ b/packages/statistic/src/main.vue @@ -1,6 +1,6 @@