mirror of
				https://gitee.com/vant-contrib/vant.git
				synced 2025-10-31 03:22:08 +08:00 
			
		
		
		
	dialog component
This commit is contained in:
		
							parent
							
								
									7b0ab582d7
								
							
						
					
					
						commit
						5c845093da
					
				| @ -5,8 +5,8 @@ export default { | ||||
|   methods: { | ||||
|     handleAlertClick() { | ||||
|       Dialog.alert({ | ||||
|         title: 'alert', | ||||
|         message: 'alert message' | ||||
|         title: 'alert标题', | ||||
|         message: '弹窗提示文字,左右始终距离边20PX,上下距离20PX,文字左对齐。弹窗提示文字,左右始终距离边20PX,上下距离20PX,文字左对齐。' | ||||
|       }).then((action) => { | ||||
|         console.log(action); | ||||
|       }); | ||||
| @ -14,8 +14,8 @@ export default { | ||||
| 
 | ||||
|     handleConfirmClick() { | ||||
|       Dialog.confirm({ | ||||
|         title: 'confirm', | ||||
|         message: 'confirm message' | ||||
|         title: 'confirm标题', | ||||
|         message: '弹窗提示文字,左右始终距离边20PX,上下距离20PX,文字左对齐。弹窗提示文字,左右始终距离边20PX,上下距离20PX,文字左对齐。' | ||||
|       }).then((action) => { | ||||
|         console.log(action); | ||||
|       }, (error) => { | ||||
|  | ||||
| @ -78,9 +78,8 @@ export default { | ||||
|         }, 200); | ||||
|       } | ||||
| 
 | ||||
|       PopupManager.closeModal(this._popupId); | ||||
|       this.opened = false; | ||||
|       this.closing = false; | ||||
|       this.doAfterClose(); | ||||
|     } | ||||
|   } | ||||
| }; | ||||
|  | ||||
| @ -43,9 +43,8 @@ | ||||
|     @descendent message { | ||||
|       color: #999; | ||||
|       margin: 0; | ||||
|       text-align: center; | ||||
|       font-size: 14px; | ||||
|       line-height: 36px; | ||||
|       line-height: 1.5; | ||||
|     } | ||||
| 
 | ||||
|     @descendent footer { | ||||
|  | ||||
| @ -174,9 +174,13 @@ export default { | ||||
|         }, 200); | ||||
|       } | ||||
| 
 | ||||
|       PopupManager.closeModal(this._popupId); | ||||
|       this.opened = false; | ||||
|       this.doAfterClose(); | ||||
|     }, | ||||
| 
 | ||||
|     doAfterClose() { | ||||
|       this.closing = false; | ||||
|       PopupManager.closeModal(this._popupId); | ||||
|     } | ||||
|   }, | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user