From 39ab70510cd76c8c47a8edf2b658fa702f1e07db Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Thu, 11 Jun 2026 18:03:54 +0800 Subject: [PATCH] =?UTF-8?q?style(uv-count-to):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E6=A0=B7=E5=BC=8F=E5=A4=84=E7=90=86=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将手动拼接样式改为使用$util.objToStyle统一处理,提升代码可读性和规范性 --- components/uv-count-to/uv-count-to.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/uv-count-to/uv-count-to.vue b/components/uv-count-to/uv-count-to.vue index 742e4b2..d341f85 100644 --- a/components/uv-count-to/uv-count-to.vue +++ b/components/uv-count-to/uv-count-to.vue @@ -75,11 +75,11 @@ export default { return this.startVal > this.endVal }, textStyle() { - return { + return this.$util.objToStyle({ fontSize: this.fontSize + 'px', fontWeight: this.bold ? 'bold' : 'normal', color: this.color - } + }) } }, watch: {