Browse Source

Pull request #1601: REPORT-44278 初始化而不仅仅切换时就要计算灰化

Merge in VISUAL/fineui from ~TELLER/fineui:bugfix to master

* commit '12517aaa112ebd07ded08d8a15ab1e6d78ecf692':
  REPORT-44278 fix: 初始化而不仅仅切换时就要计算灰化
es6
Teller 4 years ago
parent
commit
669ef99185
  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]
},
cardCreator: BI.bind(this._createYearCalendar, this),
afterCardShow: function () {
afterCardCreated: function () {
this.setValue(self.selectedYear);
var calendar = this.getSelectedCard();
calendar && self.backBtn.setEnable(!calendar.isFrontYear());

Loading…
Cancel
Save