mirror of https://github.com/ElemeFE/element
				
				
				
			Upload: correct documentation
							parent
							
								
									a408bf47fe
								
							
						
					
					
						commit
						e79557a30b
					
				| 
						 | 
				
			
			@ -36,7 +36,7 @@ Vue.component('el-upload', ElUpload)
 | 
			
		|||
| data | 可选参数, 上传时附带的额外参数 | object | — | — |
 | 
			
		||||
| name | 可选参数, 上传的文件字段名 | string | — | file |
 | 
			
		||||
| with-credentials | 支持发送 cookie 凭证信息 | boolean | — | false |
 | 
			
		||||
| show-upload-list | 是否显示已上传文件列表 | boolean | — | true |
 | 
			
		||||
| show-file-list | 是否显示已上传文件列表 | boolean | — | true |
 | 
			
		||||
| type | 上传控件类型 | string | select,drag | select |
 | 
			
		||||
| accept | 可选参数, 接受上传的[文件类型](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-accept)(thumbnail-mode 模式下此参数无效)| string | — | — |
 | 
			
		||||
| on-preview | 可选参数, 点击已上传的文件链接时的钩子, 可以通过 file.response 拿到服务端返回数据 | function(file) | — | — |
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue