Browse Source

basicButton enable处理

es6
windy 7 years ago
parent
commit
f1fad2ab01
  1. 3
      bi/base.js
  2. 3
      docs/base.js
  3. 3
      src/base/single/button/button.basic.js

3
bi/base.js

@ -807,6 +807,9 @@ BI.BasicButton = BI.inherit(BI.Single, {
_trigger: function () { _trigger: function () {
var o = this.options; var o = this.options;
if(!this.isEnabled()){
return;
}
if (!this.isDisableSelected()) { if (!this.isDisableSelected()) {
this.isForceSelected() ? this.setSelected(true) : this.isForceSelected() ? this.setSelected(true) :
(this.isForceNotSelected() ? this.setSelected(false) : (this.isForceNotSelected() ? this.setSelected(false) :

3
docs/base.js

@ -807,6 +807,9 @@ BI.BasicButton = BI.inherit(BI.Single, {
_trigger: function () { _trigger: function () {
var o = this.options; var o = this.options;
if(!this.isEnabled()){
return;
}
if (!this.isDisableSelected()) { if (!this.isDisableSelected()) {
this.isForceSelected() ? this.setSelected(true) : this.isForceSelected() ? this.setSelected(true) :
(this.isForceNotSelected() ? this.setSelected(false) : (this.isForceNotSelected() ? this.setSelected(false) :

3
src/base/single/button/button.basic.js

@ -220,6 +220,9 @@ BI.BasicButton = BI.inherit(BI.Single, {
_trigger: function () { _trigger: function () {
var o = this.options; var o = this.options;
if(!this.isEnabled()){
return;
}
if (!this.isDisableSelected()) { if (!this.isDisableSelected()) {
this.isForceSelected() ? this.setSelected(true) : this.isForceSelected() ? this.setSelected(true) :
(this.isForceNotSelected() ? this.setSelected(false) : (this.isForceNotSelected() ? this.setSelected(false) :

Loading…
Cancel
Save