From dac540ef519b5355023b66c22d0a484bf4036276 Mon Sep 17 00:00:00 2001 From: Tangjinxia <1119518763@qq.com> Date: Wed, 8 Sep 2021 19:25:29 +0800 Subject: [PATCH] =?UTF-8?q?CHART-20633=20fix:=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=A4=96=E9=83=A8=E7=9B=91=E5=90=AC=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/case/colorchooser/colorchooser.js | 4 ++++ src/case/colorchooser/colorchooser.simple.js | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/case/colorchooser/colorchooser.js b/src/case/colorchooser/colorchooser.js index 0cd6b11ba..21b124534 100644 --- a/src/case/colorchooser/colorchooser.js +++ b/src/case/colorchooser/colorchooser.js @@ -73,6 +73,9 @@ BI.ColorChooser = BI.inherit(BI.Widget, { this.combo.on(BI.Combo.EVENT_BEFORE_HIDEVIEW, function () { self.fireEvent(BI.ColorChooser.EVENT_CHANGE, arguments); }); + this.combo.on(BI.Combo.EVENT_AFTER_POPUPVIEW, function () { + self.fireEvent(BI.ColorChooser.EVENT_AFTER_POPUPVIEW, arguments); + }); }, _isRGBColor: function (color) { @@ -100,4 +103,5 @@ BI.ColorChooser = BI.inherit(BI.Widget, { } }); BI.ColorChooser.EVENT_CHANGE = "EVENT_CHANGE"; +BI.ColorChooser.EVENT_AFTER_POPUPVIEW = "EVENT_AFTER_POPUPVIEW"; BI.shortcut("bi.color_chooser", BI.ColorChooser); diff --git a/src/case/colorchooser/colorchooser.simple.js b/src/case/colorchooser/colorchooser.simple.js index a57700c38..b360efbf3 100644 --- a/src/case/colorchooser/colorchooser.simple.js +++ b/src/case/colorchooser/colorchooser.simple.js @@ -34,6 +34,9 @@ BI.SimpleColorChooser = BI.inherit(BI.Widget, { this.combo.on(BI.ColorChooser.EVENT_CHANGE, function () { self.fireEvent(BI.SimpleColorChooser.EVENT_CHANGE, arguments); }); + this.combo.on(BI.ColorChooser.EVENT_AFTER_POPUPVIEW, function () { + self.fireEvent(BI.SimpleColorChooser.EVENT_AFTER_POPUPVIEW, arguments); + }); }, isViewVisible: function () { @@ -57,4 +60,5 @@ BI.SimpleColorChooser = BI.inherit(BI.Widget, { } }); BI.SimpleColorChooser.EVENT_CHANGE = "EVENT_CHANGE"; +BI.SimpleColorChooser.EVENT_AFTER_POPUPVIEW = "EVENT_AFTER_POPUPVIEW"; BI.shortcut("bi.simple_color_chooser", BI.SimpleColorChooser); \ No newline at end of file