Skip to content

Commit

Permalink
fix: #238Calendar组件maxDate修改为不能小于minDate
Browse files Browse the repository at this point in the history
  • Loading branch information
jry committed Apr 10, 2024
1 parent b7f6856 commit 17560bb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,9 @@ export default {
// 校验maxDate,不能小于当前时间
if (
this.innerMaxDate &&
new Date(this.innerMaxDate).getTime() <= Date.now()
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
Expand Down

0 comments on commit 17560bb

Please sign in to comment.