From da5b54f619fa65768a1bc0722f4c433f3428e56e Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Tue, 30 Jul 2019 15:49:37 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-20064=20fix:=20=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E5=90=8E=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widget/dynamicdate/dynamicdate.combo.js | 2 ++ src/widget/dynamicdatetime/dynamicdatetime.combo.js | 2 ++ src/widget/time/time.combo.js | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/widget/dynamicdate/dynamicdate.combo.js b/src/widget/dynamicdate/dynamicdate.combo.js index 5cf8b3754..5c5480c2f 100644 --- a/src/widget/dynamicdate/dynamicdate.combo.js +++ b/src/widget/dynamicdate/dynamicdate.combo.js @@ -64,6 +64,7 @@ BI.DynamicDateCombo = BI.inherit(BI.Single, { if (self.combo.isViewVisible()) { self.combo.hideView(); } + self.fireEvent(BI.DynamicDateCombo.EVENT_KEY_DOWN); } }, { eventName: BI.DynamicDateTrigger.EVENT_STOP, @@ -282,6 +283,7 @@ BI.DynamicDateCombo = BI.inherit(BI.Single, { } }); +BI.DynamicDateCombo.EVENT_KEY_DOWN = "EVENT_KEY_DOWN"; BI.DynamicDateCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; BI.DynamicDateCombo.EVENT_FOCUS = "EVENT_FOCUS"; BI.DynamicDateCombo.EVENT_CHANGE = "EVENT_CHANGE"; diff --git a/src/widget/dynamicdatetime/dynamicdatetime.combo.js b/src/widget/dynamicdatetime/dynamicdatetime.combo.js index 6db4f7fde..e1f16e413 100644 --- a/src/widget/dynamicdatetime/dynamicdatetime.combo.js +++ b/src/widget/dynamicdatetime/dynamicdatetime.combo.js @@ -64,6 +64,7 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, { if (self.combo.isViewVisible()) { self.combo.hideView(); } + self.fireEvent(BI.DynamicDateTimeCombo.EVENT_KEY_DOWN); } }, { eventName: BI.DynamicDateTimeTrigger.EVENT_STOP, @@ -285,6 +286,7 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, { } }); +BI.DynamicDateTimeCombo.EVENT_KEY_DOWN = "EVENT_KEY_DOWN"; BI.DynamicDateTimeCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; BI.DynamicDateTimeCombo.EVENT_FOCUS = "EVENT_FOCUS"; BI.DynamicDateTimeCombo.EVENT_CHANGE = "EVENT_CHANGE"; diff --git a/src/widget/time/time.combo.js b/src/widget/time/time.combo.js index e9f0f0393..207a07c1b 100644 --- a/src/widget/time/time.combo.js +++ b/src/widget/time/time.combo.js @@ -78,6 +78,7 @@ if (self.combo.isViewVisible()) { self.combo.hideView(); } + self.fireEvent(BI.TimeCombo.EVENT_KEY_DOWN); } }, { eventName: "EVENT_STOP", @@ -211,6 +212,7 @@ } }); + BI.TimeCombo.EVENT_KEY_DOWN = "EVENT_KEY_DOWN"; BI.TimeCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; BI.TimeCombo.EVENT_CHANGE = "EVENT_CHANGE"; BI.TimeCombo.EVENT_VALID = "EVENT_VALID";