mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-04 12:17:37 +08:00
fix(components): time picker when midnight (#5403)
This commit is contained in:
parent
0b7607cecf
commit
4d470d062c
@ -59,7 +59,7 @@
|
|||||||
disabled: listMap[item].value[time],
|
disabled: listMap[item].value[time],
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<template v-if="time">
|
<template v-if="typeof time === 'number'">
|
||||||
<template v-if="item === 'hours'">
|
<template v-if="item === 'hours'">
|
||||||
{{ ('0' + (amPmMode ? time % 12 || 12 : time)).slice(-2)
|
{{ ('0' + (amPmMode ? time % 12 || 12 : time)).slice(-2)
|
||||||
}}{{ getAmPmFlag(time) }}
|
}}{{ getAmPmFlag(time) }}
|
||||||
|
Loading…
Reference in New Issue
Block a user