|
|
|
@ -11771,6 +11771,10 @@ if (!_global.BI) {
|
|
|
|
|
this._initElementHeight(); |
|
|
|
|
this._initVisual(); |
|
|
|
|
this._initState(); |
|
|
|
|
this._initRender(); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_initRender: function () { |
|
|
|
|
if (this.beforeInit) { |
|
|
|
|
this.__asking = true; |
|
|
|
|
this.beforeInit(BI.bind(this._render, this)); |
|
|
|
@ -57180,37 +57184,28 @@ BI.shortcut("bi.sort_list", BI.SortList);
|
|
|
|
|
BI.LoadingPane = BI.inherit(BI.Pane, { |
|
|
|
|
|
|
|
|
|
_mount: function () { |
|
|
|
|
BI.Pane.superclass._mount.apply(this, arguments); |
|
|
|
|
if (this.isMounted()) { |
|
|
|
|
this.loading(); |
|
|
|
|
this.reqInitData(BI.bind(this.__loaded, this)); |
|
|
|
|
var isMounted = BI.LoadingPane.superclass._mount.apply(this, arguments); |
|
|
|
|
if (isMounted) { |
|
|
|
|
if (this.beforeInit) { |
|
|
|
|
this.__asking = true; |
|
|
|
|
this.loading(); |
|
|
|
|
this.beforeInit(BI.bind(this.__loaded, this)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
render: function () { |
|
|
|
|
return { |
|
|
|
|
type: "bi.default" |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 子类用loadedRender代替原先的render方法 |
|
|
|
|
*/ |
|
|
|
|
loadedRender: function () { |
|
|
|
|
return { |
|
|
|
|
type: "bi.default" |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
reqInitData: function (callback) { |
|
|
|
|
BI.isFunction(callback) && callback(); |
|
|
|
|
_initRender: function () { |
|
|
|
|
if (this.beforeInit) { |
|
|
|
|
this.__async = true; |
|
|
|
|
} else { |
|
|
|
|
this._render(); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
__loaded: function () { |
|
|
|
|
this.__asking = false; |
|
|
|
|
this.loaded(); |
|
|
|
|
BI.createWidget(this.loadedRender(), { |
|
|
|
|
element: this |
|
|
|
|
}, this); |
|
|
|
|
this._render(); |
|
|
|
|
} |
|
|
|
|
});/** |
|
|
|
|
* 有总页数和总行数的分页控件 |
|
|
|
|