You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					16 lines
				
				284 B
			
		
		
			
		
	
	
					16 lines
				
				284 B
			| 
								 
											2 years ago
										 
									 | 
							
								/* eslint-disable */
							 | 
						||
| 
								 | 
							
								var PRESETS = ['error', 'search', 'default', 'network'];
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								function imageUrl(image) {
							 | 
						||
| 
								 | 
							
								  if (PRESETS.indexOf(image) !== -1) {
							 | 
						||
| 
								 | 
							
								    return 'https://img.yzcdn.cn/vant/empty-image-' + image + '.png';
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  return image;
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								module.exports = {
							 | 
						||
| 
								 | 
							
								  imageUrl: imageUrl,
							 | 
						||
| 
								 | 
							
								};
							 | 
						||
| 
								 | 
							
								
							 |