Browse Source

无JIRA fix: single_select_radio_item单选框once,forceSelected 等属性没能控制到里面的bi.radio

导致设置了once,虽然节点不会被取消选中了,但是单独的radio可以被点来点去
两种改法,一种是把BasicButton的属性也都传给bi.radio,另一种就是用事件控制一下
es6
zsmj 2 years ago
parent
commit
90fc2bcd2e
  1. 10
      src/case/button/item.singleselect.radio.js

10
src/case/button/item.singleselect.radio.js

@ -28,6 +28,16 @@ BI.SingleSelectRadioItem = BI.inherit(BI.BasicButton, {
ref: function (_ref) {
self.radio = _ref;
},
listeners: [
{
eventName: BI.Controller.EVENT_CHANGE,
action: function (type) {
if (type === BI.Events.CLICK) {
self.setSelected(self.isSelected());
}
}
}
],
}]
}, {
el: {

Loading…
Cancel
Save