uView版本升级到2.0.34

This commit is contained in:
sfmind
2022-11-19 20:38:24 +08:00
parent 5934d6b029
commit fb097f7a5b
48 changed files with 485 additions and 413 deletions

View File

@ -209,12 +209,13 @@ export default {
}
},
init() {
// 校验maxDate不能小于当前时间
// 校验maxDate不能小于minDate
if (
this.innerMaxDate &&
new Date(this.innerMaxDate).getTime() <= Date.now()
this.innerMinDate &&
new Date(this.innerMaxDate).getTime() < new Date(this.innerMinDate).getTime()
) {
return uni.$u.error('maxDate不能小于当前时间')
return uni.$u.error('maxDate不能小于minDate')
}
// 滚动区域的高度
this.listHeight = this.rowHeight * 5 + 30