@mingto/mt-ui 1.1.32 → 1.1.35
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/README.md +3 -3
- package/dist/index.es.js +9095 -8487
- package/dist/index.umd.js +55318 -13549
- package/dist/popover/index.d.ts +18 -18
- package/dist/popover/src/popover.vue.d.ts +9 -9
- package/dist/style.css +723 -313
- package/dist/tooltip/index.d.ts +33 -35
- package/dist/tooltip/src/tooltip.d.ts +2 -2
- package/dist/tooltip/src/tooltip.vue.d.ts +48 -52
- package/dist/upload/index.d.ts +27 -29
- package/dist/upload/src/upload-config.d.ts +1 -1
- package/dist/upload/src/upload-content.d.ts +2 -2
- package/dist/upload/src/upload-content.vue.d.ts +5 -5
- package/dist/upload/src/upload.d.ts +2 -2
- package/dist/upload/src/upload.vue.d.ts +17 -21
- package/package.json +39 -40
package/dist/upload/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare const MtUpload: {
|
|
|
13
13
|
readonly default: true;
|
|
14
14
|
};
|
|
15
15
|
readonly suffixes: {
|
|
16
|
-
readonly type: import('vue').PropType<import('@
|
|
16
|
+
readonly type: import('vue').PropType<import('@mingto/tools').FileSuffix[]>;
|
|
17
17
|
readonly default: ("html" | "ppt" | "docx" | "doc" | "pdf" | "pptx" | "xlsx" | "xls" | "jpg" | "png" | "jpeg" | "webp" | "gif" | "mp4" | "avi" | "flv" | "mkv" | "mp3" | "wav" | "txt" | "json" | "zip" | "rar")[];
|
|
18
18
|
};
|
|
19
19
|
readonly disabled: {
|
|
@@ -38,7 +38,7 @@ export declare const MtUpload: {
|
|
|
38
38
|
readonly default: false;
|
|
39
39
|
};
|
|
40
40
|
readonly sizeType: {
|
|
41
|
-
readonly type: import('vue').PropType<keyof Map<string, Record<import('@
|
|
41
|
+
readonly type: import('vue').PropType<keyof Map<string, Record<import('@mingto/tools').FileSuffix, number>>>;
|
|
42
42
|
readonly default: "normal";
|
|
43
43
|
readonly values: MapIterator<string>;
|
|
44
44
|
};
|
|
@@ -69,7 +69,7 @@ export declare const MtUpload: {
|
|
|
69
69
|
uploadFiles: import('.').UploadFile[];
|
|
70
70
|
}) => any) | undefined;
|
|
71
71
|
onSuccess?: ((args_0: {
|
|
72
|
-
response: import('@
|
|
72
|
+
response: import('@mingto/obs-server').IUploadFileSuccessResponse;
|
|
73
73
|
uploadFile: import('.').UploadFile;
|
|
74
74
|
uploadFiles: import('.').UploadFile[];
|
|
75
75
|
}) => any) | undefined;
|
|
@@ -93,7 +93,7 @@ export declare const MtUpload: {
|
|
|
93
93
|
uploadFiles: import('.').UploadFile[];
|
|
94
94
|
}) => any;
|
|
95
95
|
success: (args_0: {
|
|
96
|
-
response: import('@
|
|
96
|
+
response: import('@mingto/obs-server').IUploadFileSuccessResponse;
|
|
97
97
|
uploadFile: import('.').UploadFile;
|
|
98
98
|
uploadFiles: import('.').UploadFile[];
|
|
99
99
|
}) => any;
|
|
@@ -104,12 +104,12 @@ export declare const MtUpload: {
|
|
|
104
104
|
readonly modelValue: import('.').UploadFile[];
|
|
105
105
|
readonly limit: number;
|
|
106
106
|
readonly multiple: boolean;
|
|
107
|
-
readonly suffixes: import('@
|
|
107
|
+
readonly suffixes: import('@mingto/tools').FileSuffix[];
|
|
108
108
|
readonly listType: import('.').ListTypeEnum;
|
|
109
109
|
readonly showTrigger: boolean;
|
|
110
110
|
readonly showList: boolean;
|
|
111
111
|
readonly isFullScreeDrag: boolean;
|
|
112
|
-
readonly sizeType: keyof Map<string, Record<import('@
|
|
112
|
+
readonly sizeType: keyof Map<string, Record<import('@mingto/tools').FileSuffix, number>>;
|
|
113
113
|
readonly autoCropper: boolean;
|
|
114
114
|
readonly copperOptions: import('.').CopperOptions;
|
|
115
115
|
readonly beforeUpload: (rawFile: import('.').UploadRawFile) => Promise<boolean | void>;
|
|
@@ -136,9 +136,7 @@ export declare const MtUpload: {
|
|
|
136
136
|
readonly copperOptions?: import('.').CopperOptions | undefined;
|
|
137
137
|
readonly onRemove?: ((...args: any[]) => any) | undefined;
|
|
138
138
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "multiple" | "showTrigger" | "autoCropper" | "fileList" | "onExceed">;
|
|
139
|
-
$attrs:
|
|
140
|
-
[x: string]: unknown;
|
|
141
|
-
};
|
|
139
|
+
$attrs: import('vue').Attrs;
|
|
142
140
|
$refs: {
|
|
143
141
|
[x: string]: unknown;
|
|
144
142
|
} & {
|
|
@@ -274,9 +272,9 @@ export declare const MtUpload: {
|
|
|
274
272
|
};
|
|
275
273
|
}>> & Readonly<{
|
|
276
274
|
onRemove?: ((...args: any[]) => any) | undefined;
|
|
277
|
-
}>, "choose" | ("disabled" | "multiple" | "showTrigger" | "autoCropper" | "fileList" | "onExceed")> &
|
|
278
|
-
choose()
|
|
279
|
-
}
|
|
275
|
+
}>, "choose" | ("disabled" | "multiple" | "showTrigger" | "autoCropper" | "fileList" | "onExceed")> & {
|
|
276
|
+
choose: () => void;
|
|
277
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
280
278
|
$slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
281
279
|
}) | null;
|
|
282
280
|
uploadRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -294,7 +292,7 @@ export declare const MtUpload: {
|
|
|
294
292
|
type: NumberConstructor;
|
|
295
293
|
};
|
|
296
294
|
suffixes: {
|
|
297
|
-
type: import('vue').PropType<import('@
|
|
295
|
+
type: import('vue').PropType<import('@mingto/tools').FileSuffix[]>;
|
|
298
296
|
};
|
|
299
297
|
disabled: {
|
|
300
298
|
type: BooleanConstructor;
|
|
@@ -320,7 +318,7 @@ export declare const MtUpload: {
|
|
|
320
318
|
default: typeof import('../utils').NOOP;
|
|
321
319
|
};
|
|
322
320
|
onSuccess: {
|
|
323
|
-
type: import('vue').PropType<(response: import('@
|
|
321
|
+
type: import('vue').PropType<(response: import('@mingto/obs-server').IUploadFileSuccessResponse, rawFile: import('.').UploadRawFile) => void>;
|
|
324
322
|
default: typeof import('../utils').NOOP;
|
|
325
323
|
};
|
|
326
324
|
onRemove: {
|
|
@@ -347,7 +345,7 @@ export declare const MtUpload: {
|
|
|
347
345
|
onExceed: (files: File[]) => void;
|
|
348
346
|
onStart: (rawFile: import('.').UploadRawFile) => void;
|
|
349
347
|
onReload: (rawFile: import('.').UploadRawFile) => void;
|
|
350
|
-
onSuccess: (response: import('@
|
|
348
|
+
onSuccess: (response: import('@mingto/obs-server').IUploadFileSuccessResponse, rawFile: import('.').UploadRawFile) => void;
|
|
351
349
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
352
350
|
inputRef: HTMLInputElement;
|
|
353
351
|
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
@@ -372,7 +370,7 @@ export declare const MtUpload: {
|
|
|
372
370
|
type: NumberConstructor;
|
|
373
371
|
};
|
|
374
372
|
suffixes: {
|
|
375
|
-
type: import('vue').PropType<import('@
|
|
373
|
+
type: import('vue').PropType<import('@mingto/tools').FileSuffix[]>;
|
|
376
374
|
};
|
|
377
375
|
disabled: {
|
|
378
376
|
type: BooleanConstructor;
|
|
@@ -398,7 +396,7 @@ export declare const MtUpload: {
|
|
|
398
396
|
default: typeof import('../utils').NOOP;
|
|
399
397
|
};
|
|
400
398
|
onSuccess: {
|
|
401
|
-
type: import('vue').PropType<(response: import('@
|
|
399
|
+
type: import('vue').PropType<(response: import('@mingto/obs-server').IUploadFileSuccessResponse, rawFile: import('.').UploadRawFile) => void>;
|
|
402
400
|
default: typeof import('../utils').NOOP;
|
|
403
401
|
};
|
|
404
402
|
onRemove: {
|
|
@@ -425,7 +423,7 @@ export declare const MtUpload: {
|
|
|
425
423
|
onExceed: (files: File[]) => void;
|
|
426
424
|
onStart: (rawFile: import('.').UploadRawFile) => void;
|
|
427
425
|
onReload: (rawFile: import('.').UploadRawFile) => void;
|
|
428
|
-
onSuccess: (response: import('@
|
|
426
|
+
onSuccess: (response: import('@mingto/obs-server').IUploadFileSuccessResponse, rawFile: import('.').UploadRawFile) => void;
|
|
429
427
|
}> | null;
|
|
430
428
|
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
431
429
|
P: {};
|
|
@@ -448,7 +446,7 @@ export declare const MtUpload: {
|
|
|
448
446
|
readonly default: true;
|
|
449
447
|
};
|
|
450
448
|
readonly suffixes: {
|
|
451
|
-
readonly type: import('vue').PropType<import('@
|
|
449
|
+
readonly type: import('vue').PropType<import('@mingto/tools').FileSuffix[]>;
|
|
452
450
|
readonly default: ("html" | "ppt" | "docx" | "doc" | "pdf" | "pptx" | "xlsx" | "xls" | "jpg" | "png" | "jpeg" | "webp" | "gif" | "mp4" | "avi" | "flv" | "mkv" | "mp3" | "wav" | "txt" | "json" | "zip" | "rar")[];
|
|
453
451
|
};
|
|
454
452
|
readonly disabled: {
|
|
@@ -473,7 +471,7 @@ export declare const MtUpload: {
|
|
|
473
471
|
readonly default: false;
|
|
474
472
|
};
|
|
475
473
|
readonly sizeType: {
|
|
476
|
-
readonly type: import('vue').PropType<keyof Map<string, Record<import('@
|
|
474
|
+
readonly type: import('vue').PropType<keyof Map<string, Record<import('@mingto/tools').FileSuffix, number>>>;
|
|
477
475
|
readonly default: "normal";
|
|
478
476
|
readonly values: MapIterator<string>;
|
|
479
477
|
};
|
|
@@ -504,7 +502,7 @@ export declare const MtUpload: {
|
|
|
504
502
|
uploadFiles: import('.').UploadFile[];
|
|
505
503
|
}) => any) | undefined;
|
|
506
504
|
onSuccess?: ((args_0: {
|
|
507
|
-
response: import('@
|
|
505
|
+
response: import('@mingto/obs-server').IUploadFileSuccessResponse;
|
|
508
506
|
uploadFile: import('.').UploadFile;
|
|
509
507
|
uploadFiles: import('.').UploadFile[];
|
|
510
508
|
}) => any) | undefined;
|
|
@@ -523,12 +521,12 @@ export declare const MtUpload: {
|
|
|
523
521
|
readonly modelValue: import('.').UploadFile[];
|
|
524
522
|
readonly limit: number;
|
|
525
523
|
readonly multiple: boolean;
|
|
526
|
-
readonly suffixes: import('@
|
|
524
|
+
readonly suffixes: import('@mingto/tools').FileSuffix[];
|
|
527
525
|
readonly listType: import('.').ListTypeEnum;
|
|
528
526
|
readonly showTrigger: boolean;
|
|
529
527
|
readonly showList: boolean;
|
|
530
528
|
readonly isFullScreeDrag: boolean;
|
|
531
|
-
readonly sizeType: keyof Map<string, Record<import('@
|
|
529
|
+
readonly sizeType: keyof Map<string, Record<import('@mingto/tools').FileSuffix, number>>;
|
|
532
530
|
readonly autoCropper: boolean;
|
|
533
531
|
readonly copperOptions: import('.').CopperOptions;
|
|
534
532
|
readonly beforeUpload: (rawFile: import('.').UploadRawFile) => Promise<boolean | void>;
|
|
@@ -550,7 +548,7 @@ export declare const MtUpload: {
|
|
|
550
548
|
readonly default: true;
|
|
551
549
|
};
|
|
552
550
|
readonly suffixes: {
|
|
553
|
-
readonly type: import('vue').PropType<import('@
|
|
551
|
+
readonly type: import('vue').PropType<import('@mingto/tools').FileSuffix[]>;
|
|
554
552
|
readonly default: ("html" | "ppt" | "docx" | "doc" | "pdf" | "pptx" | "xlsx" | "xls" | "jpg" | "png" | "jpeg" | "webp" | "gif" | "mp4" | "avi" | "flv" | "mkv" | "mp3" | "wav" | "txt" | "json" | "zip" | "rar")[];
|
|
555
553
|
};
|
|
556
554
|
readonly disabled: {
|
|
@@ -575,7 +573,7 @@ export declare const MtUpload: {
|
|
|
575
573
|
readonly default: false;
|
|
576
574
|
};
|
|
577
575
|
readonly sizeType: {
|
|
578
|
-
readonly type: import('vue').PropType<keyof Map<string, Record<import('@
|
|
576
|
+
readonly type: import('vue').PropType<keyof Map<string, Record<import('@mingto/tools').FileSuffix, number>>>;
|
|
579
577
|
readonly default: "normal";
|
|
580
578
|
readonly values: MapIterator<string>;
|
|
581
579
|
};
|
|
@@ -606,7 +604,7 @@ export declare const MtUpload: {
|
|
|
606
604
|
uploadFiles: import('.').UploadFile[];
|
|
607
605
|
}) => any) | undefined;
|
|
608
606
|
onSuccess?: ((args_0: {
|
|
609
|
-
response: import('@
|
|
607
|
+
response: import('@mingto/obs-server').IUploadFileSuccessResponse;
|
|
610
608
|
uploadFile: import('.').UploadFile;
|
|
611
609
|
uploadFiles: import('.').UploadFile[];
|
|
612
610
|
}) => any) | undefined;
|
|
@@ -630,7 +628,7 @@ export declare const MtUpload: {
|
|
|
630
628
|
uploadFiles: import('.').UploadFile[];
|
|
631
629
|
}) => any;
|
|
632
630
|
success: (args_0: {
|
|
633
|
-
response: import('@
|
|
631
|
+
response: import('@mingto/obs-server').IUploadFileSuccessResponse;
|
|
634
632
|
uploadFile: import('.').UploadFile;
|
|
635
633
|
uploadFiles: import('.').UploadFile[];
|
|
636
634
|
}) => any;
|
|
@@ -641,12 +639,12 @@ export declare const MtUpload: {
|
|
|
641
639
|
readonly modelValue: import('.').UploadFile[];
|
|
642
640
|
readonly limit: number;
|
|
643
641
|
readonly multiple: boolean;
|
|
644
|
-
readonly suffixes: import('@
|
|
642
|
+
readonly suffixes: import('@mingto/tools').FileSuffix[];
|
|
645
643
|
readonly listType: import('.').ListTypeEnum;
|
|
646
644
|
readonly showTrigger: boolean;
|
|
647
645
|
readonly showList: boolean;
|
|
648
646
|
readonly isFullScreeDrag: boolean;
|
|
649
|
-
readonly sizeType: keyof Map<string, Record<import('@
|
|
647
|
+
readonly sizeType: keyof Map<string, Record<import('@mingto/tools').FileSuffix, number>>;
|
|
650
648
|
readonly autoCropper: boolean;
|
|
651
649
|
readonly copperOptions: import('.').CopperOptions;
|
|
652
650
|
readonly beforeUpload: (rawFile: import('.').UploadRawFile) => Promise<boolean | void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IUploadFileSuccessResponse } from '@
|
|
2
|
-
import { FileSuffix } from '@
|
|
1
|
+
import { IUploadFileSuccessResponse } from '@mingto/obs-server';
|
|
2
|
+
import { FileSuffix } from '@mingto/tools';
|
|
3
3
|
import { ExtractPropTypes, PropType } from 'vue';
|
|
4
4
|
import { UploadFile, UploadProgressEvent, UploadRawFile } from './upload';
|
|
5
5
|
import { default as UploadContent } from './upload-content.vue';
|
|
@@ -17,7 +17,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
17
17
|
type: NumberConstructor;
|
|
18
18
|
};
|
|
19
19
|
suffixes: {
|
|
20
|
-
type: import('vue').PropType<import('@
|
|
20
|
+
type: import('vue').PropType<import('@mingto/tools').FileSuffix[]>;
|
|
21
21
|
};
|
|
22
22
|
disabled: {
|
|
23
23
|
type: BooleanConstructor;
|
|
@@ -43,7 +43,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
43
43
|
default: typeof import('../../utils').NOOP;
|
|
44
44
|
};
|
|
45
45
|
onSuccess: {
|
|
46
|
-
type: import('vue').PropType<(response: import('@
|
|
46
|
+
type: import('vue').PropType<(response: import('@mingto/obs-server').IUploadFileSuccessResponse, rawFile: UploadRawFile) => void>;
|
|
47
47
|
default: typeof import('../../utils').NOOP;
|
|
48
48
|
};
|
|
49
49
|
onRemove: {
|
|
@@ -74,7 +74,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
74
74
|
type: NumberConstructor;
|
|
75
75
|
};
|
|
76
76
|
suffixes: {
|
|
77
|
-
type: import('vue').PropType<import('@
|
|
77
|
+
type: import('vue').PropType<import('@mingto/tools').FileSuffix[]>;
|
|
78
78
|
};
|
|
79
79
|
disabled: {
|
|
80
80
|
type: BooleanConstructor;
|
|
@@ -100,7 +100,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
100
100
|
default: typeof import('../../utils').NOOP;
|
|
101
101
|
};
|
|
102
102
|
onSuccess: {
|
|
103
|
-
type: import('vue').PropType<(response: import('@
|
|
103
|
+
type: import('vue').PropType<(response: import('@mingto/obs-server').IUploadFileSuccessResponse, rawFile: UploadRawFile) => void>;
|
|
104
104
|
default: typeof import('../../utils').NOOP;
|
|
105
105
|
};
|
|
106
106
|
onRemove: {
|
|
@@ -122,7 +122,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
122
122
|
onExceed: (files: File[]) => void;
|
|
123
123
|
onStart: (rawFile: UploadRawFile) => void;
|
|
124
124
|
onReload: (rawFile: UploadRawFile) => void;
|
|
125
|
-
onSuccess: (response: import('@
|
|
125
|
+
onSuccess: (response: import('@mingto/obs-server').IUploadFileSuccessResponse, rawFile: UploadRawFile) => void;
|
|
126
126
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
127
127
|
inputRef: HTMLInputElement;
|
|
128
128
|
}, HTMLDivElement>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IUploadFileSuccessResponse } from '@
|
|
2
|
-
import { FileSuffix } from '@
|
|
1
|
+
import { IUploadFileSuccessResponse } from '@mingto/obs-server';
|
|
2
|
+
import { FileSuffix } from '@mingto/tools';
|
|
3
3
|
import { ExtractPropTypes, InjectionKey, PropType } from 'vue';
|
|
4
4
|
import { fileSizeLimitConfigMap } from './upload-config';
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IUploadFileSuccessResponse } from '@
|
|
1
|
+
import { IUploadFileSuccessResponse } from '@mingto/obs-server';
|
|
2
2
|
import { UploadFile, UploadRawFile, ListTypeEnum } from './upload';
|
|
3
3
|
import { fileSizeLimitConfigMap } from './upload-config';
|
|
4
4
|
declare function __VLS_template(): {
|
|
@@ -33,9 +33,7 @@ declare function __VLS_template(): {
|
|
|
33
33
|
readonly copperOptions?: import('./upload').CopperOptions | undefined;
|
|
34
34
|
readonly onRemove?: ((...args: any[]) => any) | undefined;
|
|
35
35
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "multiple" | "showTrigger" | "autoCropper" | "fileList" | "onExceed">;
|
|
36
|
-
$attrs:
|
|
37
|
-
[x: string]: unknown;
|
|
38
|
-
};
|
|
36
|
+
$attrs: import('vue').Attrs;
|
|
39
37
|
$refs: {
|
|
40
38
|
[x: string]: unknown;
|
|
41
39
|
} & {
|
|
@@ -171,9 +169,9 @@ declare function __VLS_template(): {
|
|
|
171
169
|
};
|
|
172
170
|
}>> & Readonly<{
|
|
173
171
|
onRemove?: ((...args: any[]) => any) | undefined;
|
|
174
|
-
}>, "choose" | ("disabled" | "multiple" | "showTrigger" | "autoCropper" | "fileList" | "onExceed")> &
|
|
175
|
-
choose()
|
|
176
|
-
}
|
|
172
|
+
}>, "choose" | ("disabled" | "multiple" | "showTrigger" | "autoCropper" | "fileList" | "onExceed")> & {
|
|
173
|
+
choose: () => void;
|
|
174
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
177
175
|
$slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
178
176
|
}) | null;
|
|
179
177
|
uploadRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -191,7 +189,7 @@ declare function __VLS_template(): {
|
|
|
191
189
|
type: NumberConstructor;
|
|
192
190
|
};
|
|
193
191
|
suffixes: {
|
|
194
|
-
type: import('vue').PropType<import('@
|
|
192
|
+
type: import('vue').PropType<import('@mingto/tools').FileSuffix[]>;
|
|
195
193
|
};
|
|
196
194
|
disabled: {
|
|
197
195
|
type: BooleanConstructor;
|
|
@@ -269,7 +267,7 @@ declare function __VLS_template(): {
|
|
|
269
267
|
type: NumberConstructor;
|
|
270
268
|
};
|
|
271
269
|
suffixes: {
|
|
272
|
-
type: import('vue').PropType<import('@
|
|
270
|
+
type: import('vue').PropType<import('@mingto/tools').FileSuffix[]>;
|
|
273
271
|
};
|
|
274
272
|
disabled: {
|
|
275
273
|
type: BooleanConstructor;
|
|
@@ -342,7 +340,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
342
340
|
readonly default: true;
|
|
343
341
|
};
|
|
344
342
|
readonly suffixes: {
|
|
345
|
-
readonly type: import('vue').PropType<import('@
|
|
343
|
+
readonly type: import('vue').PropType<import('@mingto/tools').FileSuffix[]>;
|
|
346
344
|
readonly default: ("html" | "ppt" | "docx" | "doc" | "pdf" | "pptx" | "xlsx" | "xls" | "jpg" | "png" | "jpeg" | "webp" | "gif" | "mp4" | "avi" | "flv" | "mkv" | "mp3" | "wav" | "txt" | "json" | "zip" | "rar")[];
|
|
347
345
|
};
|
|
348
346
|
readonly disabled: {
|
|
@@ -425,7 +423,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
425
423
|
readonly default: true;
|
|
426
424
|
};
|
|
427
425
|
readonly suffixes: {
|
|
428
|
-
readonly type: import('vue').PropType<import('@
|
|
426
|
+
readonly type: import('vue').PropType<import('@mingto/tools').FileSuffix[]>;
|
|
429
427
|
readonly default: ("html" | "ppt" | "docx" | "doc" | "pdf" | "pptx" | "xlsx" | "xls" | "jpg" | "png" | "jpeg" | "webp" | "gif" | "mp4" | "avi" | "flv" | "mkv" | "mp3" | "wav" | "txt" | "json" | "zip" | "rar")[];
|
|
430
428
|
};
|
|
431
429
|
readonly disabled: {
|
|
@@ -492,12 +490,12 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
492
490
|
readonly modelValue: UploadFile[];
|
|
493
491
|
readonly limit: number;
|
|
494
492
|
readonly multiple: boolean;
|
|
495
|
-
readonly suffixes: import('@
|
|
493
|
+
readonly suffixes: import('@mingto/tools').FileSuffix[];
|
|
496
494
|
readonly listType: ListTypeEnum;
|
|
497
495
|
readonly showTrigger: boolean;
|
|
498
496
|
readonly showList: boolean;
|
|
499
497
|
readonly isFullScreeDrag: boolean;
|
|
500
|
-
readonly sizeType: keyof Map<string, Record<import('@
|
|
498
|
+
readonly sizeType: keyof Map<string, Record<import('@mingto/tools').FileSuffix, number>>;
|
|
501
499
|
readonly autoCropper: boolean;
|
|
502
500
|
readonly copperOptions: import('./upload').CopperOptions;
|
|
503
501
|
readonly beforeUpload: (rawFile: UploadRawFile) => Promise<boolean | void>;
|
|
@@ -524,9 +522,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
524
522
|
readonly copperOptions?: import('./upload').CopperOptions | undefined;
|
|
525
523
|
readonly onRemove?: ((...args: any[]) => any) | undefined;
|
|
526
524
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "multiple" | "showTrigger" | "autoCropper" | "fileList" | "onExceed">;
|
|
527
|
-
$attrs:
|
|
528
|
-
[x: string]: unknown;
|
|
529
|
-
};
|
|
525
|
+
$attrs: import('vue').Attrs;
|
|
530
526
|
$refs: {
|
|
531
527
|
[x: string]: unknown;
|
|
532
528
|
} & {
|
|
@@ -662,9 +658,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
662
658
|
};
|
|
663
659
|
}>> & Readonly<{
|
|
664
660
|
onRemove?: ((...args: any[]) => any) | undefined;
|
|
665
|
-
}>, "choose" | ("disabled" | "multiple" | "showTrigger" | "autoCropper" | "fileList" | "onExceed")> &
|
|
666
|
-
choose()
|
|
667
|
-
}
|
|
661
|
+
}>, "choose" | ("disabled" | "multiple" | "showTrigger" | "autoCropper" | "fileList" | "onExceed")> & {
|
|
662
|
+
choose: () => void;
|
|
663
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
668
664
|
$slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
669
665
|
}) | null;
|
|
670
666
|
uploadRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -682,7 +678,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
682
678
|
type: NumberConstructor;
|
|
683
679
|
};
|
|
684
680
|
suffixes: {
|
|
685
|
-
type: import('vue').PropType<import('@
|
|
681
|
+
type: import('vue').PropType<import('@mingto/tools').FileSuffix[]>;
|
|
686
682
|
};
|
|
687
683
|
disabled: {
|
|
688
684
|
type: BooleanConstructor;
|
|
@@ -760,7 +756,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
760
756
|
type: NumberConstructor;
|
|
761
757
|
};
|
|
762
758
|
suffixes: {
|
|
763
|
-
type: import('vue').PropType<import('@
|
|
759
|
+
type: import('vue').PropType<import('@mingto/tools').FileSuffix[]>;
|
|
764
760
|
};
|
|
765
761
|
disabled: {
|
|
766
762
|
type: BooleanConstructor;
|
package/package.json
CHANGED
|
@@ -1,41 +1,40 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@mingto/mt-ui",
|
|
3
|
-
"type": "module",
|
|
4
|
-
"version": "1.1.
|
|
5
|
-
"description": "UI组件库",
|
|
6
|
-
"publishConfig": {
|
|
7
|
-
"access": "public"
|
|
8
|
-
},
|
|
9
|
-
"author": "",
|
|
10
|
-
"license": "ISC",
|
|
11
|
-
"keywords": [
|
|
12
|
-
"mt-ui",
|
|
13
|
-
"UI组件库"
|
|
14
|
-
],
|
|
15
|
-
"main": "./dist/index.umd.js",
|
|
16
|
-
"module": "./dist/index.es.js",
|
|
17
|
-
"types": "./dist/index.d.ts",
|
|
18
|
-
"files": [
|
|
19
|
-
"dist"
|
|
20
|
-
],
|
|
21
|
-
"scripts": {
|
|
22
|
-
"build": "vite build"
|
|
23
|
-
},
|
|
24
|
-
"peerDependencies": {
|
|
25
|
-
"vue": "^3.5.13"
|
|
26
|
-
},
|
|
27
|
-
"dependencies": {
|
|
28
|
-
"@mingto/obs-server": "^1.0.
|
|
29
|
-
"@
|
|
30
|
-
"@
|
|
31
|
-
"@
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@mingto/mt-ui",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "1.1.35",
|
|
5
|
+
"description": "UI组件库",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"author": "",
|
|
10
|
+
"license": "ISC",
|
|
11
|
+
"keywords": [
|
|
12
|
+
"mt-ui",
|
|
13
|
+
"UI组件库"
|
|
14
|
+
],
|
|
15
|
+
"main": "./dist/index.umd.js",
|
|
16
|
+
"module": "./dist/index.es.js",
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "vite build"
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"vue": "^3.5.13"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@mingto/obs-server": "^1.0.34",
|
|
29
|
+
"@popperjs/core": "^2.11.8",
|
|
30
|
+
"@types/qrcode": "^1.5.6",
|
|
31
|
+
"@vueuse/core": "^13.4.0",
|
|
32
|
+
"element-plus": "^2.9.5",
|
|
33
|
+
"lodash-es": "^4.17.21",
|
|
34
|
+
"qrcode": "^1.5.4",
|
|
35
|
+
"vue-cropper": "^1.1.4"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@types/lodash-es": "^4.17.12"
|
|
39
|
+
}
|
|
41
40
|
}
|