This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
bytedo
/
wcui
Archived
1
0
Fork 0

修复数据跨月时状态更新异常的bug

old
宇天 2019-09-20 11:50:17 +08:00
parent 7a533024b6
commit c36ea5509b
1 changed files with 2 additions and 0 deletions

View File

@ -450,6 +450,7 @@ export default class DatePicker {
} else if (max.year === last.year) { } else if (max.year === last.year) {
if (last.month > max.month) { if (last.month > max.month) {
last.month = max.month last.month = max.month
last.day = max.day
} else if (last.month === max.month) { } else if (last.month === max.month) {
if (last.day > max.day) { if (last.day > max.day) {
last.day = max.day last.day = max.day
@ -465,6 +466,7 @@ export default class DatePicker {
} else if (last.year === min.year) { } else if (last.year === min.year) {
if (last.month < min.month) { if (last.month < min.month) {
last.month = min.month last.month = min.month
last.day = min.day
} else if (last.month === min.month) { } else if (last.month === min.month) {
if (last.day < min.day) { if (last.day < min.day) {
last.day = min.day last.day = min.day