You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
705 B
31 lines
705 B
/** |
|
* author: young |
|
* createdDate: 2018/12/18 |
|
* description: |
|
*/ |
|
BI.LoadingPane = BI.inherit(BI.Pane, { |
|
_mount: function () { |
|
var isMounted = BI.Pane.superclass._mount.apply(this, arguments); |
|
if (isMounted) { |
|
if (this.beforeInit) { |
|
this.__asking = true; |
|
this.loading(); |
|
this.beforeInit(BI.bind(this.__loaded, this)); |
|
} |
|
} |
|
}, |
|
|
|
_initRender: function () { |
|
if (this.beforeInit) { |
|
this.__async = true; |
|
} else { |
|
this._render(); |
|
} |
|
}, |
|
|
|
__loaded: function () { |
|
this.__asking = false; |
|
this.loaded(); |
|
this._render(); |
|
} |
|
}); |