From fa18776b4b40088e9144d8ea529be73c283bdcd5 Mon Sep 17 00:00:00 2001 From: yang <30883395+webvs2@users.noreply.github.com> Date: Fri, 18 Nov 2022 11:03:15 +0800 Subject: [PATCH] =?UTF-8?q?statistic=EF=BC=9AUpdated=20countdown=20feature?= =?UTF-8?q?=20to=20localize=20lodash=20=20=20Closes=20=20#22260=20=20Close?= =?UTF-8?q?s#22258=20(#22263)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * statistic:Fixed the thousandth bit bug statistic:Fixed the thousandth bit bug * Modifying Spaces Modifying Spaces * statistic:Updated countdown feature to localize lodash * Add lodash localization filtering * statistic:Under the default font, the problem caused by the non-equal width font, causing the countdown to jitter, will be replaced with a concise font --- .eslintignore | 1 + build/config.js | 2 +- packages/statistic/src/main.vue | 137 +- packages/theme-chalk/src/statistic.scss | 1 + src/utils/lodash.js | 18075 ++++++++++++++++++++++ 5 files changed, 18150 insertions(+), 66 deletions(-) create mode 100644 src/utils/lodash.js diff --git a/.eslintignore b/.eslintignore index aa951739..a446c8da 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,5 +1,6 @@ src/utils/popper.js src/utils/date.js +src/utils/lodash.js examples/play *.sh node_modules diff --git a/build/config.js b/build/config.js index eaaa990a..49367309 100644 --- a/build/config.js +++ b/build/config.js @@ -46,4 +46,4 @@ exports.vue = { amd: 'vue' }; -exports.jsexclude = /node_modules|utils\/popper\.js|utils\/date\.js/; +exports.jsexclude = /node_modules|utils\/popper\.js|utils\/date\.js|utils\/lodash\.js/; diff --git a/packages/statistic/src/main.vue b/packages/statistic/src/main.vue index 220865ca..1d7a6130 100644 --- a/packages/statistic/src/main.vue +++ b/packages/statistic/src/main.vue @@ -1,4 +1,4 @@ -