Skip to content

Commit 5fd0d52

Browse files
committed
fix(countdown): 个位秒补0展示
1 parent 40edc03 commit 5fd0d52

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/packages/countdown/countdown.taro.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,9 @@ const InternalCountDown: ForwardRefRenderFunction<
281281
[`${classPrefix}-number-text`]: type === 'text',
282282
})}
283283
>
284-
{unit && unit !== 'DD' ? padZero(time) : time}
284+
{(unit && unit !== 'DD') || (!unit && formatUnit === 'ss')
285+
? padZero(time)
286+
: time}
285287
</View>
286288
{unit ? (
287289
<View className={`${classPrefix}-unit`}>{getUnit(unit)}</View>

0 commit comments

Comments
 (0)