mist-toolkit
Version:
Mist CLI Toolkit
34 lines (24 loc) • 712 B
text/typescript
import { AlipayJSBridge, JSBridge, Event, List, View, MistItem, MistTemplate, MistPage, PageDescription } from '@alipay/mist-page/lib'
import { {{PAGE_NAME}}PageModel } from './{{MODEL_FILE_NAME}}'
class {{PAGE_NAME}}Page extends MistPage {
{{i_PAGE_NAME}}PageModel: {{PAGE_NAME}}PageModel
onCreated() {
let schemeOptions = this.pageConfig
this.{{i_PAGE_NAME}}PageModel = new {{PAGE_NAME}}PageModel()
this.registerModel(this.{{i_PAGE_NAME}}PageModel)
this.load()
}
onAppear() {
}
onDisappear() {
}
onDestroy() {
}
showModel(): PageDescription {
}
showEmpty(): PageDescription {
}
showError(error: any): PageDescription {
}
}
let p = new {{PAGE_NAME}}Page()