完成文件上传功能
This commit is contained in:
1 parent
e840e4eb5a
commit
4f477c99d1
14 files changed
+600
-172
No files matched your search
@@ -0,0 +1,24 @@
|
||||
import { directory, file } from "./type";
|
||||
|
||||
export type miaoFetchConfig = {
|
||||
retry?: number
|
||||
}
|
||||
|
||||
export type getOption = {
|
||||
} & miaoFetchConfig
|
||||
|
||||
export type getResponse = (file | directory)[]
|
||||
|
||||
export type uploadOption = {
|
||||
/**
|
||||
* 上传进度回调函数
|
||||
* @param {any} percent 进度百分比,float类型
|
||||
*/
|
||||
onProcess?: (percent: number) => void
|
||||
/**
|
||||
* 上传文件执行的操作
|
||||
* write即为覆盖写
|
||||
* append即为增量写
|
||||
*/
|
||||
type?: 'write' | 'append'
|
||||
} & miaoFetchConfig
|
||||
Reference in new issue
Block a user