Browse Source

REPORT-44278 fix: 初始化而不仅仅切换时就要计算灰化

es6
iapyang 4 years ago
parent
commit
12517aaa11
  1. 3
      src/widget/date/calendar/popup.year.js

3
src/widget/date/calendar/popup.year.js

@ -68,8 +68,7 @@ BI.YearPopup = BI.inherit(BI.Widget, {
items: [this.backBtn, this.preBtn] items: [this.backBtn, this.preBtn]
}, },
cardCreator: BI.bind(this._createYearCalendar, this), cardCreator: BI.bind(this._createYearCalendar, this),
afterCardCreated: function () {
afterCardShow: function () {
this.setValue(self.selectedYear); this.setValue(self.selectedYear);
var calendar = this.getSelectedCard(); var calendar = this.getSelectedCard();
calendar && self.backBtn.setEnable(!calendar.isFrontYear()); calendar && self.backBtn.setEnable(!calendar.isFrontYear());

Loading…
Cancel
Save