clear View define
This commit is contained in:
parent
50b9158ce7
commit
69108124a0
34
js-framework/ui/page.ts
Normal file
34
js-framework/ui/page.ts
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
import { View } from "./view";
|
||||||
|
|
||||||
|
export abstract class Page {
|
||||||
|
onCreate(): void { }
|
||||||
|
onDestory(): void { }
|
||||||
|
onShow(): void { }
|
||||||
|
onHidden(): void { }
|
||||||
|
|
||||||
|
abstract build(): View
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Native Call
|
||||||
|
*/
|
||||||
|
private __onCreate__(): void {
|
||||||
|
this.onCreate()
|
||||||
|
}
|
||||||
|
|
||||||
|
private __onDestory__(): void {
|
||||||
|
this.onDestory()
|
||||||
|
}
|
||||||
|
|
||||||
|
private __onShow__(): void {
|
||||||
|
this.onShow()
|
||||||
|
}
|
||||||
|
|
||||||
|
private __onHidden__(): void {
|
||||||
|
this.onHidden()
|
||||||
|
}
|
||||||
|
|
||||||
|
private __build__(): View {
|
||||||
|
return this.build()
|
||||||
|
}
|
||||||
|
}
|
0
js-framework/ui/state.ts
Normal file
0
js-framework/ui/state.ts
Normal file
Reference in New Issue
Block a user