bkui-vue 0.0.1-beta.131 → 0.0.1-beta.134
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +28 -28
- package/dist/index.esm.js +185 -169
- package/dist/index.umd.js +26 -26
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/index.d.ts +1 -48
- package/lib/alert/index.d.ts +1 -63
- package/lib/animate-number/index.d.ts +1 -28
- package/lib/backtop/index.d.ts +1 -61
- package/lib/badge/index.d.ts +1 -103
- package/lib/card/index.d.ts +1 -111
- package/lib/cascader/cascader.d.ts +1 -1
- package/lib/cascader/index.d.ts +4 -4
- package/lib/code-diff/index.d.ts +1 -51
- package/lib/collapse/index.d.ts +1 -64
- package/lib/date-picker/index.d.ts +1 -312
- package/lib/dialog/dialog.css +13 -9
- package/lib/dialog/dialog.less +16 -9
- package/lib/dialog/dialog.variable.css +13 -9
- package/lib/dialog/index.d.ts +1 -317
- package/lib/dialog/index.js +1 -1
- package/lib/directives/index.js +1 -1
- package/lib/divider/index.d.ts +1 -49
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/index.d.ts +4 -4
- package/lib/exception/index.d.ts +1 -27
- package/lib/fixed-navbar/index.d.ts +1 -49
- package/lib/input/index.d.ts +1 -226
- package/lib/link/index.d.ts +1 -59
- package/lib/navigation/index.d.ts +1 -119
- package/lib/pagination/index.d.ts +1 -158
- package/lib/popover/index.d.ts +5 -170
- package/lib/popover/popover.d.ts +1 -1
- package/lib/popover2/index.d.ts +5 -214
- package/lib/popover2/popover2.d.ts +1 -1
- package/lib/process/index.d.ts +1 -75
- package/lib/progress/index.d.ts +1 -169
- package/lib/rate/index.d.ts +1 -33
- package/lib/resize-layout/index.d.ts +1 -128
- package/lib/resize-layout/index.js +1 -1
- package/lib/select/select.css +13 -0
- package/lib/select/select.less +18 -4
- package/lib/select/select.variable.css +13 -0
- package/lib/shared/index.d.ts +1 -3
- package/lib/sideslider/index.d.ts +1 -206
- package/lib/slider/index.d.ts +1 -175
- package/lib/steps/index.d.ts +1 -96
- package/lib/swiper/index.d.ts +1 -66
- package/lib/switcher/index.d.ts +1 -114
- package/lib/table/index.d.ts +1 -230
- package/lib/tag/index.d.ts +1 -85
- package/lib/tag-input/index.d.ts +5 -378
- package/lib/tag-input/tag-input.d.ts +1 -1
- package/lib/timeline/index.d.ts +1 -40
- package/lib/transfer/index.d.ts +1 -136
- package/lib/tree/index.d.ts +1 -227
- package/lib/upload/index.d.ts +579 -1
- package/lib/upload/index.js +1 -1
- package/lib/virtual-render/index.d.ts +1 -256
- package/lib/volar.components.d.ts +97 -28
- package/package.json +1 -1
package/lib/upload/index.d.ts
CHANGED
@@ -1,2 +1,580 @@
|
|
1
|
-
|
1
|
+
declare const Upload: {
|
2
|
+
new (...args: any[]): {
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
4
|
+
$data: {};
|
5
|
+
$props: Partial<{
|
6
|
+
data: import("./upload.type").ExtraFormData | import("./upload.type").ExtraFormData[];
|
7
|
+
header: import("./upload.type").HeaderDataAttr | import("./upload.type").HeaderDataAttr[];
|
8
|
+
name: string;
|
9
|
+
disabled: boolean;
|
10
|
+
theme: "button" | "picture" | "draggable";
|
11
|
+
extCls: string;
|
12
|
+
size: number | import("./upload.type").MaxSize;
|
13
|
+
multiple: boolean;
|
14
|
+
tip: string;
|
15
|
+
files: import("./upload.type").UploadFile[];
|
16
|
+
autoUpload: boolean;
|
17
|
+
delayTime: number;
|
18
|
+
method: string;
|
19
|
+
handleResCode: (res: import("./upload.type").APIResponse) => boolean;
|
20
|
+
headers: Headers;
|
21
|
+
withCredentials: boolean;
|
22
|
+
formDataAttributes: import("./upload.type").FormDataAttr | import("./upload.type").FormDataAttr[];
|
23
|
+
beforeUpload: (file: import("./upload.type").UploadRawFile) => boolean | Promise<boolean>;
|
24
|
+
beforeRemove: (file: import("./upload.type").UploadFile, uploadFiles: import("./upload.type").UploadFile[]) => boolean | Promise<boolean>;
|
25
|
+
sliceUpload: boolean;
|
26
|
+
sliceUrl: string;
|
27
|
+
mergeUrl: string;
|
28
|
+
chunkSize: number;
|
29
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
30
|
+
theme: {
|
31
|
+
type: import("vue").PropType<"button" | "picture" | "draggable">;
|
32
|
+
default: "button" | "picture" | "draggable";
|
33
|
+
validator: (val: import("./upload.type").EThemes) => boolean;
|
34
|
+
};
|
35
|
+
files: {
|
36
|
+
type: import("vue").PropType<import("./upload.type").UploadFile[]>;
|
37
|
+
default: () => import("./upload.type").UploadFile[];
|
38
|
+
};
|
39
|
+
name: {
|
40
|
+
type: StringConstructor;
|
41
|
+
default: string;
|
42
|
+
};
|
43
|
+
multiple: {
|
44
|
+
type: BooleanConstructor;
|
45
|
+
default: boolean;
|
46
|
+
};
|
47
|
+
disabled: {
|
48
|
+
type: BooleanConstructor;
|
49
|
+
default: boolean;
|
50
|
+
};
|
51
|
+
autoUpload: {
|
52
|
+
type: BooleanConstructor;
|
53
|
+
default: boolean;
|
54
|
+
};
|
55
|
+
accept: {
|
56
|
+
type: StringConstructor;
|
57
|
+
};
|
58
|
+
delayTime: {
|
59
|
+
type: NumberConstructor;
|
60
|
+
default: number;
|
61
|
+
};
|
62
|
+
url: {
|
63
|
+
type: StringConstructor;
|
64
|
+
required: boolean;
|
65
|
+
};
|
66
|
+
method: {
|
67
|
+
type: StringConstructor;
|
68
|
+
default: string;
|
69
|
+
};
|
70
|
+
size: {
|
71
|
+
type: import("vue").PropType<number | import("./upload.type").MaxSize>;
|
72
|
+
default(): {
|
73
|
+
maxFileSize: number;
|
74
|
+
maxImgSize: number;
|
75
|
+
};
|
76
|
+
};
|
77
|
+
handleResCode: {
|
78
|
+
type: import("vue").PropType<(res: import("./upload.type").APIResponse) => boolean>;
|
79
|
+
default(res: import("./upload.type").APIResponse): boolean;
|
80
|
+
};
|
81
|
+
headers: {
|
82
|
+
type: import("vue").PropType<Headers>;
|
83
|
+
default: () => {};
|
84
|
+
};
|
85
|
+
header: {
|
86
|
+
type: import("vue").PropType<import("./upload.type").HeaderDataAttr | import("./upload.type").HeaderDataAttr[]>;
|
87
|
+
default: () => any[];
|
88
|
+
};
|
89
|
+
tip: {
|
90
|
+
type: StringConstructor;
|
91
|
+
default: string;
|
92
|
+
};
|
93
|
+
validateName: {
|
94
|
+
type: RegExpConstructor;
|
95
|
+
};
|
96
|
+
withCredentials: {
|
97
|
+
type: BooleanConstructor;
|
98
|
+
default: boolean;
|
99
|
+
};
|
100
|
+
limit: NumberConstructor;
|
101
|
+
data: {
|
102
|
+
type: import("vue").PropType<import("./upload.type").ExtraFormData | import("./upload.type").ExtraFormData[]>;
|
103
|
+
default: () => any[];
|
104
|
+
};
|
105
|
+
formDataAttributes: {
|
106
|
+
type: import("vue").PropType<import("./upload.type").FormDataAttr | import("./upload.type").FormDataAttr[]>;
|
107
|
+
default: () => any[];
|
108
|
+
};
|
109
|
+
extCls: {
|
110
|
+
type: StringConstructor;
|
111
|
+
default: string;
|
112
|
+
};
|
113
|
+
customRequest: import("vue").PropType<import("./upload.type").UploadRequestHandler>;
|
114
|
+
beforeUpload: {
|
115
|
+
type: import("vue").PropType<(file: import("./upload.type").UploadRawFile) => boolean | Promise<boolean>>;
|
116
|
+
default: any;
|
117
|
+
};
|
118
|
+
beforeRemove: {
|
119
|
+
type: import("vue").PropType<(file: import("./upload.type").UploadFile, uploadFiles: import("./upload.type").UploadFile[]) => boolean | Promise<boolean>>;
|
120
|
+
default: any;
|
121
|
+
};
|
122
|
+
sliceUpload: {
|
123
|
+
type: BooleanConstructor;
|
124
|
+
default: boolean;
|
125
|
+
};
|
126
|
+
sliceUrl: {
|
127
|
+
type: StringConstructor;
|
128
|
+
default: string;
|
129
|
+
};
|
130
|
+
mergeUrl: {
|
131
|
+
type: StringConstructor;
|
132
|
+
default: string;
|
133
|
+
};
|
134
|
+
chunkSize: {
|
135
|
+
type: NumberConstructor;
|
136
|
+
default: number;
|
137
|
+
};
|
138
|
+
}>> & {
|
139
|
+
"onOn-exceed"?: (...args: any[]) => any;
|
140
|
+
"onOn-progress"?: (...args: any[]) => any;
|
141
|
+
"onOn-success"?: (...args: any[]) => any;
|
142
|
+
"onOn-error"?: (...args: any[]) => any;
|
143
|
+
"onOn-delete"?: (...args: any[]) => any;
|
144
|
+
"onOn-done"?: (...args: any[]) => any;
|
145
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "data" | "header" | "name" | "disabled" | "theme" | "extCls" | "size" | "multiple" | "tip" | "files" | "autoUpload" | "delayTime" | "method" | "handleResCode" | "headers" | "withCredentials" | "formDataAttributes" | "beforeUpload" | "beforeRemove" | "sliceUpload" | "sliceUrl" | "mergeUrl" | "chunkSize">;
|
146
|
+
$attrs: {
|
147
|
+
[x: string]: unknown;
|
148
|
+
};
|
149
|
+
$refs: {
|
150
|
+
[x: string]: unknown;
|
151
|
+
};
|
152
|
+
$slots: Readonly<{
|
153
|
+
[name: string]: import("vue").Slot;
|
154
|
+
}>;
|
155
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
156
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
157
|
+
$emit: (event: "on-exceed" | "on-progress" | "on-success" | "on-error" | "on-delete" | "on-done", ...args: any[]) => void;
|
158
|
+
$el: any;
|
159
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
160
|
+
theme: {
|
161
|
+
type: import("vue").PropType<"button" | "picture" | "draggable">;
|
162
|
+
default: "button" | "picture" | "draggable";
|
163
|
+
validator: (val: import("./upload.type").EThemes) => boolean;
|
164
|
+
};
|
165
|
+
files: {
|
166
|
+
type: import("vue").PropType<import("./upload.type").UploadFile[]>;
|
167
|
+
default: () => import("./upload.type").UploadFile[];
|
168
|
+
};
|
169
|
+
name: {
|
170
|
+
type: StringConstructor;
|
171
|
+
default: string;
|
172
|
+
};
|
173
|
+
multiple: {
|
174
|
+
type: BooleanConstructor;
|
175
|
+
default: boolean;
|
176
|
+
};
|
177
|
+
disabled: {
|
178
|
+
type: BooleanConstructor;
|
179
|
+
default: boolean;
|
180
|
+
};
|
181
|
+
autoUpload: {
|
182
|
+
type: BooleanConstructor;
|
183
|
+
default: boolean;
|
184
|
+
};
|
185
|
+
accept: {
|
186
|
+
type: StringConstructor;
|
187
|
+
};
|
188
|
+
delayTime: {
|
189
|
+
type: NumberConstructor;
|
190
|
+
default: number;
|
191
|
+
};
|
192
|
+
url: {
|
193
|
+
type: StringConstructor;
|
194
|
+
required: boolean;
|
195
|
+
};
|
196
|
+
method: {
|
197
|
+
type: StringConstructor;
|
198
|
+
default: string;
|
199
|
+
};
|
200
|
+
size: {
|
201
|
+
type: import("vue").PropType<number | import("./upload.type").MaxSize>;
|
202
|
+
default(): {
|
203
|
+
maxFileSize: number;
|
204
|
+
maxImgSize: number;
|
205
|
+
};
|
206
|
+
};
|
207
|
+
handleResCode: {
|
208
|
+
type: import("vue").PropType<(res: import("./upload.type").APIResponse) => boolean>;
|
209
|
+
default(res: import("./upload.type").APIResponse): boolean;
|
210
|
+
};
|
211
|
+
headers: {
|
212
|
+
type: import("vue").PropType<Headers>;
|
213
|
+
default: () => {};
|
214
|
+
};
|
215
|
+
header: {
|
216
|
+
type: import("vue").PropType<import("./upload.type").HeaderDataAttr | import("./upload.type").HeaderDataAttr[]>;
|
217
|
+
default: () => any[];
|
218
|
+
};
|
219
|
+
tip: {
|
220
|
+
type: StringConstructor;
|
221
|
+
default: string;
|
222
|
+
};
|
223
|
+
validateName: {
|
224
|
+
type: RegExpConstructor;
|
225
|
+
};
|
226
|
+
withCredentials: {
|
227
|
+
type: BooleanConstructor;
|
228
|
+
default: boolean;
|
229
|
+
};
|
230
|
+
limit: NumberConstructor;
|
231
|
+
data: {
|
232
|
+
type: import("vue").PropType<import("./upload.type").ExtraFormData | import("./upload.type").ExtraFormData[]>;
|
233
|
+
default: () => any[];
|
234
|
+
};
|
235
|
+
formDataAttributes: {
|
236
|
+
type: import("vue").PropType<import("./upload.type").FormDataAttr | import("./upload.type").FormDataAttr[]>;
|
237
|
+
default: () => any[];
|
238
|
+
};
|
239
|
+
extCls: {
|
240
|
+
type: StringConstructor;
|
241
|
+
default: string;
|
242
|
+
};
|
243
|
+
customRequest: import("vue").PropType<import("./upload.type").UploadRequestHandler>;
|
244
|
+
beforeUpload: {
|
245
|
+
type: import("vue").PropType<(file: import("./upload.type").UploadRawFile) => boolean | Promise<boolean>>;
|
246
|
+
default: any;
|
247
|
+
};
|
248
|
+
beforeRemove: {
|
249
|
+
type: import("vue").PropType<(file: import("./upload.type").UploadFile, uploadFiles: import("./upload.type").UploadFile[]) => boolean | Promise<boolean>>;
|
250
|
+
default: any;
|
251
|
+
};
|
252
|
+
sliceUpload: {
|
253
|
+
type: BooleanConstructor;
|
254
|
+
default: boolean;
|
255
|
+
};
|
256
|
+
sliceUrl: {
|
257
|
+
type: StringConstructor;
|
258
|
+
default: string;
|
259
|
+
};
|
260
|
+
mergeUrl: {
|
261
|
+
type: StringConstructor;
|
262
|
+
default: string;
|
263
|
+
};
|
264
|
+
chunkSize: {
|
265
|
+
type: NumberConstructor;
|
266
|
+
default: number;
|
267
|
+
};
|
268
|
+
}>> & {
|
269
|
+
"onOn-exceed"?: (...args: any[]) => any;
|
270
|
+
"onOn-progress"?: (...args: any[]) => any;
|
271
|
+
"onOn-success"?: (...args: any[]) => any;
|
272
|
+
"onOn-error"?: (...args: any[]) => any;
|
273
|
+
"onOn-delete"?: (...args: any[]) => any;
|
274
|
+
"onOn-done"?: (...args: any[]) => any;
|
275
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("on-exceed" | "on-progress" | "on-success" | "on-error" | "on-delete" | "on-done")[], string, {
|
276
|
+
data: import("./upload.type").ExtraFormData | import("./upload.type").ExtraFormData[];
|
277
|
+
header: import("./upload.type").HeaderDataAttr | import("./upload.type").HeaderDataAttr[];
|
278
|
+
name: string;
|
279
|
+
disabled: boolean;
|
280
|
+
theme: "button" | "picture" | "draggable";
|
281
|
+
extCls: string;
|
282
|
+
size: number | import("./upload.type").MaxSize;
|
283
|
+
multiple: boolean;
|
284
|
+
tip: string;
|
285
|
+
files: import("./upload.type").UploadFile[];
|
286
|
+
autoUpload: boolean;
|
287
|
+
delayTime: number;
|
288
|
+
method: string;
|
289
|
+
handleResCode: (res: import("./upload.type").APIResponse) => boolean;
|
290
|
+
headers: Headers;
|
291
|
+
withCredentials: boolean;
|
292
|
+
formDataAttributes: import("./upload.type").FormDataAttr | import("./upload.type").FormDataAttr[];
|
293
|
+
beforeUpload: (file: import("./upload.type").UploadRawFile) => boolean | Promise<boolean>;
|
294
|
+
beforeRemove: (file: import("./upload.type").UploadFile, uploadFiles: import("./upload.type").UploadFile[]) => boolean | Promise<boolean>;
|
295
|
+
sliceUpload: boolean;
|
296
|
+
sliceUrl: string;
|
297
|
+
mergeUrl: string;
|
298
|
+
chunkSize: number;
|
299
|
+
}> & {
|
300
|
+
beforeCreate?: (() => void) | (() => void)[];
|
301
|
+
created?: (() => void) | (() => void)[];
|
302
|
+
beforeMount?: (() => void) | (() => void)[];
|
303
|
+
mounted?: (() => void) | (() => void)[];
|
304
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
305
|
+
updated?: (() => void) | (() => void)[];
|
306
|
+
activated?: (() => void) | (() => void)[];
|
307
|
+
deactivated?: (() => void) | (() => void)[];
|
308
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
309
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
310
|
+
destroyed?: (() => void) | (() => void)[];
|
311
|
+
unmounted?: (() => void) | (() => void)[];
|
312
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
313
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
314
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
|
315
|
+
};
|
316
|
+
$forceUpdate: () => void;
|
317
|
+
$nextTick: typeof import("vue").nextTick;
|
318
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
319
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
320
|
+
theme: {
|
321
|
+
type: import("vue").PropType<"button" | "picture" | "draggable">;
|
322
|
+
default: "button" | "picture" | "draggable";
|
323
|
+
validator: (val: import("./upload.type").EThemes) => boolean;
|
324
|
+
};
|
325
|
+
files: {
|
326
|
+
type: import("vue").PropType<import("./upload.type").UploadFile[]>;
|
327
|
+
default: () => import("./upload.type").UploadFile[];
|
328
|
+
};
|
329
|
+
name: {
|
330
|
+
type: StringConstructor;
|
331
|
+
default: string;
|
332
|
+
};
|
333
|
+
multiple: {
|
334
|
+
type: BooleanConstructor;
|
335
|
+
default: boolean;
|
336
|
+
};
|
337
|
+
disabled: {
|
338
|
+
type: BooleanConstructor;
|
339
|
+
default: boolean;
|
340
|
+
};
|
341
|
+
autoUpload: {
|
342
|
+
type: BooleanConstructor;
|
343
|
+
default: boolean;
|
344
|
+
};
|
345
|
+
accept: {
|
346
|
+
type: StringConstructor;
|
347
|
+
};
|
348
|
+
delayTime: {
|
349
|
+
type: NumberConstructor;
|
350
|
+
default: number;
|
351
|
+
};
|
352
|
+
url: {
|
353
|
+
type: StringConstructor;
|
354
|
+
required: boolean;
|
355
|
+
};
|
356
|
+
method: {
|
357
|
+
type: StringConstructor;
|
358
|
+
default: string;
|
359
|
+
};
|
360
|
+
size: {
|
361
|
+
type: import("vue").PropType<number | import("./upload.type").MaxSize>;
|
362
|
+
default(): {
|
363
|
+
maxFileSize: number;
|
364
|
+
maxImgSize: number;
|
365
|
+
};
|
366
|
+
};
|
367
|
+
handleResCode: {
|
368
|
+
type: import("vue").PropType<(res: import("./upload.type").APIResponse) => boolean>;
|
369
|
+
default(res: import("./upload.type").APIResponse): boolean;
|
370
|
+
};
|
371
|
+
headers: {
|
372
|
+
type: import("vue").PropType<Headers>;
|
373
|
+
default: () => {};
|
374
|
+
};
|
375
|
+
header: {
|
376
|
+
type: import("vue").PropType<import("./upload.type").HeaderDataAttr | import("./upload.type").HeaderDataAttr[]>;
|
377
|
+
default: () => any[];
|
378
|
+
};
|
379
|
+
tip: {
|
380
|
+
type: StringConstructor;
|
381
|
+
default: string;
|
382
|
+
};
|
383
|
+
validateName: {
|
384
|
+
type: RegExpConstructor;
|
385
|
+
};
|
386
|
+
withCredentials: {
|
387
|
+
type: BooleanConstructor;
|
388
|
+
default: boolean;
|
389
|
+
};
|
390
|
+
limit: NumberConstructor;
|
391
|
+
data: {
|
392
|
+
type: import("vue").PropType<import("./upload.type").ExtraFormData | import("./upload.type").ExtraFormData[]>;
|
393
|
+
default: () => any[];
|
394
|
+
};
|
395
|
+
formDataAttributes: {
|
396
|
+
type: import("vue").PropType<import("./upload.type").FormDataAttr | import("./upload.type").FormDataAttr[]>;
|
397
|
+
default: () => any[];
|
398
|
+
};
|
399
|
+
extCls: {
|
400
|
+
type: StringConstructor;
|
401
|
+
default: string;
|
402
|
+
};
|
403
|
+
customRequest: import("vue").PropType<import("./upload.type").UploadRequestHandler>;
|
404
|
+
beforeUpload: {
|
405
|
+
type: import("vue").PropType<(file: import("./upload.type").UploadRawFile) => boolean | Promise<boolean>>;
|
406
|
+
default: any;
|
407
|
+
};
|
408
|
+
beforeRemove: {
|
409
|
+
type: import("vue").PropType<(file: import("./upload.type").UploadFile, uploadFiles: import("./upload.type").UploadFile[]) => boolean | Promise<boolean>>;
|
410
|
+
default: any;
|
411
|
+
};
|
412
|
+
sliceUpload: {
|
413
|
+
type: BooleanConstructor;
|
414
|
+
default: boolean;
|
415
|
+
};
|
416
|
+
sliceUrl: {
|
417
|
+
type: StringConstructor;
|
418
|
+
default: string;
|
419
|
+
};
|
420
|
+
mergeUrl: {
|
421
|
+
type: StringConstructor;
|
422
|
+
default: string;
|
423
|
+
};
|
424
|
+
chunkSize: {
|
425
|
+
type: NumberConstructor;
|
426
|
+
default: number;
|
427
|
+
};
|
428
|
+
}>> & {
|
429
|
+
"onOn-exceed"?: (...args: any[]) => any;
|
430
|
+
"onOn-progress"?: (...args: any[]) => any;
|
431
|
+
"onOn-success"?: (...args: any[]) => any;
|
432
|
+
"onOn-error"?: (...args: any[]) => any;
|
433
|
+
"onOn-delete"?: (...args: any[]) => any;
|
434
|
+
"onOn-done"?: (...args: any[]) => any;
|
435
|
+
} & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
|
436
|
+
__isFragment?: never;
|
437
|
+
__isTeleport?: never;
|
438
|
+
__isSuspense?: never;
|
439
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
440
|
+
theme: {
|
441
|
+
type: import("vue").PropType<"button" | "picture" | "draggable">;
|
442
|
+
default: "button" | "picture" | "draggable";
|
443
|
+
validator: (val: import("./upload.type").EThemes) => boolean;
|
444
|
+
};
|
445
|
+
files: {
|
446
|
+
type: import("vue").PropType<import("./upload.type").UploadFile[]>;
|
447
|
+
default: () => import("./upload.type").UploadFile[];
|
448
|
+
};
|
449
|
+
name: {
|
450
|
+
type: StringConstructor;
|
451
|
+
default: string;
|
452
|
+
};
|
453
|
+
multiple: {
|
454
|
+
type: BooleanConstructor;
|
455
|
+
default: boolean;
|
456
|
+
};
|
457
|
+
disabled: {
|
458
|
+
type: BooleanConstructor;
|
459
|
+
default: boolean;
|
460
|
+
};
|
461
|
+
autoUpload: {
|
462
|
+
type: BooleanConstructor;
|
463
|
+
default: boolean;
|
464
|
+
};
|
465
|
+
accept: {
|
466
|
+
type: StringConstructor;
|
467
|
+
};
|
468
|
+
delayTime: {
|
469
|
+
type: NumberConstructor;
|
470
|
+
default: number;
|
471
|
+
};
|
472
|
+
url: {
|
473
|
+
type: StringConstructor;
|
474
|
+
required: boolean;
|
475
|
+
};
|
476
|
+
method: {
|
477
|
+
type: StringConstructor;
|
478
|
+
default: string;
|
479
|
+
};
|
480
|
+
size: {
|
481
|
+
type: import("vue").PropType<number | import("./upload.type").MaxSize>;
|
482
|
+
default(): {
|
483
|
+
maxFileSize: number;
|
484
|
+
maxImgSize: number;
|
485
|
+
};
|
486
|
+
};
|
487
|
+
handleResCode: {
|
488
|
+
type: import("vue").PropType<(res: import("./upload.type").APIResponse) => boolean>;
|
489
|
+
default(res: import("./upload.type").APIResponse): boolean;
|
490
|
+
};
|
491
|
+
headers: {
|
492
|
+
type: import("vue").PropType<Headers>;
|
493
|
+
default: () => {};
|
494
|
+
};
|
495
|
+
header: {
|
496
|
+
type: import("vue").PropType<import("./upload.type").HeaderDataAttr | import("./upload.type").HeaderDataAttr[]>;
|
497
|
+
default: () => any[];
|
498
|
+
};
|
499
|
+
tip: {
|
500
|
+
type: StringConstructor;
|
501
|
+
default: string;
|
502
|
+
};
|
503
|
+
validateName: {
|
504
|
+
type: RegExpConstructor;
|
505
|
+
};
|
506
|
+
withCredentials: {
|
507
|
+
type: BooleanConstructor;
|
508
|
+
default: boolean;
|
509
|
+
};
|
510
|
+
limit: NumberConstructor;
|
511
|
+
data: {
|
512
|
+
type: import("vue").PropType<import("./upload.type").ExtraFormData | import("./upload.type").ExtraFormData[]>;
|
513
|
+
default: () => any[];
|
514
|
+
};
|
515
|
+
formDataAttributes: {
|
516
|
+
type: import("vue").PropType<import("./upload.type").FormDataAttr | import("./upload.type").FormDataAttr[]>;
|
517
|
+
default: () => any[];
|
518
|
+
};
|
519
|
+
extCls: {
|
520
|
+
type: StringConstructor;
|
521
|
+
default: string;
|
522
|
+
};
|
523
|
+
customRequest: import("vue").PropType<import("./upload.type").UploadRequestHandler>;
|
524
|
+
beforeUpload: {
|
525
|
+
type: import("vue").PropType<(file: import("./upload.type").UploadRawFile) => boolean | Promise<boolean>>;
|
526
|
+
default: any;
|
527
|
+
};
|
528
|
+
beforeRemove: {
|
529
|
+
type: import("vue").PropType<(file: import("./upload.type").UploadFile, uploadFiles: import("./upload.type").UploadFile[]) => boolean | Promise<boolean>>;
|
530
|
+
default: any;
|
531
|
+
};
|
532
|
+
sliceUpload: {
|
533
|
+
type: BooleanConstructor;
|
534
|
+
default: boolean;
|
535
|
+
};
|
536
|
+
sliceUrl: {
|
537
|
+
type: StringConstructor;
|
538
|
+
default: string;
|
539
|
+
};
|
540
|
+
mergeUrl: {
|
541
|
+
type: StringConstructor;
|
542
|
+
default: string;
|
543
|
+
};
|
544
|
+
chunkSize: {
|
545
|
+
type: NumberConstructor;
|
546
|
+
default: number;
|
547
|
+
};
|
548
|
+
}>> & {
|
549
|
+
"onOn-exceed"?: (...args: any[]) => any;
|
550
|
+
"onOn-progress"?: (...args: any[]) => any;
|
551
|
+
"onOn-success"?: (...args: any[]) => any;
|
552
|
+
"onOn-error"?: (...args: any[]) => any;
|
553
|
+
"onOn-delete"?: (...args: any[]) => any;
|
554
|
+
"onOn-done"?: (...args: any[]) => any;
|
555
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("on-exceed" | "on-progress" | "on-success" | "on-error" | "on-delete" | "on-done")[], "on-exceed" | "on-progress" | "on-success" | "on-error" | "on-delete" | "on-done", {
|
556
|
+
data: import("./upload.type").ExtraFormData | import("./upload.type").ExtraFormData[];
|
557
|
+
header: import("./upload.type").HeaderDataAttr | import("./upload.type").HeaderDataAttr[];
|
558
|
+
name: string;
|
559
|
+
disabled: boolean;
|
560
|
+
theme: "button" | "picture" | "draggable";
|
561
|
+
extCls: string;
|
562
|
+
size: number | import("./upload.type").MaxSize;
|
563
|
+
multiple: boolean;
|
564
|
+
tip: string;
|
565
|
+
files: import("./upload.type").UploadFile[];
|
566
|
+
autoUpload: boolean;
|
567
|
+
delayTime: number;
|
568
|
+
method: string;
|
569
|
+
handleResCode: (res: import("./upload.type").APIResponse) => boolean;
|
570
|
+
headers: Headers;
|
571
|
+
withCredentials: boolean;
|
572
|
+
formDataAttributes: import("./upload.type").FormDataAttr | import("./upload.type").FormDataAttr[];
|
573
|
+
beforeUpload: (file: import("./upload.type").UploadRawFile) => boolean | Promise<boolean>;
|
574
|
+
beforeRemove: (file: import("./upload.type").UploadFile, uploadFiles: import("./upload.type").UploadFile[]) => boolean | Promise<boolean>;
|
575
|
+
sliceUpload: boolean;
|
576
|
+
sliceUrl: string;
|
577
|
+
mergeUrl: string;
|
578
|
+
chunkSize: number;
|
579
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
2
580
|
export default Upload;
|