UNPKG

6.02 kBTypeScriptView Raw
1import { UploaderProps } from './Uploader';
2export declare const Uploader: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3 name: {
4 type: (NumberConstructor | StringConstructor)[];
5 default: string;
6 };
7 accept: {
8 type: import("vue").PropType<string>;
9 default: string;
10 };
11 capture: StringConstructor;
12 multiple: BooleanConstructor;
13 disabled: BooleanConstructor;
14 readonly: BooleanConstructor;
15 lazyLoad: BooleanConstructor;
16 maxCount: {
17 type: (NumberConstructor | StringConstructor)[];
18 default: number;
19 };
20 imageFit: {
21 type: import("vue").PropType<import("csstype").Property.ObjectFit | undefined>;
22 default: import("csstype").Property.ObjectFit | undefined;
23 };
24 resultType: {
25 type: import("vue").PropType<import("./types").UploaderResultType>;
26 default: import("./types").UploaderResultType;
27 };
28 uploadIcon: {
29 type: import("vue").PropType<string>;
30 default: string;
31 };
32 uploadText: StringConstructor;
33 deletable: {
34 type: BooleanConstructor;
35 default: true;
36 };
37 reupload: BooleanConstructor;
38 afterRead: import("vue").PropType<import("./types").UploaderAfterRead>;
39 showUpload: {
40 type: BooleanConstructor;
41 default: true;
42 };
43 modelValue: {
44 type: import("vue").PropType<import("./types").UploaderFileListItem[]>;
45 default: () => never[];
46 };
47 beforeRead: import("vue").PropType<import("./types").UploaderBeforeRead>;
48 beforeDelete: import("vue").PropType<import("../utils").Interceptor>;
49 previewSize: import("vue").PropType<import("../utils").Numeric | [import("../utils").Numeric, import("../utils").Numeric]>;
50 previewImage: {
51 type: BooleanConstructor;
52 default: true;
53 };
54 previewOptions: import("vue").PropType<Partial<import("..").ImagePreviewOptions>>;
55 previewFullImage: {
56 type: BooleanConstructor;
57 default: true;
58 };
59 maxSize: {
60 type: import("vue").PropType<import("./types").UploaderMaxSize>;
61 default: number;
62 };
63}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "update:modelValue" | "oversize" | "clickUpload" | "closePreview" | "clickPreview" | "clickReupload")[], "delete" | "update:modelValue" | "oversize" | "clickUpload" | "closePreview" | "clickPreview" | "clickReupload", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
64 name: {
65 type: (NumberConstructor | StringConstructor)[];
66 default: string;
67 };
68 accept: {
69 type: import("vue").PropType<string>;
70 default: string;
71 };
72 capture: StringConstructor;
73 multiple: BooleanConstructor;
74 disabled: BooleanConstructor;
75 readonly: BooleanConstructor;
76 lazyLoad: BooleanConstructor;
77 maxCount: {
78 type: (NumberConstructor | StringConstructor)[];
79 default: number;
80 };
81 imageFit: {
82 type: import("vue").PropType<import("csstype").Property.ObjectFit | undefined>;
83 default: import("csstype").Property.ObjectFit | undefined;
84 };
85 resultType: {
86 type: import("vue").PropType<import("./types").UploaderResultType>;
87 default: import("./types").UploaderResultType;
88 };
89 uploadIcon: {
90 type: import("vue").PropType<string>;
91 default: string;
92 };
93 uploadText: StringConstructor;
94 deletable: {
95 type: BooleanConstructor;
96 default: true;
97 };
98 reupload: BooleanConstructor;
99 afterRead: import("vue").PropType<import("./types").UploaderAfterRead>;
100 showUpload: {
101 type: BooleanConstructor;
102 default: true;
103 };
104 modelValue: {
105 type: import("vue").PropType<import("./types").UploaderFileListItem[]>;
106 default: () => never[];
107 };
108 beforeRead: import("vue").PropType<import("./types").UploaderBeforeRead>;
109 beforeDelete: import("vue").PropType<import("../utils").Interceptor>;
110 previewSize: import("vue").PropType<import("../utils").Numeric | [import("../utils").Numeric, import("../utils").Numeric]>;
111 previewImage: {
112 type: BooleanConstructor;
113 default: true;
114 };
115 previewOptions: import("vue").PropType<Partial<import("..").ImagePreviewOptions>>;
116 previewFullImage: {
117 type: BooleanConstructor;
118 default: true;
119 };
120 maxSize: {
121 type: import("vue").PropType<import("./types").UploaderMaxSize>;
122 default: number;
123 };
124}>> & Readonly<{
125 "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
126 onDelete?: ((...args: any[]) => any) | undefined;
127 onOversize?: ((...args: any[]) => any) | undefined;
128 onClickUpload?: ((...args: any[]) => any) | undefined;
129 onClosePreview?: ((...args: any[]) => any) | undefined;
130 onClickPreview?: ((...args: any[]) => any) | undefined;
131 onClickReupload?: ((...args: any[]) => any) | undefined;
132}>, {
133 name: string | number;
134 accept: string;
135 disabled: boolean;
136 multiple: boolean;
137 modelValue: import("./types").UploaderFileListItem[];
138 readonly: boolean;
139 lazyLoad: boolean;
140 maxCount: string | number;
141 imageFit: import("csstype").Property.ObjectFit | undefined;
142 resultType: import("./types").UploaderResultType;
143 uploadIcon: string;
144 deletable: boolean;
145 reupload: boolean;
146 showUpload: boolean;
147 previewImage: boolean;
148 previewFullImage: boolean;
149 maxSize: import("./types").UploaderMaxSize;
150}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
151export default Uploader;
152export { uploaderProps } from './Uploader';
153export type { UploaderProps };
154export type { UploaderInstance, UploaderThemeVars, UploaderResultType, UploaderFileListItem, UploaderBeforeRead, UploaderAfterRead, } from './types';
155declare module 'vue' {
156 interface GlobalComponents {
157 VanUploader: typeof Uploader;
158 }
159}
160
\No newline at end of file