Browse Source

KERNEL-12866 feat: BI.Switch 对外发事件的时候带上selected参数

es6
zsmj 2 years ago
parent
commit
721e6f7045
  1. 2
      src/case/button/switch.js

2
src/case/button/switch.js

@ -77,7 +77,7 @@ BI.Switch = BI.inherit(BI.BasicButton, {
doClick: function () {
BI.Switch.superclass.doClick.apply(this, arguments);
this.fireEvent(BI.Switch.EVENT_CHANGE);
this.fireEvent(BI.Switch.EVENT_CHANGE, this.isSelected());
}
});
BI.Switch.EVENT_CHANGE = "EVENT_CHANGE";

Loading…
Cancel
Save