Browse Source

BI-78670 refactor: 根据comment优化代码

master
Zhenfei.Li 4 years ago
parent
commit
5b7ec8c424
  1. 6
      src/widget/timeinterval/dateinterval.js

6
src/widget/timeinterval/dateinterval.js

@ -72,9 +72,9 @@ BI.DateInterval = BI.inherit(BI.Single, {
value: v, value: v,
height: o.height, height: o.height,
listeners: [{ listeners: [{
eventName: BI.DynamicDateCombo.EVENT_BEFORE_POPUPVIEW, eventName: BI.DynamicDateCombo.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW,
action: function () { action: function () {
self.fireEvent(BI.DateInterval.EVENT_BEFORE_POPUPVIEW); self.fireEvent(BI.DateInterval.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW);
} }
}] }]
}); });
@ -186,5 +186,5 @@ BI.DateInterval = BI.inherit(BI.Single, {
BI.DateInterval.EVENT_VALID = "EVENT_VALID"; BI.DateInterval.EVENT_VALID = "EVENT_VALID";
BI.DateInterval.EVENT_ERROR = "EVENT_ERROR"; BI.DateInterval.EVENT_ERROR = "EVENT_ERROR";
BI.DateInterval.EVENT_CHANGE = "EVENT_CHANGE"; BI.DateInterval.EVENT_CHANGE = "EVENT_CHANGE";
BI.DateInterval.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW"; BI.DateInterval.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW = "EVENT_BEFORE_YEAR_MONTH_POPUPVIEW";
BI.shortcut("bi.date_interval", BI.DateInterval); BI.shortcut("bi.date_interval", BI.DateInterval);
Loading…
Cancel
Save