@opentinyvue/vue-file-upload 2.21.0
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/LICENSE +22 -0
- package/index.d.ts +13 -0
- package/lib/index.js +388 -0
- package/lib/mobile-first.js +620 -0
- package/lib/mobile.js +177 -0
- package/lib/pc.js +544 -0
- package/package.json +32 -0
- package/src/index.d.ts +389 -0
- package/src/mobile-first.vue.d.ts +2 -0
- package/src/mobile.vue.d.ts +2 -0
- package/src/pc.vue.d.ts +2 -0
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
export declare const $constants: {
|
|
2
|
+
FILE_UPLOAD_INNER_TEMPLATE: string;
|
|
3
|
+
UPLOAD_INNER: string;
|
|
4
|
+
UPLOAD_INNER_TEMPLATE: string;
|
|
5
|
+
UPLOAD_LIST_INNER: string;
|
|
6
|
+
UPLOAD_LIST_INNER_TEMPLATE: string;
|
|
7
|
+
ONLY_SUPPORT: string;
|
|
8
|
+
COMMA: string;
|
|
9
|
+
FILE_NOT_LESS_THAN: string;
|
|
10
|
+
FILE_NOT_MORE_THAN: string;
|
|
11
|
+
FILE_SIZE_RANGE: string;
|
|
12
|
+
NUMBER_LIMIT: string;
|
|
13
|
+
FILE_STATUS: {
|
|
14
|
+
READY: string;
|
|
15
|
+
SUCESS: string;
|
|
16
|
+
UPLOADING: string;
|
|
17
|
+
FAIL: string;
|
|
18
|
+
DOWNLOADING: string;
|
|
19
|
+
};
|
|
20
|
+
LIST_TYPE: {
|
|
21
|
+
TEXT: string;
|
|
22
|
+
PICTURE_CARD: string;
|
|
23
|
+
PICTURE: string;
|
|
24
|
+
THUMB: string;
|
|
25
|
+
PICTURE_SINGLE: string;
|
|
26
|
+
DRAG_SINGLE: string;
|
|
27
|
+
SAAS: string;
|
|
28
|
+
};
|
|
29
|
+
EDM: {
|
|
30
|
+
CHUNKINIT: string;
|
|
31
|
+
FILESIZE: string;
|
|
32
|
+
CHUNKS: string;
|
|
33
|
+
FILENAME: string;
|
|
34
|
+
ISCHECKCODE: string;
|
|
35
|
+
CHECKCODE: string;
|
|
36
|
+
MULTIPART: string;
|
|
37
|
+
DOCID: string;
|
|
38
|
+
CHUNK: string;
|
|
39
|
+
SINGLEUPLOAD: string;
|
|
40
|
+
LOWERNAME: string;
|
|
41
|
+
FOLDERKEY: string;
|
|
42
|
+
FORMAT: string;
|
|
43
|
+
WATER: string;
|
|
44
|
+
SOURCE: string;
|
|
45
|
+
URLCONTS: string;
|
|
46
|
+
EDMTOKEN: string;
|
|
47
|
+
TRACEID: string;
|
|
48
|
+
TEXT: string;
|
|
49
|
+
JSLIB: string;
|
|
50
|
+
I18NKEY: string;
|
|
51
|
+
LARGEFILEKEY: string;
|
|
52
|
+
EXCEED: string;
|
|
53
|
+
SIZE: string;
|
|
54
|
+
SIZE_17G: number;
|
|
55
|
+
SIZE_2G: number;
|
|
56
|
+
SIZE_64M: number;
|
|
57
|
+
SIZE_32M: number;
|
|
58
|
+
SIZE_20M: number;
|
|
59
|
+
SIZE_16M: number;
|
|
60
|
+
SIZE_8M: number;
|
|
61
|
+
SIZE_4M: number;
|
|
62
|
+
SIZE_2M: number;
|
|
63
|
+
SIZE_0M: number;
|
|
64
|
+
FILEEMPTY: string;
|
|
65
|
+
KIASCANTIP: string;
|
|
66
|
+
FILENAMEEXCEEDS: string;
|
|
67
|
+
THEFILENAME: string;
|
|
68
|
+
CALCHASH: string;
|
|
69
|
+
KIASTATUS: number;
|
|
70
|
+
NumberExceed: string;
|
|
71
|
+
notSupport: string;
|
|
72
|
+
NOT_SUPPORT_NO_SUFFIX: string;
|
|
73
|
+
STATUS_SPECIAL_CHARACTERS: number;
|
|
74
|
+
NOT_SUPPORT_SPECIAL_CHARACTERS: string;
|
|
75
|
+
DOC_PREVIEW: string;
|
|
76
|
+
};
|
|
77
|
+
IMAGE_TYPE: string;
|
|
78
|
+
FILE_TYPE: {
|
|
79
|
+
EXCEL: string;
|
|
80
|
+
FILE: string;
|
|
81
|
+
PDF: string;
|
|
82
|
+
PICTURE: string;
|
|
83
|
+
PPT: string;
|
|
84
|
+
TEXT: string;
|
|
85
|
+
WORD: string;
|
|
86
|
+
ZIP: string;
|
|
87
|
+
VIDEO: string;
|
|
88
|
+
AUDIO: string;
|
|
89
|
+
};
|
|
90
|
+
SOURCE_TYPE: {
|
|
91
|
+
SOURCE_VIDEO: string;
|
|
92
|
+
SOURCE_AUDIO: string;
|
|
93
|
+
SOURCE_PICTURE: string;
|
|
94
|
+
};
|
|
95
|
+
MODE: {
|
|
96
|
+
BUBBLE: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
export declare const fileUploadProps: {
|
|
100
|
+
_constants: {
|
|
101
|
+
type: ObjectConstructor;
|
|
102
|
+
default: () => {
|
|
103
|
+
FILE_UPLOAD_INNER_TEMPLATE: string;
|
|
104
|
+
UPLOAD_INNER: string;
|
|
105
|
+
UPLOAD_INNER_TEMPLATE: string;
|
|
106
|
+
UPLOAD_LIST_INNER: string;
|
|
107
|
+
UPLOAD_LIST_INNER_TEMPLATE: string;
|
|
108
|
+
ONLY_SUPPORT: string;
|
|
109
|
+
COMMA: string;
|
|
110
|
+
FILE_NOT_LESS_THAN: string;
|
|
111
|
+
FILE_NOT_MORE_THAN: string;
|
|
112
|
+
FILE_SIZE_RANGE: string;
|
|
113
|
+
NUMBER_LIMIT: string;
|
|
114
|
+
FILE_STATUS: {
|
|
115
|
+
READY: string;
|
|
116
|
+
SUCESS: string;
|
|
117
|
+
UPLOADING: string;
|
|
118
|
+
FAIL: string;
|
|
119
|
+
DOWNLOADING: string;
|
|
120
|
+
};
|
|
121
|
+
LIST_TYPE: {
|
|
122
|
+
TEXT: string;
|
|
123
|
+
PICTURE_CARD: string;
|
|
124
|
+
PICTURE: string;
|
|
125
|
+
THUMB: string;
|
|
126
|
+
PICTURE_SINGLE: string;
|
|
127
|
+
DRAG_SINGLE: string;
|
|
128
|
+
SAAS: string;
|
|
129
|
+
};
|
|
130
|
+
EDM: {
|
|
131
|
+
CHUNKINIT: string;
|
|
132
|
+
FILESIZE: string;
|
|
133
|
+
CHUNKS: string;
|
|
134
|
+
FILENAME: string;
|
|
135
|
+
ISCHECKCODE: string;
|
|
136
|
+
CHECKCODE: string;
|
|
137
|
+
MULTIPART: string;
|
|
138
|
+
DOCID: string;
|
|
139
|
+
CHUNK: string;
|
|
140
|
+
SINGLEUPLOAD: string;
|
|
141
|
+
LOWERNAME: string;
|
|
142
|
+
FOLDERKEY: string;
|
|
143
|
+
FORMAT: string;
|
|
144
|
+
WATER: string;
|
|
145
|
+
SOURCE: string;
|
|
146
|
+
URLCONTS: string;
|
|
147
|
+
EDMTOKEN: string;
|
|
148
|
+
TRACEID: string;
|
|
149
|
+
TEXT: string;
|
|
150
|
+
JSLIB: string;
|
|
151
|
+
I18NKEY: string;
|
|
152
|
+
LARGEFILEKEY: string;
|
|
153
|
+
EXCEED: string;
|
|
154
|
+
SIZE: string;
|
|
155
|
+
SIZE_17G: number;
|
|
156
|
+
SIZE_2G: number;
|
|
157
|
+
SIZE_64M: number;
|
|
158
|
+
SIZE_32M: number;
|
|
159
|
+
SIZE_20M: number;
|
|
160
|
+
SIZE_16M: number;
|
|
161
|
+
SIZE_8M: number;
|
|
162
|
+
SIZE_4M: number;
|
|
163
|
+
SIZE_2M: number;
|
|
164
|
+
SIZE_0M: number;
|
|
165
|
+
FILEEMPTY: string;
|
|
166
|
+
KIASCANTIP: string;
|
|
167
|
+
FILENAMEEXCEEDS: string;
|
|
168
|
+
THEFILENAME: string;
|
|
169
|
+
CALCHASH: string;
|
|
170
|
+
KIASTATUS: number;
|
|
171
|
+
NumberExceed: string;
|
|
172
|
+
notSupport: string;
|
|
173
|
+
NOT_SUPPORT_NO_SUFFIX: string;
|
|
174
|
+
STATUS_SPECIAL_CHARACTERS: number;
|
|
175
|
+
NOT_SUPPORT_SPECIAL_CHARACTERS: string;
|
|
176
|
+
DOC_PREVIEW: string;
|
|
177
|
+
};
|
|
178
|
+
IMAGE_TYPE: string;
|
|
179
|
+
FILE_TYPE: {
|
|
180
|
+
EXCEL: string;
|
|
181
|
+
FILE: string;
|
|
182
|
+
PDF: string;
|
|
183
|
+
PICTURE: string;
|
|
184
|
+
PPT: string;
|
|
185
|
+
TEXT: string;
|
|
186
|
+
WORD: string;
|
|
187
|
+
ZIP: string;
|
|
188
|
+
VIDEO: string;
|
|
189
|
+
AUDIO: string;
|
|
190
|
+
};
|
|
191
|
+
SOURCE_TYPE: {
|
|
192
|
+
SOURCE_VIDEO: string;
|
|
193
|
+
SOURCE_AUDIO: string;
|
|
194
|
+
SOURCE_PICTURE: string;
|
|
195
|
+
};
|
|
196
|
+
MODE: {
|
|
197
|
+
BUBBLE: string;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
accept: StringConstructor;
|
|
202
|
+
action: StringConstructor;
|
|
203
|
+
autoUpload: {
|
|
204
|
+
type: BooleanConstructor;
|
|
205
|
+
default: () => boolean;
|
|
206
|
+
};
|
|
207
|
+
beforeRemove: FunctionConstructor;
|
|
208
|
+
beforeUpload: FunctionConstructor;
|
|
209
|
+
data: ObjectConstructor;
|
|
210
|
+
disabled: BooleanConstructor;
|
|
211
|
+
display: {
|
|
212
|
+
type: BooleanConstructor;
|
|
213
|
+
default: () => boolean;
|
|
214
|
+
};
|
|
215
|
+
drag: BooleanConstructor;
|
|
216
|
+
dragger: BooleanConstructor;
|
|
217
|
+
edm: {
|
|
218
|
+
type: ObjectConstructor;
|
|
219
|
+
default: () => {};
|
|
220
|
+
};
|
|
221
|
+
fileIconList: {
|
|
222
|
+
type: ArrayConstructor;
|
|
223
|
+
default: () => never[];
|
|
224
|
+
};
|
|
225
|
+
fileList: {
|
|
226
|
+
type: ArrayConstructor;
|
|
227
|
+
default: () => never[];
|
|
228
|
+
};
|
|
229
|
+
fileSize: {
|
|
230
|
+
type: (ArrayConstructor | NumberConstructor)[];
|
|
231
|
+
validator(value: any): boolean;
|
|
232
|
+
};
|
|
233
|
+
fileTitle: {
|
|
234
|
+
type: StringConstructor;
|
|
235
|
+
default: () => string;
|
|
236
|
+
};
|
|
237
|
+
headerShow: {
|
|
238
|
+
type: BooleanConstructor;
|
|
239
|
+
default: () => boolean;
|
|
240
|
+
};
|
|
241
|
+
headers: {
|
|
242
|
+
type: ObjectConstructor;
|
|
243
|
+
default: () => {};
|
|
244
|
+
};
|
|
245
|
+
httpRequest: FunctionConstructor;
|
|
246
|
+
limit: NumberConstructor;
|
|
247
|
+
listType: {
|
|
248
|
+
type: StringConstructor;
|
|
249
|
+
default: () => string;
|
|
250
|
+
validator: (value: string) => boolean;
|
|
251
|
+
};
|
|
252
|
+
mergeService: {
|
|
253
|
+
type: BooleanConstructor;
|
|
254
|
+
default: () => boolean;
|
|
255
|
+
};
|
|
256
|
+
multiple: BooleanConstructor;
|
|
257
|
+
name: {
|
|
258
|
+
type: StringConstructor;
|
|
259
|
+
default: () => string;
|
|
260
|
+
};
|
|
261
|
+
openDownloadFile: {
|
|
262
|
+
type: BooleanConstructor;
|
|
263
|
+
default: () => boolean;
|
|
264
|
+
};
|
|
265
|
+
showFileList: {
|
|
266
|
+
type: BooleanConstructor;
|
|
267
|
+
default: () => boolean;
|
|
268
|
+
};
|
|
269
|
+
size: StringConstructor;
|
|
270
|
+
successStatistics: {
|
|
271
|
+
type: BooleanConstructor;
|
|
272
|
+
default: () => boolean;
|
|
273
|
+
};
|
|
274
|
+
thumbOption: {
|
|
275
|
+
type: ObjectConstructor;
|
|
276
|
+
default: () => {
|
|
277
|
+
popperClass: string;
|
|
278
|
+
width: number;
|
|
279
|
+
showDownload: boolean;
|
|
280
|
+
downloadFile: FunctionConstructor;
|
|
281
|
+
showDel: boolean;
|
|
282
|
+
icon: string;
|
|
283
|
+
showTooltip: boolean;
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
type: {
|
|
287
|
+
type: StringConstructor;
|
|
288
|
+
default: () => string;
|
|
289
|
+
};
|
|
290
|
+
uploadIcon: {
|
|
291
|
+
type: BooleanConstructor;
|
|
292
|
+
default: () => boolean;
|
|
293
|
+
};
|
|
294
|
+
withCredentials: {
|
|
295
|
+
type: BooleanConstructor;
|
|
296
|
+
default: () => boolean;
|
|
297
|
+
};
|
|
298
|
+
isFolderTitle: {
|
|
299
|
+
type: BooleanConstructor;
|
|
300
|
+
default: boolean;
|
|
301
|
+
};
|
|
302
|
+
listOption: {
|
|
303
|
+
type: ObjectConstructor;
|
|
304
|
+
default: () => {
|
|
305
|
+
showUpdate: boolean;
|
|
306
|
+
showDel: boolean;
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
maxNameLength: {
|
|
310
|
+
type: NumberConstructor;
|
|
311
|
+
default: number;
|
|
312
|
+
};
|
|
313
|
+
scale: {
|
|
314
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
315
|
+
default: number;
|
|
316
|
+
};
|
|
317
|
+
showName: {
|
|
318
|
+
type: BooleanConstructor;
|
|
319
|
+
default: boolean;
|
|
320
|
+
};
|
|
321
|
+
sourceType: {
|
|
322
|
+
type: StringConstructor;
|
|
323
|
+
default: string;
|
|
324
|
+
validator(val: any): any;
|
|
325
|
+
};
|
|
326
|
+
showTitle: {
|
|
327
|
+
type: BooleanConstructor;
|
|
328
|
+
default: boolean;
|
|
329
|
+
};
|
|
330
|
+
title: {
|
|
331
|
+
type: StringConstructor;
|
|
332
|
+
default: string;
|
|
333
|
+
};
|
|
334
|
+
displayOnly: {
|
|
335
|
+
type: BooleanConstructor;
|
|
336
|
+
default: boolean;
|
|
337
|
+
};
|
|
338
|
+
customClass: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
339
|
+
hwh5: ObjectConstructor;
|
|
340
|
+
mode: {
|
|
341
|
+
type: StringConstructor;
|
|
342
|
+
default: string;
|
|
343
|
+
validator(val: any): boolean;
|
|
344
|
+
};
|
|
345
|
+
cacheToken: {
|
|
346
|
+
type: BooleanConstructor;
|
|
347
|
+
default: boolean;
|
|
348
|
+
};
|
|
349
|
+
lockScroll: {
|
|
350
|
+
type: BooleanConstructor;
|
|
351
|
+
default: boolean;
|
|
352
|
+
};
|
|
353
|
+
compact: {
|
|
354
|
+
type: BooleanConstructor;
|
|
355
|
+
default: boolean;
|
|
356
|
+
};
|
|
357
|
+
beforeAddFile: FunctionConstructor;
|
|
358
|
+
encryptConfig: {
|
|
359
|
+
type: ObjectConstructor;
|
|
360
|
+
default: () => {
|
|
361
|
+
enabled: boolean;
|
|
362
|
+
encrypt: boolean;
|
|
363
|
+
watermark: string;
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
promptTip: {
|
|
367
|
+
type: BooleanConstructor;
|
|
368
|
+
default: boolean;
|
|
369
|
+
};
|
|
370
|
+
isHidden: {
|
|
371
|
+
type: BooleanConstructor;
|
|
372
|
+
default: boolean;
|
|
373
|
+
};
|
|
374
|
+
pasteUpload: {
|
|
375
|
+
type: BooleanConstructor;
|
|
376
|
+
default: boolean;
|
|
377
|
+
};
|
|
378
|
+
reUploadable: BooleanConstructor;
|
|
379
|
+
reUploadTip: FunctionConstructor;
|
|
380
|
+
imageBgColor: StringConstructor;
|
|
381
|
+
tiny_mode: StringConstructor;
|
|
382
|
+
tiny_mode_root: BooleanConstructor;
|
|
383
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
384
|
+
tiny_renderless: FunctionConstructor;
|
|
385
|
+
tiny_theme: StringConstructor;
|
|
386
|
+
tiny_chart_theme: ObjectConstructor;
|
|
387
|
+
};
|
|
388
|
+
declare const _default: any;
|
|
389
|
+
export default _default;
|
package/src/pc.vue.d.ts
ADDED