|
|
@ -14539,6 +14539,14 @@ BI.Widget = BI.inherit(BI.OB, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_setVisible: function (visible) { |
|
|
|
|
|
|
|
if (visible === true) { |
|
|
|
|
|
|
|
this.options.invisible = false; |
|
|
|
|
|
|
|
} else if (visible === false) { |
|
|
|
|
|
|
|
this.options.invisible = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setEnable: function (enable) { |
|
|
|
setEnable: function (enable) { |
|
|
|
this._setEnable(enable); |
|
|
|
this._setEnable(enable); |
|
|
|
if (enable === true) { |
|
|
|
if (enable === true) { |
|
|
@ -14549,13 +14557,12 @@ BI.Widget = BI.inherit(BI.OB, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setVisible: function (visible) { |
|
|
|
setVisible: function (visible) { |
|
|
|
|
|
|
|
this._setVisible(visible); |
|
|
|
if (visible === true) { |
|
|
|
if (visible === true) { |
|
|
|
this.options.invisible = false; |
|
|
|
|
|
|
|
//用this.element.show()会把display属性改成block
|
|
|
|
//用this.element.show()会把display属性改成block
|
|
|
|
this.element.css("display", ""); |
|
|
|
this.element.css("display", ""); |
|
|
|
this._mount(); |
|
|
|
this._mount(); |
|
|
|
} else if (visible === false) { |
|
|
|
} else if (visible === false) { |
|
|
|
this.options.invisible = true; |
|
|
|
|
|
|
|
this.element.css("display", "none"); |
|
|
|
this.element.css("display", "none"); |
|
|
|
} |
|
|
|
} |
|
|
|
this.fireEvent(BI.Events.VIEW, visible); |
|
|
|
this.fireEvent(BI.Events.VIEW, visible); |
|
|
|