UNPKG

mist-toolkit

Version:

Mist CLI Toolkit

34 lines (24 loc) 728 B
import { AlipayJSBridge, JSBridge, Event, List, View, MistItem, MistTemplate, MistListPage, PageDescription } from '@alipay/mist-page/lib' import { {{PAGE_NAME}}ListModel } from './{{MODEL_FILE_NAME}}' class {{PAGE_NAME}}ListPage extends MistListPage { {{i_PAGE_NAME}}ListModel: {{PAGE_NAME}}ListModel onCreated() { let schemeOptions = this.pageConfig this.{{i_PAGE_NAME}}ListModel = new {{PAGE_NAME}}ListModel() this.registerModel(this.{{i_PAGE_NAME}}ListModel) this.load() } onAppear() { } onDisappear() { } onDestroy() { } showModel(): PageDescription { } showEmpty(): PageDescription { } showError(error: any): PageDescription { } } let p = new {{PAGE_NAME}}ListPage()