mirror of
				https://gitee.com/vant-contrib/vant.git
				synced 2025-10-31 03:22:08 +08:00 
			
		
		
		
	Update english doc
This commit is contained in:
		
							parent
							
								
									208433d6f8
								
							
						
					
					
						commit
						783e30361f
					
				| @ -35,16 +35,15 @@ export default { | ||||
|   }, | ||||
| 
 | ||||
|   methods: { | ||||
|     formatDate() { | ||||
|     formatDate(date) { | ||||
|       return `${date.getMonth() + 1}/${date.getDate()}`; | ||||
|     }, | ||||
|     onConfirm(date) { | ||||
|       const [start, end] = date; | ||||
|       this.show = false; | ||||
|       this.date = `${this.formatDate(start)} - ${this.formatDate(end)}`; | ||||
|       this.date = this.formatDate(date); | ||||
|     } | ||||
|   } | ||||
| } | ||||
| }; | ||||
| ``` | ||||
| 
 | ||||
| ### Select Date Range | ||||
| @ -61,17 +60,22 @@ You can select a date range after setting `type` to` range`. In range mode, the | ||||
| export default { | ||||
|   data() { | ||||
|     return { | ||||
|       show: false, | ||||
|       date: [] | ||||
|       date: '', | ||||
|       show: false | ||||
|     }; | ||||
|   }, | ||||
| 
 | ||||
|   methods: { | ||||
|     formatDate(date) { | ||||
|       return `${date.getMonth() + 1}/${date.getDate()}`; | ||||
|     }, | ||||
|     onConfirm(date) { | ||||
|       const [start, end] = date; | ||||
|       this.show = false; | ||||
|       this.date = date; | ||||
|       this.date = `${this.formatDate(start)} - ${this.formatDate(end)}`; | ||||
|     } | ||||
|   } | ||||
| } | ||||
| }; | ||||
| ``` | ||||
| 
 | ||||
| ### Quick Select | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user