Browse Source

Merge pull request #43 in ~GUY/fineui from ~WINDY/fineui:master to master

* commit '0b67143d9193e69c5733d34c48cb5efa0818ab4e':
  setVisible的display属性设置
es6
windy 8 years ago
parent
commit
370d7b27a2
  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) { setVisible: function (visible) {
if (visible === true) { if (visible === true) {
this.options.invisible = false; this.options.invisible = false;
this.element.show(); this.element.css("display", "");
this._mount(); this._mount();
} else if (visible === false) { } else if (visible === false) {
this.options.invisible = true; this.options.invisible = true;
this.element.hide(); this.element.css("display", "none");
} }
this.fireEvent(BI.Events.VIEW, visible); this.fireEvent(BI.Events.VIEW, visible);
}, },

4
docs/core.js

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

4
src/core/widget.js

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

Loading…
Cancel
Save