提交 1e6a853a 编写于 作者: Q qiang

fix: 修复 app-v3 picker 组件 时间和日期未设置 value 时报错的问题

上级 1402eaa4
......@@ -27,6 +27,7 @@ function padLeft (num) {
return num > 9 ? num : (`0${num}`)
}
function getDate (str, mode_) {
str = String(str || '')
const date = new Date()
if (mode_ === mode.TIME) {
str = str.split(':')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册