diff --git a/src/widget/timeinterval/dateinterval.js b/src/widget/timeinterval/dateinterval.js index 12a1d2b27..97f2b0f73 100644 --- a/src/widget/timeinterval/dateinterval.js +++ b/src/widget/timeinterval/dateinterval.js @@ -109,10 +109,10 @@ BI.DateInterval = BI.inherit(BI.Single, { } }); - combo.on(BI.DynamicDateCombo.EVENT_BEFORE_POPUPVIEW, function () { - self.left.hidePopupView(); - self.right.hidePopupView(); - }); + // combo.on(BI.DynamicDateCombo.EVENT_BEFORE_POPUPVIEW, function () { + // self.left.hidePopupView(); + // self.right.hidePopupView(); + // }); combo.on(BI.DynamicDateCombo.EVENT_CONFIRM, function () { BI.Bubbles.hide("error"); diff --git a/src/widget/timeinterval/timeinterval.js b/src/widget/timeinterval/timeinterval.js index 83bd84aa0..20d307da1 100644 --- a/src/widget/timeinterval/timeinterval.js +++ b/src/widget/timeinterval/timeinterval.js @@ -109,10 +109,11 @@ BI.TimeInterval = BI.inherit(BI.Single, { } }); - combo.on(BI.DynamicDateTimeCombo.EVENT_BEFORE_POPUPVIEW, function () { - self.left.hidePopupView(); - self.right.hidePopupView(); - }); + // 不知道干啥的,先注释掉 + // combo.on(BI.DynamicDateTimeCombo.EVENT_BEFORE_POPUPVIEW, function () { + // self.left.hidePopupView(); + // self.right.hidePopupView(); + // }); combo.on(BI.DynamicDateTimeCombo.EVENT_CONFIRM, function () { BI.Bubbles.hide("error"); diff --git a/typescript/core/widget.ts b/typescript/core/widget.ts index 65a6a9b5b..a3c5ddf92 100644 --- a/typescript/core/widget.ts +++ b/typescript/core/widget.ts @@ -247,7 +247,7 @@ export interface _Widget extends _OB { /** * 根据wigetname获取子元素实例 */ - getWidgetByName(_name: string): _Widget; + getWidgetByName(_name: string): _Widget | undefined; /** * 移除子元素