forked from fanruan/fineui
Browse Source
Merge in VISUAL/fineui from ~IMP/fineui_fui:master to master * commit '3a9a45563b23f0034e938301bfa801f08433d912': 无jira任务 删除loadingpane 无jira任务 去掉多余 无jira任务 类型 BI-95811 feat: 支持direction 无jira任务 改下变量名es6
imp
3 years ago
12 changed files with 21 additions and 48 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