From 5fd0d5290d1a6e110ace3f1865bb05ff5c1cd5c1 Mon Sep 17 00:00:00 2001 From: songchenglin3 <353833373@qq.com> Date: Mon, 10 Mar 2025 19:40:42 +0800 Subject: [PATCH] =?UTF-8?q?fix(countdown):=20=E4=B8=AA=E4=BD=8D=E7=A7=92?= =?UTF-8?q?=E8=A1=A50=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/packages/countdown/countdown.taro.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/packages/countdown/countdown.taro.tsx b/src/packages/countdown/countdown.taro.tsx index 9705640398..f57caf7ce1 100644 --- a/src/packages/countdown/countdown.taro.tsx +++ b/src/packages/countdown/countdown.taro.tsx @@ -281,7 +281,9 @@ const InternalCountDown: ForwardRefRenderFunction< [`${classPrefix}-number-text`]: type === 'text', })} > - {unit && unit !== 'DD' ? padZero(time) : time} + {(unit && unit !== 'DD') || (!unit && formatUnit === 'ss') + ? padZero(time) + : time} {unit ? ( {getUnit(unit)}