This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/js-framework/ui/page.ts
2019-07-17 10:33:08 +08:00

34 lines
554 B
TypeScript

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()
}
}