From 92de06fbfca52fcf8d46b89a164e01ae453f0aa7 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Wed, 29 Jul 2020 13:40:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widget/date/calendar/picker.date.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widget/date/calendar/picker.date.js b/src/widget/date/calendar/picker.date.js index 21258aadff..dbb28bb723 100644 --- a/src/widget/date/calendar/picker.date.js +++ b/src/widget/date/calendar/picker.date.js @@ -153,7 +153,7 @@ BI.DatePicker = BI.inherit(BI.Widget, { _checkLeftValid: function () { var obj = this._getCheckMinMaxDate(); var year = this._month === 1 ? this._year - 1 : this._year; - var month = this._month === 1 ? 12 : this.month - 1; + var month = this._month === 1 ? 12 : this._month - 1; var valid = BI.isNull(BI.checkDateVoid(year, month, 1, obj.min, obj.max)[0]); this.left.setEnable(valid); @@ -164,7 +164,7 @@ BI.DatePicker = BI.inherit(BI.Widget, { _checkRightValid: function () { var obj = this._getCheckMinMaxDate(); var year = this._month === 12 ? this._year + 1 : this._year; - var month = this._month === 12 ? 1 : this.month + 1; + var month = this._month === 12 ? 1 : this._month + 1; var valid = BI.isNull(BI.checkDateVoid(year, month, 1, obj.min, obj.max)[0]); this.right.setEnable(valid);