treecat
3 years ago
66 changed files with 331 additions and 320 deletions
Binary file not shown.
Before Width: | Height: | Size: 424 KiB After Width: | Height: | Size: 426 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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