Browse Source

setVisible的display属性设置

es6
windy 8 years ago
parent
commit
0b67143d91
  1. 4
      bi/core.js
  2. 4
      docs/core.js
  3. 4
      src/core/widget.js

4
bi/core.js

@ -4512,11 +4512,11 @@ BI.Widget = BI.inherit(BI.OB, {
setVisible: function (visible) {
if (visible === true) {
this.options.invisible = false;
this.element.show();
this.element.css("display", "");
this._mount();
} else if (visible === false) {
this.options.invisible = true;
this.element.hide();
this.element.css("display", "none");
}
this.fireEvent(BI.Events.VIEW, visible);
},

4
docs/core.js

@ -14507,11 +14507,11 @@ BI.Widget = BI.inherit(BI.OB, {
setVisible: function (visible) {
if (visible === true) {
this.options.invisible = false;
this.element.show();
this.element.css("display", "");
this._mount();
} else if (visible === false) {
this.options.invisible = true;
this.element.hide();
this.element.css("display", "none");
}
this.fireEvent(BI.Events.VIEW, visible);
},

4
src/core/widget.js

@ -208,11 +208,11 @@ BI.Widget = BI.inherit(BI.OB, {
setVisible: function (visible) {
if (visible === true) {
this.options.invisible = false;
this.element.show();
this.element.css("display", "");
this._mount();
} else if (visible === false) {
this.options.invisible = true;
this.element.hide();
this.element.css("display", "none");
}
this.fireEvent(BI.Events.VIEW, visible);
},

Loading…
Cancel
Save