clear View define

This commit is contained in:
pengfei.zhou 2019-07-17 10:33:08 +08:00
parent 50b9158ce7
commit 69108124a0
3 changed files with 34 additions and 0 deletions

34
js-framework/ui/page.ts Normal file
View 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
View File