| 
									
										
										
										
											2025-10-22 14:43:42 +08:00
										 |  |  | interface UseDownloadBlobOptions { | 
					
						
							|  |  |  |   /** 下载文件的自定义文件名(不含后缀),默认为当前时间戳 */ | 
					
						
							|  |  |  |   name?: string; | 
					
						
							|  |  |  |   /** Blob 对象的 MIME 类型,默认为 Excel 类型 */ | 
					
						
							|  |  |  |   type?: string; | 
					
						
							|  |  |  |   /** 请求时携带的查询参数对象 */ | 
					
						
							|  |  |  |   params?: Record<string, any>; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-10-28 08:48:18 +08:00
										 |  |  | export interface downloadBlobOptions { | 
					
						
							|  |  |  |   url: string; | 
					
						
							|  |  |  |   options?: UseDownloadBlobOptions; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-10-31 08:48:31 +08:00
										 |  |  | export type DownloadBlobFunction = (options: downloadBlobOptions) => Promise<any>; | 
					
						
							| 
									
										
										
										
											2025-10-28 08:48:18 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-10-22 14:43:42 +08:00
										 |  |  | /** | 
					
						
							|  |  |  |  * 下载Blob流文件 | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2025-10-31 08:48:31 +08:00
										 |  |  | export default function useImportFile(returnType: "array"): [boolean, DownloadBlobFunction]; | 
					
						
							|  |  |  | export default function useImportFile(returnType?: "object"): { loading: boolean; importFile: DownloadBlobFunction }; |