add runtime file:sandbox
This commit is contained in:
		
							
								
								
									
										23
									
								
								js-framework/src/mock/driver.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								js-framework/src/mock/driver.ts
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,23 @@ | ||||
| import { Page } from '../ui/page' | ||||
| import { View } from '../ui/view' | ||||
|  | ||||
| export interface Driver { | ||||
|     /** | ||||
|      * Create and destory page | ||||
|      */ | ||||
|     createPage(): Page | ||||
|     destoryPage(): Page | ||||
|  | ||||
|     /** | ||||
|      * Page lifecycle | ||||
|      */ | ||||
|     dispatchOnCreate(): void | ||||
|     dispatchOnDestory(): void | ||||
|     dispatchOnShow(): void | ||||
|     dispatchOnHidden(): void | ||||
|  | ||||
|     /** | ||||
|      * Page render | ||||
|      */ | ||||
|     dispatchBuild(): View | ||||
| } | ||||
		Reference in New Issue
	
	Block a user