imp
3 years ago
5 changed files with 10 additions and 43 deletions
@ -1,31 +0,0 @@
|
||||
/** |
||||
* 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(); |
||||
} |
||||
}); |
@ -1,5 +0,0 @@
|
||||
import { Pane } from "../../base/pane"; |
||||
|
||||
export declare class LoadingPane extends Pane { |
||||
__loaded: (...args: any[]) => void; |
||||
} |
Loading…
Reference in new issue