提交 e8b644f8 编写于 作者: shutao-dc's avatar shutao-dc

更新time-picker

上级 d4e2962b
......@@ -27,20 +27,18 @@
},
watch: {
"hour": {
handler(newValue : Number, oldValue : Number) {
const hour = newValue.toInt()
if (hour < 23 && hour >= 0) {
this.hourValue = hour
handler(newValue : number, oldValue : number) {
if (newValue < 23 && newValue >= 0) {
this.hourValue = newValue
this.picker?.setHour(this.hourValue)
}
},
immediate: true
},
"minute": {
handler(newValue : Number, oldValue : Number) {
const minute = newValue.toInt()
if (minute < 59 && minute >= 0) {
this.minuteValue = minute
handler(newValue : number, oldValue : number) {
if (newValue < 59 && newValue >= 0) {
this.minuteValue = newValue
this.picker?.setMinute(this.minuteValue)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册