fix(components): time picker when midnight (#5403)

This commit is contained in:
三咲智子 2022-01-17 10:35:26 +08:00 committed by GitHub
parent 0b7607cecf
commit 4d470d062c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,7 +59,7 @@
disabled: listMap[item].value[time],
}"
>
<template v-if="time">
<template v-if="typeof time === 'number'">
<template v-if="item === 'hours'">
{{ ('0' + (amPmMode ? time % 12 || 12 : time)).slice(-2)
}}{{ getAmPmFlag(time) }}