mirror of
				https://gitee.com/vant-contrib/vant.git
				synced 2025-10-27 01:32:10 +08:00 
			
		
		
		
	docs(Uploader): add heic faq (#8469)
This commit is contained in:
		
							parent
							
								
									93f75ccc84
								
							
						
					
					
						commit
						fd3f02cb5a
					
				| @ -357,3 +357,11 @@ before-read、after-read、before-delete 执行时会传递以下回调参数: | ||||
| | @uploader-loading-icon-size        | `22px`               | -    | | ||||
| | @uploader-loading-icon-color       | `@white`             | -    | | ||||
| | @uploader-disabled-opacity         | `@disabled-opacity`  | -    | | ||||
| 
 | ||||
| ## 常见问题 | ||||
| 
 | ||||
| ### 上传 HEIC/HEIF 格式的图片后无法展示? | ||||
| 
 | ||||
| 目前 Chrome、Safari 等浏览器不支持展示 HEIC/HEIF 格式的图片,因此上传后无法在 Uploader 组件中进行预览。 | ||||
| 
 | ||||
| [HEIF] 格式的兼容性请参考 [caniuse](https://caniuse.com/?search=heic)。 | ||||
|  | ||||
| @ -9,9 +9,9 @@ export function toArray<T>(item: T | T[]): T[] { | ||||
| } | ||||
| 
 | ||||
| export function readFile(file: File, resultType: ResultType) { | ||||
|   return new Promise((resolve) => { | ||||
|   return new Promise<FileReader['result']>((resolve) => { | ||||
|     if (resultType === 'file') { | ||||
|       resolve(); | ||||
|       resolve(null); | ||||
|       return; | ||||
|     } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user