File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ interface UploadCustomRequestOptions {
117
117
| --- | --- | --- | --- |
118
118
| clear | ` () => void ` | Clear current upload list. | 2.24.2 |
119
119
| openOpenFileDialog | ` () => void ` | Open the file dialog window. | |
120
- | submit | ` (fileId?: string \| number ) ` | Submit all files with pending status. | |
120
+ | submit | ` (fileId?: string) ` | Submit all files with pending status. | |
121
121
122
122
### Upload Slots
123
123
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ interface UploadCustomRequestOptions {
118
118
| --- | --- | --- | --- |
119
119
| clear | ` () => void ` | 清空上传列表 | 2.24.2 |
120
120
| openOpenFileDialog | ` () => void ` | 打开文件选择对话框 | |
121
- | submit | ` (fileId?: string \| number ) ` | 提交当前所有处于 pending 状态的文件 | |
121
+ | submit | ` (fileId?: string) ` | 提交当前所有处于 pending 状态的文件 | |
122
122
123
123
### Upload Slots
124
124
Original file line number Diff line number Diff line change @@ -92,6 +92,12 @@ export interface XhrHandlers {
92
92
handleXHRError : ( e : ProgressEvent ) => void
93
93
}
94
94
95
+ export interface UploadInst {
96
+ openOpenFileDialog : ( ) => void
97
+ submit : ( fileId ?: string ) => void
98
+ clear : ( ) => void
99
+ }
100
+
95
101
export type OnBeforeUpload = ( data : {
96
102
file : UploadSettledFileInfo
97
103
fileList : UploadSettledFileInfo [ ]
You can’t perform that action at this time.
0 commit comments