From 0cfd2bf27ba6aec99ee24fc9d768c1d79a735b67 Mon Sep 17 00:00:00 2001 From: "Zhenfei.Li" Date: Fri, 21 Jun 2019 00:51:01 +0800 Subject: [PATCH] =?UTF-8?q?BI-46143=20feat:=20=E5=AE=9A=E4=B9=89SingleSele?= =?UTF-8?q?ctItem=E7=9A=84=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/case/button/item.singleselect.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/case/button/item.singleselect.js b/src/case/button/item.singleselect.js index 0fce395acc..f30ccce01b 100644 --- a/src/case/button/item.singleselect.js +++ b/src/case/button/item.singleselect.js @@ -42,11 +42,14 @@ BI.SingleSelectItem = BI.inherit(BI.BasicButton, { doClick: function () { BI.SingleSelectItem.superclass.doClick.apply(this, arguments); + if (this.isValid()) { + this.fireEvent(BI.MultiSelectItem.EVENT_CHANGE, this.getValue(), this); + } }, setSelected: function (v) { BI.SingleSelectItem.superclass.setSelected.apply(this, arguments); } }); - +BI.SingleSelectItem.EVENT_CHANGE = "SingleSelectItem.EVENT_CHANGE"; BI.shortcut("bi.single_select_item", BI.SingleSelectItem); \ No newline at end of file