Browse Source

REPORT-35912 fix: 范围

es6
windy 4 years ago
parent
commit
070042cb3a
  1. 4
      src/widget/date/calendar/picker.date.js

4
src/widget/date/calendar/picker.date.js

@ -35,7 +35,7 @@ BI.DatePicker = BI.inherit(BI.Widget, {
} else {
self.setValue({
year: self.year.getValue(),
month: self.month.getValue() - 1,
month: (self.month.getValue() - 1) || BI.getDate().getMonth(),
});
}
self.fireEvent(BI.DatePicker.EVENT_CHANGE);
@ -59,7 +59,7 @@ BI.DatePicker = BI.inherit(BI.Widget, {
} else {
self.setValue({
year: self.year.getValue(),
month: self.month.getValue() + 1,
month: (self.month.getValue() + 1) || (BI.getDate().getMonth() + 2),
});
}
self.fireEvent(BI.DatePicker.EVENT_CHANGE);

Loading…
Cancel
Save