@aplus-frontend/ui 0.4.1 → 0.4.2
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/es/src/ap-field/number/index.vue.d.ts +322 -1
- package/es/src/ap-field/radio/index.vue.d.ts +98 -2
- package/es/src/ap-field/rate/index.vue.d.ts +82 -1
- package/es/src/ap-field/segmented/index.vue.d.ts +1 -7
- package/es/src/ap-field/select/index.vue.d.ts +423 -1
- package/es/src/ap-field/select/index.vue.mjs +4 -3
- package/es/src/ap-field/slider/index.vue.d.ts +257 -1
- package/es/src/ap-field/text/index.vue.d.ts +1 -13
- package/es/src/ap-field/text-area/index.vue.d.ts +267 -2
- package/es/src/ap-form/ap-form.vue.d.ts +636 -1
- package/es/src/ap-form/drawer-form/index.vue.d.ts +1454 -4
- package/es/src/ap-form/item/index.vue.d.ts +777 -1
- package/es/src/ap-form/items/number/index.vue.d.ts +783 -2
- package/es/src/ap-form/items/radio/index.vue.d.ts +221 -3
- package/es/src/ap-form/items/text/index.vue.d.ts +128 -15
- package/es/src/ap-form/items/text/password.vue.d.ts +148 -1
- package/es/src/ap-form/items/text-area/index.vue.d.ts +566 -3
- package/es/src/ap-form/modal-form/index.vue.d.ts +1454 -5
- package/es/src/ap-form/modal-form/index.vue.mjs +64 -66
- package/es/src/ap-form/search-form/index.vue.d.ts +1454 -3
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +4 -1
- package/es/src/ap-list/index.vue.d.ts +1 -1
- package/es/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -1
- package/es/src/ap-scroll-bar/index.d.ts +3 -1
- package/es/src/ap-table/ap-table.vue.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue2.mjs +98 -97
- package/es/src/ap-table/constants.d.ts +2260 -26
- package/es/src/ap-table/context.d.ts +1 -0
- package/es/src/ap-table/context.mjs +11 -10
- package/es/src/ap-table/utils.d.ts +1168 -8
- package/es/src/ap-tag/ap-tag-group.vue.d.ts +3 -1
- package/es/src/ap-upload/apUpload.vue.d.ts +3 -1
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
- package/es/src/ap-upload/components/Picture.vue.d.ts +3 -1
- package/es/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +66 -61
- package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
- package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +5 -4
- package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +3 -1
- package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +8 -7
- package/es/src/business/ap-group-search/index.d.ts +444 -4
- package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +421 -3
- package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +1 -0
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
- package/es/src/business/ap-table-modal/index.d.ts +22 -2
- package/es/src/business/ap-table-modal/interface.d.ts +2 -2
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +22 -2
- package/es/src/business/batch-input-group/index.vue.d.ts +134 -3
- package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
- package/es/src/business/hooks/usePageListApTable.mjs +20 -18
- package/es/src/editable-table/form-item.vue.d.ts +1 -1
- package/es/src/editable-table/index.vue.d.ts +1 -1
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +827 -2
- package/lib/src/ap-field/number/index.vue.d.ts +322 -1
- package/lib/src/ap-field/radio/index.vue.d.ts +98 -2
- package/lib/src/ap-field/rate/index.vue.d.ts +82 -1
- package/lib/src/ap-field/segmented/index.vue.d.ts +1 -7
- package/lib/src/ap-field/select/index.vue.d.ts +423 -1
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +257 -1
- package/lib/src/ap-field/text/index.vue.d.ts +1 -13
- package/lib/src/ap-field/text-area/index.vue.d.ts +267 -2
- package/lib/src/ap-form/ap-form.vue.d.ts +636 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +1454 -4
- package/lib/src/ap-form/item/index.vue.d.ts +777 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +783 -2
- package/lib/src/ap-form/items/radio/index.vue.d.ts +221 -3
- package/lib/src/ap-form/items/text/index.vue.d.ts +128 -15
- package/lib/src/ap-form/items/text/password.vue.d.ts +148 -1
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +566 -3
- package/lib/src/ap-form/modal-form/index.vue.d.ts +1454 -5
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +1454 -3
- package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +4 -1
- package/lib/src/ap-list/index.vue.d.ts +1 -1
- package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -1
- package/lib/src/ap-scroll-bar/index.d.ts +3 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +2260 -26
- package/lib/src/ap-table/context.d.ts +1 -0
- package/lib/src/ap-table/context.js +1 -1
- package/lib/src/ap-table/utils.d.ts +1168 -8
- package/lib/src/ap-tag/ap-tag-group.vue.d.ts +3 -1
- package/lib/src/ap-upload/apUpload.vue.d.ts +3 -1
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
- package/lib/src/ap-upload/components/Picture.vue.d.ts +3 -1
- package/lib/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
- package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -1
- package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +3 -1
- package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -1
- package/lib/src/business/ap-group-search/index.d.ts +444 -4
- package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +421 -3
- package/lib/src/business/ap-group-search/popover-select/index.vue2.js +1 -1
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
- package/lib/src/business/ap-table-modal/index.d.ts +22 -2
- package/lib/src/business/ap-table-modal/interface.d.ts +2 -2
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +22 -2
- package/lib/src/business/batch-input-group/index.vue.d.ts +134 -3
- package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
- package/lib/src/business/hooks/usePageListApTable.js +1 -1
- package/lib/src/editable-table/form-item.vue.d.ts +1 -1
- package/lib/src/editable-table/index.vue.d.ts +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +827 -2
- package/package.json +5 -5
- package/theme/ap-form/index.css +3 -4
- package/theme/ap-form/modal-form.css +3 -4
- package/theme/ap-form/modal-form.less +3 -4
- package/theme/ap-table/ap-table.css +3 -4
- package/theme/ap-table-modal/index.css +3 -4
- package/theme/editable-table/index.css +3 -4
- package/theme/index.css +3 -4
|
@@ -18,7 +18,9 @@ declare const __VLS_component: DefineComponent<ApTagGroupProps, {}, {}, {}, {},
|
|
|
18
18
|
ellipsis: EllipsisProps;
|
|
19
19
|
space: number;
|
|
20
20
|
list: ApTagProps[];
|
|
21
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
21
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
22
|
+
container: HTMLDivElement;
|
|
23
|
+
}, any>;
|
|
22
24
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
25
|
export default _default;
|
|
24
26
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -169,7 +169,9 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
169
169
|
acceptErrorMsg: string;
|
|
170
170
|
maxCount: number;
|
|
171
171
|
maxCountErrorMsg: string;
|
|
172
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
172
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
173
|
+
uploadRef: unknown;
|
|
174
|
+
}, HTMLDivElement>;
|
|
173
175
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
174
176
|
export default _default;
|
|
175
177
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,6 +1,457 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UploadFile, UploadChangeParam } from '@aplus-frontend/antdv';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
|
|
3
|
+
import { UploadType, UploadFile, FileType, HttpRequestHeader, ShowUploadListInterface, UploadListType, UploadLocale, UploadListProgressProps, ItemRender } from '@aplus-frontend/antdv/es/upload/interface';
|
|
4
|
+
import { UploadRequestOption } from '@aplus-frontend/antdv/es/vc-upload/interface';
|
|
5
|
+
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
2
6
|
declare function setValue(val: (string | Record<string, any>)[]): void;
|
|
3
7
|
declare const _default: DefineComponent<{}, {
|
|
4
8
|
setValue: typeof setValue;
|
|
5
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
9
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
10
|
+
uploadRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
11
|
+
capture: {
|
|
12
|
+
type: PropType<boolean | "user" | "environment">;
|
|
13
|
+
default: boolean | "user" | "environment";
|
|
14
|
+
};
|
|
15
|
+
type: {
|
|
16
|
+
type: PropType<UploadType>;
|
|
17
|
+
default: UploadType;
|
|
18
|
+
};
|
|
19
|
+
name: StringConstructor;
|
|
20
|
+
defaultFileList: {
|
|
21
|
+
type: PropType< UploadFile<any>[]>;
|
|
22
|
+
default: UploadFile<any>[];
|
|
23
|
+
};
|
|
24
|
+
fileList: {
|
|
25
|
+
type: PropType< UploadFile<any>[]>;
|
|
26
|
+
default: UploadFile<any>[];
|
|
27
|
+
};
|
|
28
|
+
action: {
|
|
29
|
+
type: PropType<string | ((file: FileType) => string) | ((file: FileType) => PromiseLike<string>)>;
|
|
30
|
+
default: string | ((file: FileType) => string) | ((file: FileType) => PromiseLike<string>);
|
|
31
|
+
};
|
|
32
|
+
directory: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
data: {
|
|
37
|
+
type: PropType<Record<string, unknown> | ((file: UploadFile<any>) => Record<string, unknown> | Promise<Record<string, unknown>>)>;
|
|
38
|
+
default: Record<string, unknown> | ((file: UploadFile<any>) => Record<string, unknown> | Promise<Record<string, unknown>>);
|
|
39
|
+
};
|
|
40
|
+
method: {
|
|
41
|
+
type: PropType<"post" | "POST" | "PUT" | "PATCH" | "put" | "patch">;
|
|
42
|
+
default: "post" | "POST" | "PUT" | "PATCH" | "put" | "patch";
|
|
43
|
+
};
|
|
44
|
+
headers: {
|
|
45
|
+
type: PropType<HttpRequestHeader>;
|
|
46
|
+
default: HttpRequestHeader;
|
|
47
|
+
};
|
|
48
|
+
showUploadList: {
|
|
49
|
+
type: PropType<boolean | ShowUploadListInterface>;
|
|
50
|
+
default: boolean | ShowUploadListInterface;
|
|
51
|
+
};
|
|
52
|
+
multiple: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
accept: StringConstructor;
|
|
57
|
+
beforeUpload: {
|
|
58
|
+
type: PropType<(file: FileType, FileList: FileType[]) => (string | boolean | void | Blob | FileType) | Promise<string | boolean | void | Blob | FileType>>;
|
|
59
|
+
default: (file: FileType, FileList: FileType[]) => (string | boolean | void | Blob | FileType) | Promise<string | boolean | void | Blob | FileType>;
|
|
60
|
+
};
|
|
61
|
+
onChange: {
|
|
62
|
+
type: PropType<(info: UploadChangeParam<UploadFile<any>>) => void>;
|
|
63
|
+
default: (info: UploadChangeParam<UploadFile<any>>) => void;
|
|
64
|
+
};
|
|
65
|
+
'onUpdate:fileList': {
|
|
66
|
+
type: PropType<(fileList: UploadFile<any>[]) => void>;
|
|
67
|
+
default: (fileList: UploadFile<any>[]) => void;
|
|
68
|
+
};
|
|
69
|
+
onDrop: {
|
|
70
|
+
type: PropType<(event: DragEvent) => void>;
|
|
71
|
+
default: (event: DragEvent) => void;
|
|
72
|
+
};
|
|
73
|
+
listType: {
|
|
74
|
+
type: PropType<UploadListType>;
|
|
75
|
+
default: UploadListType;
|
|
76
|
+
};
|
|
77
|
+
onPreview: {
|
|
78
|
+
type: PropType<(file: UploadFile<any>) => void>;
|
|
79
|
+
default: (file: UploadFile<any>) => void;
|
|
80
|
+
};
|
|
81
|
+
onDownload: {
|
|
82
|
+
type: PropType<(file: UploadFile<any>) => void>;
|
|
83
|
+
default: (file: UploadFile<any>) => void;
|
|
84
|
+
};
|
|
85
|
+
onReject: {
|
|
86
|
+
type: PropType<(fileList: FileType[]) => void>;
|
|
87
|
+
default: (fileList: FileType[]) => void;
|
|
88
|
+
};
|
|
89
|
+
onRemove: {
|
|
90
|
+
type: PropType<(file: UploadFile<any>) => boolean | void | Promise<boolean | void>>;
|
|
91
|
+
default: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
|
|
92
|
+
};
|
|
93
|
+
remove: {
|
|
94
|
+
type: PropType<(file: UploadFile<any>) => boolean | void | Promise<boolean | void>>;
|
|
95
|
+
default: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
|
|
96
|
+
};
|
|
97
|
+
supportServerRender: {
|
|
98
|
+
type: BooleanConstructor;
|
|
99
|
+
default: boolean;
|
|
100
|
+
};
|
|
101
|
+
disabled: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
105
|
+
prefixCls: StringConstructor;
|
|
106
|
+
customRequest: {
|
|
107
|
+
type: PropType<(options: UploadRequestOption<any>) => void>;
|
|
108
|
+
default: (options: UploadRequestOption<any>) => void;
|
|
109
|
+
};
|
|
110
|
+
withCredentials: {
|
|
111
|
+
type: BooleanConstructor;
|
|
112
|
+
default: boolean;
|
|
113
|
+
};
|
|
114
|
+
openFileDialogOnClick: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
default: boolean;
|
|
117
|
+
};
|
|
118
|
+
locale: {
|
|
119
|
+
type: PropType<UploadLocale>;
|
|
120
|
+
default: UploadLocale;
|
|
121
|
+
};
|
|
122
|
+
id: StringConstructor;
|
|
123
|
+
previewFile: {
|
|
124
|
+
type: PropType<(file: Blob | FileType) => PromiseLike<string>>;
|
|
125
|
+
default: (file: Blob | FileType) => PromiseLike<string>;
|
|
126
|
+
};
|
|
127
|
+
transformFile: {
|
|
128
|
+
type: PropType<(file: FileType) => string | Blob | FileType | PromiseLike<string | Blob | FileType>>;
|
|
129
|
+
default: (file: FileType) => string | Blob | FileType | PromiseLike<string | Blob | FileType>;
|
|
130
|
+
};
|
|
131
|
+
iconRender: {
|
|
132
|
+
type: PropType<(opt: {
|
|
133
|
+
file: UploadFile<any>;
|
|
134
|
+
listType?: UploadListType;
|
|
135
|
+
}) => VueNode>;
|
|
136
|
+
default: (opt: {
|
|
137
|
+
file: UploadFile<any>;
|
|
138
|
+
listType?: UploadListType;
|
|
139
|
+
}) => VueNode;
|
|
140
|
+
};
|
|
141
|
+
isImageUrl: {
|
|
142
|
+
type: PropType<(file: UploadFile<any>) => boolean>;
|
|
143
|
+
default: (file: UploadFile<any>) => boolean;
|
|
144
|
+
};
|
|
145
|
+
progress: {
|
|
146
|
+
type: PropType<UploadListProgressProps>;
|
|
147
|
+
default: UploadListProgressProps;
|
|
148
|
+
};
|
|
149
|
+
itemRender: {
|
|
150
|
+
type: PropType<ItemRender<any>>;
|
|
151
|
+
default: ItemRender<any>;
|
|
152
|
+
};
|
|
153
|
+
maxCount: NumberConstructor;
|
|
154
|
+
height: {
|
|
155
|
+
type: PropType<unknown>;
|
|
156
|
+
default: unknown;
|
|
157
|
+
};
|
|
158
|
+
removeIcon: {
|
|
159
|
+
type: PropType<(opt: {
|
|
160
|
+
file: UploadFile<any>;
|
|
161
|
+
}) => VueNode>;
|
|
162
|
+
default: (opt: {
|
|
163
|
+
file: UploadFile<any>;
|
|
164
|
+
}) => VueNode;
|
|
165
|
+
};
|
|
166
|
+
downloadIcon: {
|
|
167
|
+
type: PropType<(opt: {
|
|
168
|
+
file: UploadFile<any>;
|
|
169
|
+
}) => VueNode>;
|
|
170
|
+
default: (opt: {
|
|
171
|
+
file: UploadFile<any>;
|
|
172
|
+
}) => VueNode;
|
|
173
|
+
};
|
|
174
|
+
previewIcon: {
|
|
175
|
+
type: PropType<(opt: {
|
|
176
|
+
file: UploadFile<any>;
|
|
177
|
+
}) => VueNode>;
|
|
178
|
+
default: (opt: {
|
|
179
|
+
file: UploadFile<any>;
|
|
180
|
+
}) => VueNode;
|
|
181
|
+
};
|
|
182
|
+
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
183
|
+
progress: UploadListProgressProps;
|
|
184
|
+
type: UploadType;
|
|
185
|
+
height: unknown;
|
|
186
|
+
data: Record<string, unknown> | ((file: UploadFile<any>) => Record<string, unknown> | Promise<Record<string, unknown>>);
|
|
187
|
+
onDrop: (event: DragEvent) => void;
|
|
188
|
+
onChange: (info: UploadChangeParam<UploadFile<any>>) => void;
|
|
189
|
+
multiple: boolean;
|
|
190
|
+
disabled: boolean;
|
|
191
|
+
method: "post" | "POST" | "PUT" | "PATCH" | "put" | "patch";
|
|
192
|
+
remove: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
|
|
193
|
+
locale: UploadLocale;
|
|
194
|
+
action: string | ((file: FileType) => string) | ((file: FileType) => PromiseLike<string>);
|
|
195
|
+
capture: boolean | "user" | "environment";
|
|
196
|
+
iconRender: (opt: {
|
|
197
|
+
file: UploadFile<any>;
|
|
198
|
+
listType?: UploadListType;
|
|
199
|
+
}) => VueNode;
|
|
200
|
+
onRemove: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
|
|
201
|
+
removeIcon: (opt: {
|
|
202
|
+
file: UploadFile<any>;
|
|
203
|
+
}) => VueNode;
|
|
204
|
+
itemRender: ItemRender<any>;
|
|
205
|
+
directory: boolean;
|
|
206
|
+
headers: HttpRequestHeader;
|
|
207
|
+
onReject: (fileList: FileType[]) => void;
|
|
208
|
+
beforeUpload: (file: FileType, FileList: FileType[]) => (string | boolean | void | Blob | FileType) | Promise<string | boolean | void | Blob | FileType>;
|
|
209
|
+
customRequest: (options: UploadRequestOption<any>) => void;
|
|
210
|
+
withCredentials: boolean;
|
|
211
|
+
openFileDialogOnClick: boolean;
|
|
212
|
+
fileList: UploadFile<any>[];
|
|
213
|
+
defaultFileList: UploadFile<any>[];
|
|
214
|
+
showUploadList: boolean | ShowUploadListInterface;
|
|
215
|
+
'onUpdate:fileList': (fileList: UploadFile<any>[]) => void;
|
|
216
|
+
listType: UploadListType;
|
|
217
|
+
onPreview: (file: UploadFile<any>) => void;
|
|
218
|
+
onDownload: (file: UploadFile<any>) => void;
|
|
219
|
+
supportServerRender: boolean;
|
|
220
|
+
previewFile: (file: Blob | FileType) => PromiseLike<string>;
|
|
221
|
+
transformFile: (file: FileType) => string | Blob | FileType | PromiseLike<string | Blob | FileType>;
|
|
222
|
+
isImageUrl: (file: UploadFile<any>) => boolean;
|
|
223
|
+
downloadIcon: (opt: {
|
|
224
|
+
file: UploadFile<any>;
|
|
225
|
+
}) => VueNode;
|
|
226
|
+
previewIcon: (opt: {
|
|
227
|
+
file: UploadFile<any>;
|
|
228
|
+
}) => VueNode;
|
|
229
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
230
|
+
P: {};
|
|
231
|
+
B: {};
|
|
232
|
+
D: {};
|
|
233
|
+
C: {};
|
|
234
|
+
M: {};
|
|
235
|
+
Defaults: {};
|
|
236
|
+
}, Readonly< ExtractPropTypes<{
|
|
237
|
+
capture: {
|
|
238
|
+
type: PropType<boolean | "user" | "environment">;
|
|
239
|
+
default: boolean | "user" | "environment";
|
|
240
|
+
};
|
|
241
|
+
type: {
|
|
242
|
+
type: PropType<UploadType>;
|
|
243
|
+
default: UploadType;
|
|
244
|
+
};
|
|
245
|
+
name: StringConstructor;
|
|
246
|
+
defaultFileList: {
|
|
247
|
+
type: PropType< UploadFile<any>[]>;
|
|
248
|
+
default: UploadFile<any>[];
|
|
249
|
+
};
|
|
250
|
+
fileList: {
|
|
251
|
+
type: PropType< UploadFile<any>[]>;
|
|
252
|
+
default: UploadFile<any>[];
|
|
253
|
+
};
|
|
254
|
+
action: {
|
|
255
|
+
type: PropType<string | ((file: FileType) => string) | ((file: FileType) => PromiseLike<string>)>;
|
|
256
|
+
default: string | ((file: FileType) => string) | ((file: FileType) => PromiseLike<string>);
|
|
257
|
+
};
|
|
258
|
+
directory: {
|
|
259
|
+
type: BooleanConstructor;
|
|
260
|
+
default: boolean;
|
|
261
|
+
};
|
|
262
|
+
data: {
|
|
263
|
+
type: PropType<Record<string, unknown> | ((file: UploadFile<any>) => Record<string, unknown> | Promise<Record<string, unknown>>)>;
|
|
264
|
+
default: Record<string, unknown> | ((file: UploadFile<any>) => Record<string, unknown> | Promise<Record<string, unknown>>);
|
|
265
|
+
};
|
|
266
|
+
method: {
|
|
267
|
+
type: PropType<"post" | "POST" | "PUT" | "PATCH" | "put" | "patch">;
|
|
268
|
+
default: "post" | "POST" | "PUT" | "PATCH" | "put" | "patch";
|
|
269
|
+
};
|
|
270
|
+
headers: {
|
|
271
|
+
type: PropType<HttpRequestHeader>;
|
|
272
|
+
default: HttpRequestHeader;
|
|
273
|
+
};
|
|
274
|
+
showUploadList: {
|
|
275
|
+
type: PropType<boolean | ShowUploadListInterface>;
|
|
276
|
+
default: boolean | ShowUploadListInterface;
|
|
277
|
+
};
|
|
278
|
+
multiple: {
|
|
279
|
+
type: BooleanConstructor;
|
|
280
|
+
default: boolean;
|
|
281
|
+
};
|
|
282
|
+
accept: StringConstructor;
|
|
283
|
+
beforeUpload: {
|
|
284
|
+
type: PropType<(file: FileType, FileList: FileType[]) => (string | boolean | void | Blob | FileType) | Promise<string | boolean | void | Blob | FileType>>;
|
|
285
|
+
default: (file: FileType, FileList: FileType[]) => (string | boolean | void | Blob | FileType) | Promise<string | boolean | void | Blob | FileType>;
|
|
286
|
+
};
|
|
287
|
+
onChange: {
|
|
288
|
+
type: PropType<(info: UploadChangeParam<UploadFile<any>>) => void>;
|
|
289
|
+
default: (info: UploadChangeParam<UploadFile<any>>) => void;
|
|
290
|
+
};
|
|
291
|
+
'onUpdate:fileList': {
|
|
292
|
+
type: PropType<(fileList: UploadFile<any>[]) => void>;
|
|
293
|
+
default: (fileList: UploadFile<any>[]) => void;
|
|
294
|
+
};
|
|
295
|
+
onDrop: {
|
|
296
|
+
type: PropType<(event: DragEvent) => void>;
|
|
297
|
+
default: (event: DragEvent) => void;
|
|
298
|
+
};
|
|
299
|
+
listType: {
|
|
300
|
+
type: PropType<UploadListType>;
|
|
301
|
+
default: UploadListType;
|
|
302
|
+
};
|
|
303
|
+
onPreview: {
|
|
304
|
+
type: PropType<(file: UploadFile<any>) => void>;
|
|
305
|
+
default: (file: UploadFile<any>) => void;
|
|
306
|
+
};
|
|
307
|
+
onDownload: {
|
|
308
|
+
type: PropType<(file: UploadFile<any>) => void>;
|
|
309
|
+
default: (file: UploadFile<any>) => void;
|
|
310
|
+
};
|
|
311
|
+
onReject: {
|
|
312
|
+
type: PropType<(fileList: FileType[]) => void>;
|
|
313
|
+
default: (fileList: FileType[]) => void;
|
|
314
|
+
};
|
|
315
|
+
onRemove: {
|
|
316
|
+
type: PropType<(file: UploadFile<any>) => boolean | void | Promise<boolean | void>>;
|
|
317
|
+
default: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
|
|
318
|
+
};
|
|
319
|
+
remove: {
|
|
320
|
+
type: PropType<(file: UploadFile<any>) => boolean | void | Promise<boolean | void>>;
|
|
321
|
+
default: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
|
|
322
|
+
};
|
|
323
|
+
supportServerRender: {
|
|
324
|
+
type: BooleanConstructor;
|
|
325
|
+
default: boolean;
|
|
326
|
+
};
|
|
327
|
+
disabled: {
|
|
328
|
+
type: BooleanConstructor;
|
|
329
|
+
default: boolean;
|
|
330
|
+
};
|
|
331
|
+
prefixCls: StringConstructor;
|
|
332
|
+
customRequest: {
|
|
333
|
+
type: PropType<(options: UploadRequestOption<any>) => void>;
|
|
334
|
+
default: (options: UploadRequestOption<any>) => void;
|
|
335
|
+
};
|
|
336
|
+
withCredentials: {
|
|
337
|
+
type: BooleanConstructor;
|
|
338
|
+
default: boolean;
|
|
339
|
+
};
|
|
340
|
+
openFileDialogOnClick: {
|
|
341
|
+
type: BooleanConstructor;
|
|
342
|
+
default: boolean;
|
|
343
|
+
};
|
|
344
|
+
locale: {
|
|
345
|
+
type: PropType<UploadLocale>;
|
|
346
|
+
default: UploadLocale;
|
|
347
|
+
};
|
|
348
|
+
id: StringConstructor;
|
|
349
|
+
previewFile: {
|
|
350
|
+
type: PropType<(file: Blob | FileType) => PromiseLike<string>>;
|
|
351
|
+
default: (file: Blob | FileType) => PromiseLike<string>;
|
|
352
|
+
};
|
|
353
|
+
transformFile: {
|
|
354
|
+
type: PropType<(file: FileType) => string | Blob | FileType | PromiseLike<string | Blob | FileType>>;
|
|
355
|
+
default: (file: FileType) => string | Blob | FileType | PromiseLike<string | Blob | FileType>;
|
|
356
|
+
};
|
|
357
|
+
iconRender: {
|
|
358
|
+
type: PropType<(opt: {
|
|
359
|
+
file: UploadFile<any>;
|
|
360
|
+
listType?: UploadListType;
|
|
361
|
+
}) => VueNode>;
|
|
362
|
+
default: (opt: {
|
|
363
|
+
file: UploadFile<any>;
|
|
364
|
+
listType?: UploadListType;
|
|
365
|
+
}) => VueNode;
|
|
366
|
+
};
|
|
367
|
+
isImageUrl: {
|
|
368
|
+
type: PropType<(file: UploadFile<any>) => boolean>;
|
|
369
|
+
default: (file: UploadFile<any>) => boolean;
|
|
370
|
+
};
|
|
371
|
+
progress: {
|
|
372
|
+
type: PropType<UploadListProgressProps>;
|
|
373
|
+
default: UploadListProgressProps;
|
|
374
|
+
};
|
|
375
|
+
itemRender: {
|
|
376
|
+
type: PropType<ItemRender<any>>;
|
|
377
|
+
default: ItemRender<any>;
|
|
378
|
+
};
|
|
379
|
+
maxCount: NumberConstructor;
|
|
380
|
+
height: {
|
|
381
|
+
type: PropType<unknown>;
|
|
382
|
+
default: unknown;
|
|
383
|
+
};
|
|
384
|
+
removeIcon: {
|
|
385
|
+
type: PropType<(opt: {
|
|
386
|
+
file: UploadFile<any>;
|
|
387
|
+
}) => VueNode>;
|
|
388
|
+
default: (opt: {
|
|
389
|
+
file: UploadFile<any>;
|
|
390
|
+
}) => VueNode;
|
|
391
|
+
};
|
|
392
|
+
downloadIcon: {
|
|
393
|
+
type: PropType<(opt: {
|
|
394
|
+
file: UploadFile<any>;
|
|
395
|
+
}) => VueNode>;
|
|
396
|
+
default: (opt: {
|
|
397
|
+
file: UploadFile<any>;
|
|
398
|
+
}) => VueNode;
|
|
399
|
+
};
|
|
400
|
+
previewIcon: {
|
|
401
|
+
type: PropType<(opt: {
|
|
402
|
+
file: UploadFile<any>;
|
|
403
|
+
}) => VueNode>;
|
|
404
|
+
default: (opt: {
|
|
405
|
+
file: UploadFile<any>;
|
|
406
|
+
}) => VueNode;
|
|
407
|
+
};
|
|
408
|
+
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
409
|
+
progress: UploadListProgressProps;
|
|
410
|
+
type: UploadType;
|
|
411
|
+
height: unknown;
|
|
412
|
+
data: Record<string, unknown> | ((file: UploadFile<any>) => Record<string, unknown> | Promise<Record<string, unknown>>);
|
|
413
|
+
onDrop: (event: DragEvent) => void;
|
|
414
|
+
onChange: (info: UploadChangeParam<UploadFile<any>>) => void;
|
|
415
|
+
multiple: boolean;
|
|
416
|
+
disabled: boolean;
|
|
417
|
+
method: "post" | "POST" | "PUT" | "PATCH" | "put" | "patch";
|
|
418
|
+
remove: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
|
|
419
|
+
locale: UploadLocale;
|
|
420
|
+
action: string | ((file: FileType) => string) | ((file: FileType) => PromiseLike<string>);
|
|
421
|
+
capture: boolean | "user" | "environment";
|
|
422
|
+
iconRender: (opt: {
|
|
423
|
+
file: UploadFile<any>;
|
|
424
|
+
listType?: UploadListType;
|
|
425
|
+
}) => VueNode;
|
|
426
|
+
onRemove: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
|
|
427
|
+
removeIcon: (opt: {
|
|
428
|
+
file: UploadFile<any>;
|
|
429
|
+
}) => VueNode;
|
|
430
|
+
itemRender: ItemRender<any>;
|
|
431
|
+
directory: boolean;
|
|
432
|
+
headers: HttpRequestHeader;
|
|
433
|
+
onReject: (fileList: FileType[]) => void;
|
|
434
|
+
beforeUpload: (file: FileType, FileList: FileType[]) => (string | boolean | void | Blob | FileType) | Promise<string | boolean | void | Blob | FileType>;
|
|
435
|
+
customRequest: (options: UploadRequestOption<any>) => void;
|
|
436
|
+
withCredentials: boolean;
|
|
437
|
+
openFileDialogOnClick: boolean;
|
|
438
|
+
fileList: UploadFile<any>[];
|
|
439
|
+
defaultFileList: UploadFile<any>[];
|
|
440
|
+
showUploadList: boolean | ShowUploadListInterface;
|
|
441
|
+
'onUpdate:fileList': (fileList: UploadFile<any>[]) => void;
|
|
442
|
+
listType: UploadListType;
|
|
443
|
+
onPreview: (file: UploadFile<any>) => void;
|
|
444
|
+
onDownload: (file: UploadFile<any>) => void;
|
|
445
|
+
supportServerRender: boolean;
|
|
446
|
+
previewFile: (file: Blob | FileType) => PromiseLike<string>;
|
|
447
|
+
transformFile: (file: FileType) => string | Blob | FileType | PromiseLike<string | Blob | FileType>;
|
|
448
|
+
isImageUrl: (file: UploadFile<any>) => boolean;
|
|
449
|
+
downloadIcon: (opt: {
|
|
450
|
+
file: UploadFile<any>;
|
|
451
|
+
}) => VueNode;
|
|
452
|
+
previewIcon: (opt: {
|
|
453
|
+
file: UploadFile<any>;
|
|
454
|
+
}) => VueNode;
|
|
455
|
+
}> | null;
|
|
456
|
+
}, HTMLDivElement>;
|
|
6
457
|
export default _default;
|
|
@@ -32,7 +32,9 @@ declare function __VLS_template(): {
|
|
|
32
32
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
33
33
|
declare const __VLS_component: DefineComponent<{}, {
|
|
34
34
|
setValue: typeof setValue;
|
|
35
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
35
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
36
|
+
fileRef: HTMLInputElement;
|
|
37
|
+
}, HTMLDivElement>;
|
|
36
38
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
37
39
|
export default _default;
|
|
38
40
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -2,5 +2,7 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
|
|
|
2
2
|
declare function setValue(val?: string | Record<string, any>): void;
|
|
3
3
|
declare const _default: DefineComponent<{}, {
|
|
4
4
|
setValue: typeof setValue;
|
|
5
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
5
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
6
|
+
fileRef: HTMLInputElement;
|
|
7
|
+
}, HTMLDivElement>;
|
|
6
8
|
export default _default;
|
|
@@ -4,7 +4,7 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
|
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
5
|
readonly onExpand?: ((...args: any[]) => any) | undefined;
|
|
6
6
|
readonly onChoose?: ((...args: any[]) => any) | undefined;
|
|
7
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onExpand" | "onChoose"> &
|
|
7
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onExpand" | "onChoose"> & ApExpandAlertProps<T> & Partial<{}>> & PublicProps;
|
|
8
8
|
expose(exposed: ShallowUnwrapRef<{
|
|
9
9
|
setExpand: (state?: boolean) => void;
|
|
10
10
|
}>): void;
|