add view idenitify

This commit is contained in:
pengfei.zhou
2019-07-18 11:34:43 +08:00
parent 44ad1a58c7
commit e6bc920ab7
6 changed files with 42 additions and 20 deletions

View File

@@ -1,12 +1,12 @@
import { Page } from '../ui/page'
import { Panel } from '../ui/panel'
import { View } from '../ui/view'
export interface Driver {
/**
* Create and destory page
*/
createPage(): Page
destoryPage(): Page
createPage(): Panel
destoryPage(): Panel
/**
* Page lifecycle
@@ -20,4 +20,9 @@ export interface Driver {
* Page render
*/
dispatchBuild(): View
}
export interface Responser {
constructor(): void
respond(action: string, extra: any): void
}