ant-design-x-vue 1.0.7 → 1.0.8
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.mjs +9822 -8203
- package/dist/index.umd.js +65 -62
- package/dist/typings/_util/cssinjs/StyleContext.d.ts +2 -2
- package/dist/typings/_util/cssinjs/index.d.ts +1 -1
- package/dist/typings/attachments/PlaceholderUploader.vue.d.ts +38 -38
- package/dist/typings/attachments/SilentUploader.vue.d.ts +50 -50
- package/dist/typings/attachments/interface.d.ts +4 -1
- package/dist/typings/sender/SenderHeader.vue.d.ts +1 -3
- package/dist/typings/sender/index.d.ts +1 -3
- package/dist/typings/sender/interface.d.ts +7 -1
- package/dist/typings/suggestion/Suggestion.vue.d.ts +1 -3
- package/dist/typings/x-request/x-request.d.ts +1 -1
- package/package.json +3 -3
|
@@ -295,7 +295,7 @@ export declare const StyleProvider: {
|
|
|
295
295
|
ssrInline: boolean;
|
|
296
296
|
transformers: Transformer[];
|
|
297
297
|
linters: Linter[];
|
|
298
|
-
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> &
|
|
298
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin;
|
|
299
299
|
declare const _default: {
|
|
300
300
|
useStyleInject: () => ShallowRef<Partial<StyleContextProps>>;
|
|
301
301
|
useStyleProvider: (props: UseStyleProviderProps) => ShallowRef<Partial<StyleContextProps>, Partial<StyleContextProps>>;
|
|
@@ -503,6 +503,6 @@ declare const _default: {
|
|
|
503
503
|
ssrInline: boolean;
|
|
504
504
|
transformers: Transformer[];
|
|
505
505
|
linters: Linter[];
|
|
506
|
-
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> &
|
|
506
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin;
|
|
507
507
|
};
|
|
508
508
|
export default _default;
|
|
@@ -187,7 +187,7 @@ declare const cssinjs: {
|
|
|
187
187
|
ssrInline: boolean;
|
|
188
188
|
transformers: Transformer[];
|
|
189
189
|
linters: Linter[];
|
|
190
|
-
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> &
|
|
190
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin;
|
|
191
191
|
};
|
|
192
192
|
export { Theme, createTheme, useStyleRegister, useCacheToken, createCache, useStyleInject, useStyleProvider, Keyframes, extractStyle, legacyLogicalPropertiesTransformer, px2remTransformer, logicalPropertiesLinter, legacyNotSelectorLinter, parentSelectorLinter, StyleProvider, unit, token2CSSVar, useCSSVarRegister, };
|
|
193
193
|
export type { TokenType, CSSObject, CSSInterpolation, DerivativeFunc, Transformer, Linter, StyleContextProps, StyleProviderProps, };
|
|
@@ -11,11 +11,11 @@ declare const _default: import("vue").DefineComponent<PlaceholderProps, {
|
|
|
11
11
|
};
|
|
12
12
|
name: StringConstructor;
|
|
13
13
|
defaultFileList: {
|
|
14
|
-
type: import("vue").PropType<import("ant-design-vue
|
|
14
|
+
type: import("vue").PropType<import("ant-design-vue").UploadFile<any>[]>;
|
|
15
15
|
default: import("ant-design-vue").UploadFile<any>[];
|
|
16
16
|
};
|
|
17
17
|
fileList: {
|
|
18
|
-
type: import("vue").PropType<import("ant-design-vue
|
|
18
|
+
type: import("vue").PropType<import("ant-design-vue").UploadFile<any>[]>;
|
|
19
19
|
default: import("ant-design-vue").UploadFile<any>[];
|
|
20
20
|
};
|
|
21
21
|
action: {
|
|
@@ -27,8 +27,8 @@ declare const _default: import("vue").DefineComponent<PlaceholderProps, {
|
|
|
27
27
|
default: boolean;
|
|
28
28
|
};
|
|
29
29
|
data: {
|
|
30
|
-
type: import("vue").PropType<Record<string, unknown> | ((file: import("ant-design-vue
|
|
31
|
-
default: Record<string, unknown> | ((file: import("ant-design-vue
|
|
30
|
+
type: import("vue").PropType<Record<string, unknown> | ((file: import("ant-design-vue").UploadFile<any>) => Record<string, unknown> | Promise<Record<string, unknown>>)>;
|
|
31
|
+
default: Record<string, unknown> | ((file: import("ant-design-vue").UploadFile<any>) => Record<string, unknown> | Promise<Record<string, unknown>>);
|
|
32
32
|
};
|
|
33
33
|
method: {
|
|
34
34
|
type: import("vue").PropType<"post" | "POST" | "PUT" | "PATCH" | "put" | "patch">;
|
|
@@ -52,11 +52,11 @@ declare const _default: import("vue").DefineComponent<PlaceholderProps, {
|
|
|
52
52
|
default: (file: import("ant-design-vue/es/upload/interface").FileType, FileList: import("ant-design-vue/es/upload/interface").FileType[]) => (string | boolean | void | Blob | import("ant-design-vue/es/upload/interface").FileType) | Promise<string | boolean | void | Blob | import("ant-design-vue/es/upload/interface").FileType>;
|
|
53
53
|
};
|
|
54
54
|
onChange: {
|
|
55
|
-
type: import("vue").PropType<(info: import("ant-design-vue
|
|
55
|
+
type: import("vue").PropType<(info: import("ant-design-vue").UploadChangeParam<import("ant-design-vue").UploadFile<any>>) => void>;
|
|
56
56
|
default: (info: import("ant-design-vue").UploadChangeParam<import("ant-design-vue").UploadFile<any>>) => void;
|
|
57
57
|
};
|
|
58
58
|
'onUpdate:fileList': {
|
|
59
|
-
type: import("vue").PropType<(fileList: import("ant-design-vue
|
|
59
|
+
type: import("vue").PropType<(fileList: import("ant-design-vue").UploadFile<any>[]) => void>;
|
|
60
60
|
default: (fileList: import("ant-design-vue").UploadFile<any>[]) => void;
|
|
61
61
|
};
|
|
62
62
|
onDrop: {
|
|
@@ -68,11 +68,11 @@ declare const _default: import("vue").DefineComponent<PlaceholderProps, {
|
|
|
68
68
|
default: import("ant-design-vue/es/upload/interface").UploadListType;
|
|
69
69
|
};
|
|
70
70
|
onPreview: {
|
|
71
|
-
type: import("vue").PropType<(file: import("ant-design-vue
|
|
71
|
+
type: import("vue").PropType<(file: import("ant-design-vue").UploadFile<any>) => void>;
|
|
72
72
|
default: (file: import("ant-design-vue").UploadFile<any>) => void;
|
|
73
73
|
};
|
|
74
74
|
onDownload: {
|
|
75
|
-
type: import("vue").PropType<(file: import("ant-design-vue
|
|
75
|
+
type: import("vue").PropType<(file: import("ant-design-vue").UploadFile<any>) => void>;
|
|
76
76
|
default: (file: import("ant-design-vue").UploadFile<any>) => void;
|
|
77
77
|
};
|
|
78
78
|
onReject: {
|
|
@@ -80,11 +80,11 @@ declare const _default: import("vue").DefineComponent<PlaceholderProps, {
|
|
|
80
80
|
default: (fileList: import("ant-design-vue/es/upload/interface").FileType[]) => void;
|
|
81
81
|
};
|
|
82
82
|
onRemove: {
|
|
83
|
-
type: import("vue").PropType<(file: import("ant-design-vue
|
|
83
|
+
type: import("vue").PropType<(file: import("ant-design-vue").UploadFile<any>) => boolean | void | Promise<boolean | void>>;
|
|
84
84
|
default: (file: import("ant-design-vue").UploadFile<any>) => boolean | void | Promise<boolean | void>;
|
|
85
85
|
};
|
|
86
86
|
remove: {
|
|
87
|
-
type: import("vue").PropType<(file: import("ant-design-vue
|
|
87
|
+
type: import("vue").PropType<(file: import("ant-design-vue").UploadFile<any>) => boolean | void | Promise<boolean | void>>;
|
|
88
88
|
default: (file: import("ant-design-vue").UploadFile<any>) => boolean | void | Promise<boolean | void>;
|
|
89
89
|
};
|
|
90
90
|
supportServerRender: {
|
|
@@ -123,16 +123,16 @@ declare const _default: import("vue").DefineComponent<PlaceholderProps, {
|
|
|
123
123
|
};
|
|
124
124
|
iconRender: {
|
|
125
125
|
type: import("vue").PropType<(opt: {
|
|
126
|
-
file: import("ant-design-vue
|
|
126
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
127
127
|
listType?: import("ant-design-vue/es/upload/interface").UploadListType;
|
|
128
128
|
}) => import("ant-design-vue/es/_util/type").VueNode>;
|
|
129
129
|
default: (opt: {
|
|
130
|
-
file: import("ant-design-vue
|
|
130
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
131
131
|
listType?: import("ant-design-vue/es/upload/interface").UploadListType;
|
|
132
132
|
}) => import("ant-design-vue/es/_util/type").VueNode;
|
|
133
133
|
};
|
|
134
134
|
isImageUrl: {
|
|
135
|
-
type: import("vue").PropType<(file: import("ant-design-vue
|
|
135
|
+
type: import("vue").PropType<(file: import("ant-design-vue").UploadFile<any>) => boolean>;
|
|
136
136
|
default: (file: import("ant-design-vue").UploadFile<any>) => boolean;
|
|
137
137
|
};
|
|
138
138
|
progress: {
|
|
@@ -150,26 +150,26 @@ declare const _default: import("vue").DefineComponent<PlaceholderProps, {
|
|
|
150
150
|
};
|
|
151
151
|
removeIcon: {
|
|
152
152
|
type: import("vue").PropType<(opt: {
|
|
153
|
-
file: import("ant-design-vue
|
|
153
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
154
154
|
}) => import("ant-design-vue/es/_util/type").VueNode>;
|
|
155
155
|
default: (opt: {
|
|
156
|
-
file: import("ant-design-vue
|
|
156
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
157
157
|
}) => import("ant-design-vue/es/_util/type").VueNode;
|
|
158
158
|
};
|
|
159
159
|
downloadIcon: {
|
|
160
160
|
type: import("vue").PropType<(opt: {
|
|
161
|
-
file: import("ant-design-vue
|
|
161
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
162
162
|
}) => import("ant-design-vue/es/_util/type").VueNode>;
|
|
163
163
|
default: (opt: {
|
|
164
|
-
file: import("ant-design-vue
|
|
164
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
165
165
|
}) => import("ant-design-vue/es/_util/type").VueNode;
|
|
166
166
|
};
|
|
167
167
|
previewIcon: {
|
|
168
168
|
type: import("vue").PropType<(opt: {
|
|
169
|
-
file: import("ant-design-vue
|
|
169
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
170
170
|
}) => import("ant-design-vue/es/_util/type").VueNode>;
|
|
171
171
|
default: (opt: {
|
|
172
|
-
file: import("ant-design-vue
|
|
172
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
173
173
|
}) => import("ant-design-vue/es/_util/type").VueNode;
|
|
174
174
|
};
|
|
175
175
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
@@ -237,11 +237,11 @@ declare const _default: import("vue").DefineComponent<PlaceholderProps, {
|
|
|
237
237
|
};
|
|
238
238
|
name: StringConstructor;
|
|
239
239
|
defaultFileList: {
|
|
240
|
-
type: import("vue").PropType<import("ant-design-vue
|
|
240
|
+
type: import("vue").PropType<import("ant-design-vue").UploadFile<any>[]>;
|
|
241
241
|
default: import("ant-design-vue").UploadFile<any>[];
|
|
242
242
|
};
|
|
243
243
|
fileList: {
|
|
244
|
-
type: import("vue").PropType<import("ant-design-vue
|
|
244
|
+
type: import("vue").PropType<import("ant-design-vue").UploadFile<any>[]>;
|
|
245
245
|
default: import("ant-design-vue").UploadFile<any>[];
|
|
246
246
|
};
|
|
247
247
|
action: {
|
|
@@ -253,8 +253,8 @@ declare const _default: import("vue").DefineComponent<PlaceholderProps, {
|
|
|
253
253
|
default: boolean;
|
|
254
254
|
};
|
|
255
255
|
data: {
|
|
256
|
-
type: import("vue").PropType<Record<string, unknown> | ((file: import("ant-design-vue
|
|
257
|
-
default: Record<string, unknown> | ((file: import("ant-design-vue
|
|
256
|
+
type: import("vue").PropType<Record<string, unknown> | ((file: import("ant-design-vue").UploadFile<any>) => Record<string, unknown> | Promise<Record<string, unknown>>)>;
|
|
257
|
+
default: Record<string, unknown> | ((file: import("ant-design-vue").UploadFile<any>) => Record<string, unknown> | Promise<Record<string, unknown>>);
|
|
258
258
|
};
|
|
259
259
|
method: {
|
|
260
260
|
type: import("vue").PropType<"post" | "POST" | "PUT" | "PATCH" | "put" | "patch">;
|
|
@@ -278,11 +278,11 @@ declare const _default: import("vue").DefineComponent<PlaceholderProps, {
|
|
|
278
278
|
default: (file: import("ant-design-vue/es/upload/interface").FileType, FileList: import("ant-design-vue/es/upload/interface").FileType[]) => (string | boolean | void | Blob | import("ant-design-vue/es/upload/interface").FileType) | Promise<string | boolean | void | Blob | import("ant-design-vue/es/upload/interface").FileType>;
|
|
279
279
|
};
|
|
280
280
|
onChange: {
|
|
281
|
-
type: import("vue").PropType<(info: import("ant-design-vue
|
|
281
|
+
type: import("vue").PropType<(info: import("ant-design-vue").UploadChangeParam<import("ant-design-vue").UploadFile<any>>) => void>;
|
|
282
282
|
default: (info: import("ant-design-vue").UploadChangeParam<import("ant-design-vue").UploadFile<any>>) => void;
|
|
283
283
|
};
|
|
284
284
|
'onUpdate:fileList': {
|
|
285
|
-
type: import("vue").PropType<(fileList: import("ant-design-vue
|
|
285
|
+
type: import("vue").PropType<(fileList: import("ant-design-vue").UploadFile<any>[]) => void>;
|
|
286
286
|
default: (fileList: import("ant-design-vue").UploadFile<any>[]) => void;
|
|
287
287
|
};
|
|
288
288
|
onDrop: {
|
|
@@ -294,11 +294,11 @@ declare const _default: import("vue").DefineComponent<PlaceholderProps, {
|
|
|
294
294
|
default: import("ant-design-vue/es/upload/interface").UploadListType;
|
|
295
295
|
};
|
|
296
296
|
onPreview: {
|
|
297
|
-
type: import("vue").PropType<(file: import("ant-design-vue
|
|
297
|
+
type: import("vue").PropType<(file: import("ant-design-vue").UploadFile<any>) => void>;
|
|
298
298
|
default: (file: import("ant-design-vue").UploadFile<any>) => void;
|
|
299
299
|
};
|
|
300
300
|
onDownload: {
|
|
301
|
-
type: import("vue").PropType<(file: import("ant-design-vue
|
|
301
|
+
type: import("vue").PropType<(file: import("ant-design-vue").UploadFile<any>) => void>;
|
|
302
302
|
default: (file: import("ant-design-vue").UploadFile<any>) => void;
|
|
303
303
|
};
|
|
304
304
|
onReject: {
|
|
@@ -306,11 +306,11 @@ declare const _default: import("vue").DefineComponent<PlaceholderProps, {
|
|
|
306
306
|
default: (fileList: import("ant-design-vue/es/upload/interface").FileType[]) => void;
|
|
307
307
|
};
|
|
308
308
|
onRemove: {
|
|
309
|
-
type: import("vue").PropType<(file: import("ant-design-vue
|
|
309
|
+
type: import("vue").PropType<(file: import("ant-design-vue").UploadFile<any>) => boolean | void | Promise<boolean | void>>;
|
|
310
310
|
default: (file: import("ant-design-vue").UploadFile<any>) => boolean | void | Promise<boolean | void>;
|
|
311
311
|
};
|
|
312
312
|
remove: {
|
|
313
|
-
type: import("vue").PropType<(file: import("ant-design-vue
|
|
313
|
+
type: import("vue").PropType<(file: import("ant-design-vue").UploadFile<any>) => boolean | void | Promise<boolean | void>>;
|
|
314
314
|
default: (file: import("ant-design-vue").UploadFile<any>) => boolean | void | Promise<boolean | void>;
|
|
315
315
|
};
|
|
316
316
|
supportServerRender: {
|
|
@@ -349,16 +349,16 @@ declare const _default: import("vue").DefineComponent<PlaceholderProps, {
|
|
|
349
349
|
};
|
|
350
350
|
iconRender: {
|
|
351
351
|
type: import("vue").PropType<(opt: {
|
|
352
|
-
file: import("ant-design-vue
|
|
352
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
353
353
|
listType?: import("ant-design-vue/es/upload/interface").UploadListType;
|
|
354
354
|
}) => import("ant-design-vue/es/_util/type").VueNode>;
|
|
355
355
|
default: (opt: {
|
|
356
|
-
file: import("ant-design-vue
|
|
356
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
357
357
|
listType?: import("ant-design-vue/es/upload/interface").UploadListType;
|
|
358
358
|
}) => import("ant-design-vue/es/_util/type").VueNode;
|
|
359
359
|
};
|
|
360
360
|
isImageUrl: {
|
|
361
|
-
type: import("vue").PropType<(file: import("ant-design-vue
|
|
361
|
+
type: import("vue").PropType<(file: import("ant-design-vue").UploadFile<any>) => boolean>;
|
|
362
362
|
default: (file: import("ant-design-vue").UploadFile<any>) => boolean;
|
|
363
363
|
};
|
|
364
364
|
progress: {
|
|
@@ -376,26 +376,26 @@ declare const _default: import("vue").DefineComponent<PlaceholderProps, {
|
|
|
376
376
|
};
|
|
377
377
|
removeIcon: {
|
|
378
378
|
type: import("vue").PropType<(opt: {
|
|
379
|
-
file: import("ant-design-vue
|
|
379
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
380
380
|
}) => import("ant-design-vue/es/_util/type").VueNode>;
|
|
381
381
|
default: (opt: {
|
|
382
|
-
file: import("ant-design-vue
|
|
382
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
383
383
|
}) => import("ant-design-vue/es/_util/type").VueNode;
|
|
384
384
|
};
|
|
385
385
|
downloadIcon: {
|
|
386
386
|
type: import("vue").PropType<(opt: {
|
|
387
|
-
file: import("ant-design-vue
|
|
387
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
388
388
|
}) => import("ant-design-vue/es/_util/type").VueNode>;
|
|
389
389
|
default: (opt: {
|
|
390
|
-
file: import("ant-design-vue
|
|
390
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
391
391
|
}) => import("ant-design-vue/es/_util/type").VueNode;
|
|
392
392
|
};
|
|
393
393
|
previewIcon: {
|
|
394
394
|
type: import("vue").PropType<(opt: {
|
|
395
|
-
file: import("ant-design-vue
|
|
395
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
396
396
|
}) => import("ant-design-vue/es/_util/type").VueNode>;
|
|
397
397
|
default: (opt: {
|
|
398
|
-
file: import("ant-design-vue
|
|
398
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
399
399
|
}) => import("ant-design-vue/es/_util/type").VueNode;
|
|
400
400
|
};
|
|
401
401
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
@@ -11,11 +11,11 @@ declare const _default: import("vue").DefineComponent<SilentUploaderProps, {
|
|
|
11
11
|
};
|
|
12
12
|
name: StringConstructor;
|
|
13
13
|
defaultFileList: {
|
|
14
|
-
type: import("vue").PropType<import("ant-design-vue
|
|
14
|
+
type: import("vue").PropType<import("ant-design-vue").UploadFile<any>[]>;
|
|
15
15
|
default: import("ant-design-vue").UploadFile<any>[];
|
|
16
16
|
};
|
|
17
17
|
fileList: {
|
|
18
|
-
type: import("vue").PropType<import("ant-design-vue
|
|
18
|
+
type: import("vue").PropType<import("ant-design-vue").UploadFile<any>[]>;
|
|
19
19
|
default: import("ant-design-vue").UploadFile<any>[];
|
|
20
20
|
};
|
|
21
21
|
action: {
|
|
@@ -27,8 +27,8 @@ declare const _default: import("vue").DefineComponent<SilentUploaderProps, {
|
|
|
27
27
|
default: boolean;
|
|
28
28
|
};
|
|
29
29
|
data: {
|
|
30
|
-
type: import("vue").PropType<Record<string, unknown> | ((file: import("ant-design-vue
|
|
31
|
-
default: Record<string, unknown> | ((file: import("ant-design-vue
|
|
30
|
+
type: import("vue").PropType<Record<string, unknown> | ((file: import("ant-design-vue").UploadFile<any>) => Record<string, unknown> | Promise<Record<string, unknown>>)>;
|
|
31
|
+
default: Record<string, unknown> | ((file: import("ant-design-vue").UploadFile<any>) => Record<string, unknown> | Promise<Record<string, unknown>>);
|
|
32
32
|
};
|
|
33
33
|
method: {
|
|
34
34
|
type: import("vue").PropType<"post" | "POST" | "PUT" | "PATCH" | "put" | "patch">;
|
|
@@ -52,11 +52,11 @@ declare const _default: import("vue").DefineComponent<SilentUploaderProps, {
|
|
|
52
52
|
default: (file: import("ant-design-vue/es/upload/interface").FileType, FileList: import("ant-design-vue/es/upload/interface").FileType[]) => (string | boolean | void | Blob | import("ant-design-vue/es/upload/interface").FileType) | Promise<string | boolean | void | Blob | import("ant-design-vue/es/upload/interface").FileType>;
|
|
53
53
|
};
|
|
54
54
|
onChange: {
|
|
55
|
-
type: import("vue").PropType<(info: import("ant-design-vue
|
|
55
|
+
type: import("vue").PropType<(info: import("ant-design-vue").UploadChangeParam<import("ant-design-vue").UploadFile<any>>) => void>;
|
|
56
56
|
default: (info: import("ant-design-vue").UploadChangeParam<import("ant-design-vue").UploadFile<any>>) => void;
|
|
57
57
|
};
|
|
58
58
|
'onUpdate:fileList': {
|
|
59
|
-
type: import("vue").PropType<(fileList: import("ant-design-vue
|
|
59
|
+
type: import("vue").PropType<(fileList: import("ant-design-vue").UploadFile<any>[]) => void>;
|
|
60
60
|
default: (fileList: import("ant-design-vue").UploadFile<any>[]) => void;
|
|
61
61
|
};
|
|
62
62
|
onDrop: {
|
|
@@ -68,11 +68,11 @@ declare const _default: import("vue").DefineComponent<SilentUploaderProps, {
|
|
|
68
68
|
default: import("ant-design-vue/es/upload/interface").UploadListType;
|
|
69
69
|
};
|
|
70
70
|
onPreview: {
|
|
71
|
-
type: import("vue").PropType<(file: import("ant-design-vue
|
|
71
|
+
type: import("vue").PropType<(file: import("ant-design-vue").UploadFile<any>) => void>;
|
|
72
72
|
default: (file: import("ant-design-vue").UploadFile<any>) => void;
|
|
73
73
|
};
|
|
74
74
|
onDownload: {
|
|
75
|
-
type: import("vue").PropType<(file: import("ant-design-vue
|
|
75
|
+
type: import("vue").PropType<(file: import("ant-design-vue").UploadFile<any>) => void>;
|
|
76
76
|
default: (file: import("ant-design-vue").UploadFile<any>) => void;
|
|
77
77
|
};
|
|
78
78
|
onReject: {
|
|
@@ -80,11 +80,11 @@ declare const _default: import("vue").DefineComponent<SilentUploaderProps, {
|
|
|
80
80
|
default: (fileList: import("ant-design-vue/es/upload/interface").FileType[]) => void;
|
|
81
81
|
};
|
|
82
82
|
onRemove: {
|
|
83
|
-
type: import("vue").PropType<(file: import("ant-design-vue
|
|
83
|
+
type: import("vue").PropType<(file: import("ant-design-vue").UploadFile<any>) => boolean | void | Promise<boolean | void>>;
|
|
84
84
|
default: (file: import("ant-design-vue").UploadFile<any>) => boolean | void | Promise<boolean | void>;
|
|
85
85
|
};
|
|
86
86
|
remove: {
|
|
87
|
-
type: import("vue").PropType<(file: import("ant-design-vue
|
|
87
|
+
type: import("vue").PropType<(file: import("ant-design-vue").UploadFile<any>) => boolean | void | Promise<boolean | void>>;
|
|
88
88
|
default: (file: import("ant-design-vue").UploadFile<any>) => boolean | void | Promise<boolean | void>;
|
|
89
89
|
};
|
|
90
90
|
supportServerRender: {
|
|
@@ -123,16 +123,16 @@ declare const _default: import("vue").DefineComponent<SilentUploaderProps, {
|
|
|
123
123
|
};
|
|
124
124
|
iconRender: {
|
|
125
125
|
type: import("vue").PropType<(opt: {
|
|
126
|
-
file: import("ant-design-vue
|
|
126
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
127
127
|
listType?: import("ant-design-vue/es/upload/interface").UploadListType;
|
|
128
128
|
}) => import("ant-design-vue/es/_util/type").VueNode>;
|
|
129
129
|
default: (opt: {
|
|
130
|
-
file: import("ant-design-vue
|
|
130
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
131
131
|
listType?: import("ant-design-vue/es/upload/interface").UploadListType;
|
|
132
132
|
}) => import("ant-design-vue/es/_util/type").VueNode;
|
|
133
133
|
};
|
|
134
134
|
isImageUrl: {
|
|
135
|
-
type: import("vue").PropType<(file: import("ant-design-vue
|
|
135
|
+
type: import("vue").PropType<(file: import("ant-design-vue").UploadFile<any>) => boolean>;
|
|
136
136
|
default: (file: import("ant-design-vue").UploadFile<any>) => boolean;
|
|
137
137
|
};
|
|
138
138
|
progress: {
|
|
@@ -150,49 +150,49 @@ declare const _default: import("vue").DefineComponent<SilentUploaderProps, {
|
|
|
150
150
|
};
|
|
151
151
|
removeIcon: {
|
|
152
152
|
type: import("vue").PropType<(opt: {
|
|
153
|
-
file: import("ant-design-vue
|
|
153
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
154
154
|
}) => import("ant-design-vue/es/_util/type").VueNode>;
|
|
155
155
|
default: (opt: {
|
|
156
|
-
file: import("ant-design-vue
|
|
156
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
157
157
|
}) => import("ant-design-vue/es/_util/type").VueNode;
|
|
158
158
|
};
|
|
159
159
|
downloadIcon: {
|
|
160
160
|
type: import("vue").PropType<(opt: {
|
|
161
|
-
file: import("ant-design-vue
|
|
161
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
162
162
|
}) => import("ant-design-vue/es/_util/type").VueNode>;
|
|
163
163
|
default: (opt: {
|
|
164
|
-
file: import("ant-design-vue
|
|
164
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
165
165
|
}) => import("ant-design-vue/es/_util/type").VueNode;
|
|
166
166
|
};
|
|
167
167
|
previewIcon: {
|
|
168
168
|
type: import("vue").PropType<(opt: {
|
|
169
|
-
file: import("ant-design-vue
|
|
169
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
170
170
|
}) => import("ant-design-vue/es/_util/type").VueNode>;
|
|
171
171
|
default: (opt: {
|
|
172
|
-
file: import("ant-design-vue
|
|
172
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
173
173
|
}) => import("ant-design-vue/es/_util/type").VueNode;
|
|
174
174
|
};
|
|
175
175
|
}>> & Readonly<{}>, () => import("ant-design-vue/es/_util/type").VueNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
176
176
|
progress: import("ant-design-vue/es/upload/interface").UploadListProgressProps;
|
|
177
177
|
type: import("ant-design-vue/es/upload/interface").UploadType;
|
|
178
178
|
height: unknown;
|
|
179
|
-
data: Record<string, unknown> | ((file: import("ant-design-vue
|
|
179
|
+
data: Record<string, unknown> | ((file: import("ant-design-vue").UploadFile<any>) => Record<string, unknown> | Promise<Record<string, unknown>>);
|
|
180
180
|
onDrop: (event: DragEvent) => void;
|
|
181
|
-
onChange: (info: import("ant-design-vue
|
|
181
|
+
onChange: (info: import("ant-design-vue").UploadChangeParam<import("ant-design-vue").UploadFile<any>>) => void;
|
|
182
182
|
multiple: boolean;
|
|
183
183
|
disabled: boolean;
|
|
184
184
|
method: "post" | "POST" | "PUT" | "PATCH" | "put" | "patch";
|
|
185
|
-
remove: (file: import("ant-design-vue
|
|
185
|
+
remove: (file: import("ant-design-vue").UploadFile<any>) => boolean | void | Promise<boolean | void>;
|
|
186
186
|
locale: import("ant-design-vue/es/upload/interface").UploadLocale;
|
|
187
187
|
action: string | ((file: import("ant-design-vue/es/upload/interface").FileType) => string) | ((file: import("ant-design-vue/es/upload/interface").FileType) => PromiseLike<string>);
|
|
188
188
|
capture: boolean | "user" | "environment";
|
|
189
189
|
iconRender: (opt: {
|
|
190
|
-
file: import("ant-design-vue
|
|
190
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
191
191
|
listType?: import("ant-design-vue/es/upload/interface").UploadListType;
|
|
192
192
|
}) => import("ant-design-vue/es/_util/type").VueNode;
|
|
193
|
-
onRemove: (file: import("ant-design-vue
|
|
193
|
+
onRemove: (file: import("ant-design-vue").UploadFile<any>) => boolean | void | Promise<boolean | void>;
|
|
194
194
|
removeIcon: (opt: {
|
|
195
|
-
file: import("ant-design-vue
|
|
195
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
196
196
|
}) => import("ant-design-vue/es/_util/type").VueNode;
|
|
197
197
|
itemRender: import("ant-design-vue/es/upload/interface").ItemRender<any>;
|
|
198
198
|
directory: boolean;
|
|
@@ -205,19 +205,19 @@ declare const _default: import("vue").DefineComponent<SilentUploaderProps, {
|
|
|
205
205
|
fileList: import("ant-design-vue").UploadFile<any>[];
|
|
206
206
|
defaultFileList: import("ant-design-vue").UploadFile<any>[];
|
|
207
207
|
showUploadList: boolean | import("ant-design-vue/es/upload/interface").ShowUploadListInterface;
|
|
208
|
-
'onUpdate:fileList': (fileList: import("ant-design-vue
|
|
208
|
+
'onUpdate:fileList': (fileList: import("ant-design-vue").UploadFile<any>[]) => void;
|
|
209
209
|
listType: import("ant-design-vue/es/upload/interface").UploadListType;
|
|
210
|
-
onPreview: (file: import("ant-design-vue
|
|
211
|
-
onDownload: (file: import("ant-design-vue
|
|
210
|
+
onPreview: (file: import("ant-design-vue").UploadFile<any>) => void;
|
|
211
|
+
onDownload: (file: import("ant-design-vue").UploadFile<any>) => void;
|
|
212
212
|
supportServerRender: boolean;
|
|
213
213
|
previewFile: (file: Blob | import("ant-design-vue/es/upload/interface").FileType) => PromiseLike<string>;
|
|
214
214
|
transformFile: (file: import("ant-design-vue/es/upload/interface").FileType) => string | Blob | import("ant-design-vue/es/upload/interface").FileType | PromiseLike<string | Blob | import("ant-design-vue/es/upload/interface").FileType>;
|
|
215
|
-
isImageUrl: (file: import("ant-design-vue
|
|
215
|
+
isImageUrl: (file: import("ant-design-vue").UploadFile<any>) => boolean;
|
|
216
216
|
downloadIcon: (opt: {
|
|
217
|
-
file: import("ant-design-vue
|
|
217
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
218
218
|
}) => import("ant-design-vue/es/_util/type").VueNode;
|
|
219
219
|
previewIcon: (opt: {
|
|
220
|
-
file: import("ant-design-vue
|
|
220
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
221
221
|
}) => import("ant-design-vue/es/_util/type").VueNode;
|
|
222
222
|
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
223
223
|
P: {};
|
|
@@ -237,11 +237,11 @@ declare const _default: import("vue").DefineComponent<SilentUploaderProps, {
|
|
|
237
237
|
};
|
|
238
238
|
name: StringConstructor;
|
|
239
239
|
defaultFileList: {
|
|
240
|
-
type: import("vue").PropType<import("ant-design-vue
|
|
240
|
+
type: import("vue").PropType<import("ant-design-vue").UploadFile<any>[]>;
|
|
241
241
|
default: import("ant-design-vue").UploadFile<any>[];
|
|
242
242
|
};
|
|
243
243
|
fileList: {
|
|
244
|
-
type: import("vue").PropType<import("ant-design-vue
|
|
244
|
+
type: import("vue").PropType<import("ant-design-vue").UploadFile<any>[]>;
|
|
245
245
|
default: import("ant-design-vue").UploadFile<any>[];
|
|
246
246
|
};
|
|
247
247
|
action: {
|
|
@@ -253,8 +253,8 @@ declare const _default: import("vue").DefineComponent<SilentUploaderProps, {
|
|
|
253
253
|
default: boolean;
|
|
254
254
|
};
|
|
255
255
|
data: {
|
|
256
|
-
type: import("vue").PropType<Record<string, unknown> | ((file: import("ant-design-vue
|
|
257
|
-
default: Record<string, unknown> | ((file: import("ant-design-vue
|
|
256
|
+
type: import("vue").PropType<Record<string, unknown> | ((file: import("ant-design-vue").UploadFile<any>) => Record<string, unknown> | Promise<Record<string, unknown>>)>;
|
|
257
|
+
default: Record<string, unknown> | ((file: import("ant-design-vue").UploadFile<any>) => Record<string, unknown> | Promise<Record<string, unknown>>);
|
|
258
258
|
};
|
|
259
259
|
method: {
|
|
260
260
|
type: import("vue").PropType<"post" | "POST" | "PUT" | "PATCH" | "put" | "patch">;
|
|
@@ -278,11 +278,11 @@ declare const _default: import("vue").DefineComponent<SilentUploaderProps, {
|
|
|
278
278
|
default: (file: import("ant-design-vue/es/upload/interface").FileType, FileList: import("ant-design-vue/es/upload/interface").FileType[]) => (string | boolean | void | Blob | import("ant-design-vue/es/upload/interface").FileType) | Promise<string | boolean | void | Blob | import("ant-design-vue/es/upload/interface").FileType>;
|
|
279
279
|
};
|
|
280
280
|
onChange: {
|
|
281
|
-
type: import("vue").PropType<(info: import("ant-design-vue
|
|
281
|
+
type: import("vue").PropType<(info: import("ant-design-vue").UploadChangeParam<import("ant-design-vue").UploadFile<any>>) => void>;
|
|
282
282
|
default: (info: import("ant-design-vue").UploadChangeParam<import("ant-design-vue").UploadFile<any>>) => void;
|
|
283
283
|
};
|
|
284
284
|
'onUpdate:fileList': {
|
|
285
|
-
type: import("vue").PropType<(fileList: import("ant-design-vue
|
|
285
|
+
type: import("vue").PropType<(fileList: import("ant-design-vue").UploadFile<any>[]) => void>;
|
|
286
286
|
default: (fileList: import("ant-design-vue").UploadFile<any>[]) => void;
|
|
287
287
|
};
|
|
288
288
|
onDrop: {
|
|
@@ -294,11 +294,11 @@ declare const _default: import("vue").DefineComponent<SilentUploaderProps, {
|
|
|
294
294
|
default: import("ant-design-vue/es/upload/interface").UploadListType;
|
|
295
295
|
};
|
|
296
296
|
onPreview: {
|
|
297
|
-
type: import("vue").PropType<(file: import("ant-design-vue
|
|
297
|
+
type: import("vue").PropType<(file: import("ant-design-vue").UploadFile<any>) => void>;
|
|
298
298
|
default: (file: import("ant-design-vue").UploadFile<any>) => void;
|
|
299
299
|
};
|
|
300
300
|
onDownload: {
|
|
301
|
-
type: import("vue").PropType<(file: import("ant-design-vue
|
|
301
|
+
type: import("vue").PropType<(file: import("ant-design-vue").UploadFile<any>) => void>;
|
|
302
302
|
default: (file: import("ant-design-vue").UploadFile<any>) => void;
|
|
303
303
|
};
|
|
304
304
|
onReject: {
|
|
@@ -306,11 +306,11 @@ declare const _default: import("vue").DefineComponent<SilentUploaderProps, {
|
|
|
306
306
|
default: (fileList: import("ant-design-vue/es/upload/interface").FileType[]) => void;
|
|
307
307
|
};
|
|
308
308
|
onRemove: {
|
|
309
|
-
type: import("vue").PropType<(file: import("ant-design-vue
|
|
309
|
+
type: import("vue").PropType<(file: import("ant-design-vue").UploadFile<any>) => boolean | void | Promise<boolean | void>>;
|
|
310
310
|
default: (file: import("ant-design-vue").UploadFile<any>) => boolean | void | Promise<boolean | void>;
|
|
311
311
|
};
|
|
312
312
|
remove: {
|
|
313
|
-
type: import("vue").PropType<(file: import("ant-design-vue
|
|
313
|
+
type: import("vue").PropType<(file: import("ant-design-vue").UploadFile<any>) => boolean | void | Promise<boolean | void>>;
|
|
314
314
|
default: (file: import("ant-design-vue").UploadFile<any>) => boolean | void | Promise<boolean | void>;
|
|
315
315
|
};
|
|
316
316
|
supportServerRender: {
|
|
@@ -349,16 +349,16 @@ declare const _default: import("vue").DefineComponent<SilentUploaderProps, {
|
|
|
349
349
|
};
|
|
350
350
|
iconRender: {
|
|
351
351
|
type: import("vue").PropType<(opt: {
|
|
352
|
-
file: import("ant-design-vue
|
|
352
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
353
353
|
listType?: import("ant-design-vue/es/upload/interface").UploadListType;
|
|
354
354
|
}) => import("ant-design-vue/es/_util/type").VueNode>;
|
|
355
355
|
default: (opt: {
|
|
356
|
-
file: import("ant-design-vue
|
|
356
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
357
357
|
listType?: import("ant-design-vue/es/upload/interface").UploadListType;
|
|
358
358
|
}) => import("ant-design-vue/es/_util/type").VueNode;
|
|
359
359
|
};
|
|
360
360
|
isImageUrl: {
|
|
361
|
-
type: import("vue").PropType<(file: import("ant-design-vue
|
|
361
|
+
type: import("vue").PropType<(file: import("ant-design-vue").UploadFile<any>) => boolean>;
|
|
362
362
|
default: (file: import("ant-design-vue").UploadFile<any>) => boolean;
|
|
363
363
|
};
|
|
364
364
|
progress: {
|
|
@@ -376,26 +376,26 @@ declare const _default: import("vue").DefineComponent<SilentUploaderProps, {
|
|
|
376
376
|
};
|
|
377
377
|
removeIcon: {
|
|
378
378
|
type: import("vue").PropType<(opt: {
|
|
379
|
-
file: import("ant-design-vue
|
|
379
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
380
380
|
}) => import("ant-design-vue/es/_util/type").VueNode>;
|
|
381
381
|
default: (opt: {
|
|
382
|
-
file: import("ant-design-vue
|
|
382
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
383
383
|
}) => import("ant-design-vue/es/_util/type").VueNode;
|
|
384
384
|
};
|
|
385
385
|
downloadIcon: {
|
|
386
386
|
type: import("vue").PropType<(opt: {
|
|
387
|
-
file: import("ant-design-vue
|
|
387
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
388
388
|
}) => import("ant-design-vue/es/_util/type").VueNode>;
|
|
389
389
|
default: (opt: {
|
|
390
|
-
file: import("ant-design-vue
|
|
390
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
391
391
|
}) => import("ant-design-vue/es/_util/type").VueNode;
|
|
392
392
|
};
|
|
393
393
|
previewIcon: {
|
|
394
394
|
type: import("vue").PropType<(opt: {
|
|
395
|
-
file: import("ant-design-vue
|
|
395
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
396
396
|
}) => import("ant-design-vue/es/_util/type").VueNode>;
|
|
397
397
|
default: (opt: {
|
|
398
|
-
file: import("ant-design-vue
|
|
398
|
+
file: import("ant-design-vue").UploadFile<any>;
|
|
399
399
|
}) => import("ant-design-vue/es/_util/type").VueNode;
|
|
400
400
|
};
|
|
401
401
|
}>> & Readonly<{}>, () => import("ant-design-vue/es/_util/type").VueNode, {}, {}, {}, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { UploadChangeParam, UploadFile, UploadProps } from "ant-design-vue";
|
|
1
|
+
import type { ImageProps, UploadChangeParam, UploadFile, UploadProps } from "ant-design-vue";
|
|
2
2
|
import type { CSSProperties, VNode } from "vue";
|
|
3
3
|
export interface AttachmentContextProps {
|
|
4
4
|
disabled?: boolean;
|
|
@@ -34,6 +34,7 @@ export interface FileListProps {
|
|
|
34
34
|
onRemove: (item: Attachment) => void;
|
|
35
35
|
overflow?: 'scrollX' | 'scrollY' | 'wrap';
|
|
36
36
|
upload: UploadProps;
|
|
37
|
+
imageProps?: ImageProps;
|
|
37
38
|
listClassName?: string;
|
|
38
39
|
listStyle?: CSSProperties;
|
|
39
40
|
itemClassName?: string;
|
|
@@ -45,6 +46,7 @@ export interface FileListCardProps {
|
|
|
45
46
|
onRemove?: (item: Attachment) => void;
|
|
46
47
|
className?: string;
|
|
47
48
|
style?: CSSProperties;
|
|
49
|
+
imageProps?: ImageProps;
|
|
48
50
|
}
|
|
49
51
|
export interface ProgressProps {
|
|
50
52
|
prefixCls: string;
|
|
@@ -114,6 +116,7 @@ export interface AttachmentsProps extends AntdUploadProps {
|
|
|
114
116
|
getDropContainer?: null | (() => HTMLElement | null | undefined);
|
|
115
117
|
items?: Attachment[];
|
|
116
118
|
overflow?: FileListProps['overflow'];
|
|
119
|
+
imageProps?: FileListProps['imageProps'];
|
|
117
120
|
onChange?: (info: UploadChangeParam<UploadFile>) => void;
|
|
118
121
|
}
|
|
119
122
|
export interface AttachmentsRef {
|
|
@@ -9,9 +9,7 @@ declare const _default: <T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_
|
|
|
9
9
|
default(props?: any): any;
|
|
10
10
|
};
|
|
11
11
|
emit: {};
|
|
12
|
-
}>) => import("vue").VNode
|
|
13
|
-
[key: string]: any;
|
|
14
|
-
}> & {
|
|
12
|
+
}>) => import("vue").VNode & {
|
|
15
13
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
16
14
|
};
|
|
17
15
|
export default _default;
|