|
|
@ -14434,7 +14434,7 @@ BI.Widget = BI.inherit(BI.OB, { |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
if (this._isRoot === true) { |
|
|
|
if (this._isRoot === true || (!(this instanceof BI.Layout) && (this._parent && this._parent._isMounted))) { |
|
|
|
this._mount(); |
|
|
|
this._mount(); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
@ -14446,7 +14446,7 @@ BI.Widget = BI.inherit(BI.OB, { |
|
|
|
_mount: function () { |
|
|
|
_mount: function () { |
|
|
|
var self = this; |
|
|
|
var self = this; |
|
|
|
var isMounted = this._isMounted; |
|
|
|
var isMounted = this._isMounted; |
|
|
|
if (isMounted) { |
|
|
|
if (isMounted || !this.isVisible()) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if (this._isRoot === true) { |
|
|
|
if (this._isRoot === true) { |
|
|
@ -14515,6 +14515,7 @@ BI.Widget = BI.inherit(BI.OB, { |
|
|
|
if (visible === true) { |
|
|
|
if (visible === true) { |
|
|
|
this.options.invisible = false; |
|
|
|
this.options.invisible = false; |
|
|
|
this.element.show(); |
|
|
|
this.element.show(); |
|
|
|
|
|
|
|
this._mount(); |
|
|
|
} else if (visible === false) { |
|
|
|
} else if (visible === false) { |
|
|
|
this.options.invisible = true; |
|
|
|
this.options.invisible = true; |
|
|
|
this.element.hide(); |
|
|
|
this.element.hide(); |
|
|
@ -20831,6 +20832,7 @@ BI.LayerController = BI.inherit(BI.Controller, { |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
this._getLayout(name).visible(); |
|
|
|
this._getLayout(name).visible(); |
|
|
|
|
|
|
|
this._getLayout(name)._mount(); |
|
|
|
this._getLayout(name).element.css("z-index", this.zindex++).show(0, callback).trigger("__resize__"); |
|
|
|
this._getLayout(name).element.css("z-index", this.zindex++).show(0, callback).trigger("__resize__"); |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
}, |
|
|
|
}, |
|
|
@ -26629,7 +26631,7 @@ BI.CardLayout = BI.inherit(BI.Layout, { |
|
|
|
return widget; |
|
|
|
return widget; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
showCardByName: function (name, action, callback) { |
|
|
|
showCardByName: function (name, action) { |
|
|
|
var self = this; |
|
|
|
var self = this; |
|
|
|
//name不存在的时候全部隐藏
|
|
|
|
//name不存在的时候全部隐藏
|
|
|
|
var exist = this.hasWidget(this._getCardName(name)); |
|
|
|
var exist = this.hasWidget(this._getCardName(name)); |
|
|
@ -26641,12 +26643,9 @@ BI.CardLayout = BI.inherit(BI.Layout, { |
|
|
|
BI.each(this._children, function (i, el) { |
|
|
|
BI.each(this._children, function (i, el) { |
|
|
|
if (self._getCardName(name) != i) { |
|
|
|
if (self._getCardName(name) != i) { |
|
|
|
//动画效果只有在全部都隐藏的时候才有意义,且只要执行一次动画操作就够了
|
|
|
|
//动画效果只有在全部都隐藏的时候才有意义,且只要执行一次动画操作就够了
|
|
|
|
!flag && !exist && (BI.Action && action instanceof BI.Action) ? (action.actionBack(el), flag = true) : el.element.hide(); |
|
|
|
!flag && !exist && (BI.Action && action instanceof BI.Action) ? (action.actionBack(el), flag = true) : el.invisible(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
(BI.Action && action instanceof BI.Action) ? action.actionPerformed(void 0, el, callback) : el.element.show(0, function () { |
|
|
|
(BI.Action && action instanceof BI.Action) ? action.actionPerformed(void 0, el, callback) : (el.visible(), el._mount()) |
|
|
|
el._mount(); |
|
|
|
|
|
|
|
callback && callback(); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -26659,6 +26658,7 @@ BI.CardLayout = BI.inherit(BI.Layout, { |
|
|
|
el.element.hide(); |
|
|
|
el.element.hide(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
el.element.show(); |
|
|
|
el.element.show(); |
|
|
|
|
|
|
|
el._mount(); |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|