|
|
@ -781,7 +781,7 @@ BI.BasicButton = BI.inherit(BI.Single, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
//之后的300ms点击无效
|
|
|
|
//之后的300ms点击无效
|
|
|
|
var onClick = BI.debounce(this.doClick, BI.EVENT_RESPONSE_TIME, true); |
|
|
|
var onClick = BI.debounce(this._doClick, BI.EVENT_RESPONSE_TIME, true); |
|
|
|
|
|
|
|
|
|
|
|
function ev(e) { |
|
|
|
function ev(e) { |
|
|
|
if (o.stopEvent) { |
|
|
|
if (o.stopEvent) { |
|
|
@ -803,6 +803,11 @@ BI.BasicButton = BI.inherit(BI.Single, { |
|
|
|
|
|
|
|
|
|
|
|
_trigger: function () { |
|
|
|
_trigger: function () { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
|
|
|
|
if (!this.isDisableSelected()) { |
|
|
|
|
|
|
|
this.isForceSelected() ? this.setSelected(true) : |
|
|
|
|
|
|
|
(this.isForceNotSelected() ? this.setSelected(false) : |
|
|
|
|
|
|
|
this.setSelected(!this.isSelected())); |
|
|
|
|
|
|
|
} |
|
|
|
if (this.isValid()) { |
|
|
|
if (this.isValid()) { |
|
|
|
o.handler.call(this, this.getValue(), this); |
|
|
|
o.handler.call(this, this.getValue(), this); |
|
|
|
var v = this.getValue(); |
|
|
|
var v = this.getValue(); |
|
|
@ -811,13 +816,15 @@ BI.BasicButton = BI.inherit(BI.Single, { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
doClick: function () { |
|
|
|
_doClick: function () { |
|
|
|
if (!this.isDisableSelected()) { |
|
|
|
|
|
|
|
this.isForceSelected() ? this.setSelected(true) : |
|
|
|
|
|
|
|
(this.isForceNotSelected() ? this.setSelected(false) : |
|
|
|
|
|
|
|
this.setSelected(!this.isSelected())); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this._trigger(); |
|
|
|
this._trigger(); |
|
|
|
|
|
|
|
if (this.isValid()) { |
|
|
|
|
|
|
|
this.doClick(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
doClick: function () { |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
handle: function () { |
|
|
|
handle: function () { |
|
|
|