refactor
This commit is contained in:
		
							parent
							
								
									8785e1c3a4
								
							
						
					
					
						commit
						98f1d93628
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -214,7 +214,11 @@ export function modalPageWindow(path: string) { | |||
| 	}, {}, 'closed'); | ||||
| } | ||||
| 
 | ||||
| export function dialog(props: Record<string, any>) { | ||||
| export function dialog(props: { | ||||
| 	type: 'error' | 'info' | 'success' | 'warning' | 'waiting' | 'help'; | ||||
| 	title?: string | null; | ||||
| 	text?: string | null; | ||||
| }) { | ||||
| 	return new Promise((resolve, reject) => { | ||||
| 		popup(import('@client/components/dialog.vue'), props, { | ||||
| 			done: result => { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue