uview-plus icon indicating copy to clipboard operation
uview-plus copied to clipboard

up-datetime-picker 组件报错

Open 736048546 opened this issue 1 year ago • 4 comments

image

736048546 avatar Dec 28 '24 02:12 736048546

请提供复现demo

ijry avatar Dec 30 '24 13:12 ijry

请提供复现demo

我也是,debug了一下,NaN导致的

image

image

JamesY-Jey avatar Jan 08 '25 07:01 JamesY-Jey

image

JamesY-Jey avatar Jan 08 '25 07:01 JamesY-Jey

貌似因为v-model初始值传了个空字符串的原因,初始值传Number(new Date())就不会报错。不过按说一开始应该可以传空字符串吧?

JamesY-Jey avatar Jan 08 '25 08:01 JamesY-Jey