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