Browse Source

Pull request #1419: 无JIRA任务 更新变量

Merge in VISUAL/fineui from ~WINDY/fui:master to master

* commit '92de06fbfca52fcf8d46b89a164e01ae453f0aa7':
  无JIRA任务 更新变量
es6
windy 4 years ago
parent
commit
1ae87328af
  1. 4
      src/widget/date/calendar/picker.date.js

4
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);

Loading…
Cancel
Save