@xiaohaih/json-form-vant 0.0.1

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.
Files changed (213) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/README.md +807 -0
  3. package/TODO.md +36 -0
  4. package/components/area/index.ts +6 -0
  5. package/components/area/index.vue +120 -0
  6. package/components/area/types.ts +84 -0
  7. package/components/cascader/index.ts +6 -0
  8. package/components/cascader/index.vue +146 -0
  9. package/components/cascader/types.ts +75 -0
  10. package/components/checkbox/index.ts +6 -0
  11. package/components/checkbox/index.vue +59 -0
  12. package/components/checkbox/types.ts +54 -0
  13. package/components/checkbox-group/index.ts +6 -0
  14. package/components/checkbox-group/index.vue +67 -0
  15. package/components/checkbox-group/types.ts +63 -0
  16. package/components/component-definition/components.ts +29 -0
  17. package/components/component-definition/definition.ts +25 -0
  18. package/components/component-definition/index.ts +4 -0
  19. package/components/custom-render/index.ts +6 -0
  20. package/components/custom-render/index.vue +66 -0
  21. package/components/custom-render/types.ts +43 -0
  22. package/components/date-picker/index.ts +6 -0
  23. package/components/date-picker/index.vue +130 -0
  24. package/components/date-picker/types.ts +91 -0
  25. package/components/date-time-picker-group/index.ts +6 -0
  26. package/components/date-time-picker-group/index.vue +158 -0
  27. package/components/date-time-picker-group/types.ts +115 -0
  28. package/components/datetime-picker/index.ts +6 -0
  29. package/components/datetime-picker/index.vue +128 -0
  30. package/components/datetime-picker/types.ts +78 -0
  31. package/components/dynamic-group/index.ts +10 -0
  32. package/components/dynamic-group/index.vue +140 -0
  33. package/components/dynamic-group/types.ts +68 -0
  34. package/components/group/assist.ts +99 -0
  35. package/components/group/index.ts +7 -0
  36. package/components/group/index.vue +117 -0
  37. package/components/group/types.ts +57 -0
  38. package/components/group/virtual-group.vue +38 -0
  39. package/components/index.ts +10 -0
  40. package/components/input/index.ts +6 -0
  41. package/components/input/index.vue +83 -0
  42. package/components/input/types.ts +43 -0
  43. package/components/input-slot/index.ts +6 -0
  44. package/components/input-slot/index.vue +148 -0
  45. package/components/input-slot/types.ts +34 -0
  46. package/components/number-keyboard/index.ts +6 -0
  47. package/components/number-keyboard/index.vue +81 -0
  48. package/components/number-keyboard/types.ts +57 -0
  49. package/components/password-input/index.ts +6 -0
  50. package/components/password-input/index.vue +103 -0
  51. package/components/password-input/types.ts +64 -0
  52. package/components/picker/index.ts +6 -0
  53. package/components/picker/index.vue +136 -0
  54. package/components/picker/types.ts +94 -0
  55. package/components/radio/index.ts +6 -0
  56. package/components/radio/index.vue +68 -0
  57. package/components/radio/types.ts +58 -0
  58. package/components/radio-group/index.ts +6 -0
  59. package/components/radio-group/index.vue +74 -0
  60. package/components/radio-group/types.ts +65 -0
  61. package/components/rate/index.ts +6 -0
  62. package/components/rate/index.vue +63 -0
  63. package/components/rate/types.ts +47 -0
  64. package/components/share.ts +78 -0
  65. package/components/signature/index.ts +6 -0
  66. package/components/signature/index.vue +65 -0
  67. package/components/signature/instance.vue +161 -0
  68. package/components/signature/types.ts +79 -0
  69. package/components/slider/index.ts +6 -0
  70. package/components/slider/index.vue +63 -0
  71. package/components/slider/types.ts +53 -0
  72. package/components/stepper/index.ts +6 -0
  73. package/components/stepper/index.vue +62 -0
  74. package/components/stepper/types.ts +47 -0
  75. package/components/switch/index.ts +6 -0
  76. package/components/switch/index.vue +61 -0
  77. package/components/switch/types.ts +51 -0
  78. package/components/time-picker/index.ts +6 -0
  79. package/components/time-picker/index.vue +130 -0
  80. package/components/time-picker/types.ts +91 -0
  81. package/components/tree-select/index.ts +6 -0
  82. package/components/tree-select/index.vue +160 -0
  83. package/components/tree-select/types.ts +77 -0
  84. package/components/upload/index.ts +6 -0
  85. package/components/upload/index.vue +109 -0
  86. package/components/upload/types.ts +85 -0
  87. package/components/use.ts +45 -0
  88. package/components/utils.ts +52 -0
  89. package/components/wrapper/index.ts +6 -0
  90. package/components/wrapper/index.vue +117 -0
  91. package/components/wrapper/types.ts +94 -0
  92. package/dist/components/area/index.d.ts +5 -0
  93. package/dist/components/area/index.vue.d.ts +1843 -0
  94. package/dist/components/area/types.d.ts +1434 -0
  95. package/dist/components/cascader/index.d.ts +5 -0
  96. package/dist/components/cascader/index.vue.d.ts +2467 -0
  97. package/dist/components/cascader/types.d.ts +1419 -0
  98. package/dist/components/checkbox/index.d.ts +5 -0
  99. package/dist/components/checkbox/index.vue.d.ts +1550 -0
  100. package/dist/components/checkbox/types.d.ts +1313 -0
  101. package/dist/components/checkbox-group/index.d.ts +5 -0
  102. package/dist/components/checkbox-group/index.vue.d.ts +1643 -0
  103. package/dist/components/checkbox-group/types.d.ts +1372 -0
  104. package/dist/components/component-definition/components.d.ts +30 -0
  105. package/dist/components/component-definition/index.d.ts +4 -0
  106. package/dist/components/custom-render/index.d.ts +5 -0
  107. package/dist/components/custom-render/index.vue.d.ts +1473 -0
  108. package/dist/components/custom-render/types.d.ts +1175 -0
  109. package/dist/components/date-picker/index.d.ts +5 -0
  110. package/dist/components/date-picker/index.vue.d.ts +1888 -0
  111. package/dist/components/date-picker/types.d.ts +1458 -0
  112. package/dist/components/date-time-picker-group/index.d.ts +5 -0
  113. package/dist/components/date-time-picker-group/index.vue.d.ts +2181 -0
  114. package/dist/components/date-time-picker-group/types.d.ts +1549 -0
  115. package/dist/components/dynamic-group/index.d.ts +5 -0
  116. package/dist/components/dynamic-group/index.vue.d.ts +457 -0
  117. package/dist/components/dynamic-group/types.d.ts +403 -0
  118. package/dist/components/group/assist.d.ts +58 -0
  119. package/dist/components/group/index.d.ts +6 -0
  120. package/dist/components/group/index.vue.d.ts +139 -0
  121. package/dist/components/group/types.d.ts +189 -0
  122. package/dist/components/group/virtual-group.vue.d.ts +42 -0
  123. package/dist/components/index.d.ts +3 -0
  124. package/dist/components/input/index.d.ts +5 -0
  125. package/dist/components/input/index.vue.d.ts +2229 -0
  126. package/dist/components/input/types.d.ts +1258 -0
  127. package/dist/components/input-slot/index.d.ts +5 -0
  128. package/dist/components/input-slot/index.vue.d.ts +626 -0
  129. package/dist/components/input-slot/types.d.ts +311 -0
  130. package/dist/components/number-keyboard/index.d.ts +5 -0
  131. package/dist/components/number-keyboard/index.vue.d.ts +1643 -0
  132. package/dist/components/number-keyboard/types.d.ts +1324 -0
  133. package/dist/components/password-input/index.d.ts +5 -0
  134. package/dist/components/password-input/index.vue.d.ts +1715 -0
  135. package/dist/components/password-input/types.d.ts +1357 -0
  136. package/dist/components/picker/index.d.ts +5 -0
  137. package/dist/components/picker/index.vue.d.ts +1868 -0
  138. package/dist/components/picker/types.d.ts +1466 -0
  139. package/dist/components/radio/index.d.ts +5 -0
  140. package/dist/components/radio/index.vue.d.ts +1563 -0
  141. package/dist/components/radio/types.d.ts +1327 -0
  142. package/dist/components/radio-group/index.d.ts +5 -0
  143. package/dist/components/radio-group/index.vue.d.ts +1617 -0
  144. package/dist/components/radio-group/types.d.ts +1383 -0
  145. package/dist/components/rate/index.d.ts +5 -0
  146. package/dist/components/rate/index.vue.d.ts +1557 -0
  147. package/dist/components/rate/types.d.ts +1281 -0
  148. package/dist/components/share.d.ts +679 -0
  149. package/dist/components/signature/index.d.ts +5 -0
  150. package/dist/components/signature/index.vue.d.ts +3017 -0
  151. package/dist/components/signature/instance.vue.d.ts +1614 -0
  152. package/dist/components/signature/types.d.ts +1369 -0
  153. package/dist/components/slider/index.d.ts +5 -0
  154. package/dist/components/slider/index.vue.d.ts +1563 -0
  155. package/dist/components/slider/types.d.ts +1302 -0
  156. package/dist/components/stepper/index.d.ts +5 -0
  157. package/dist/components/stepper/index.vue.d.ts +1620 -0
  158. package/dist/components/stepper/types.d.ts +1281 -0
  159. package/dist/components/switch/index.d.ts +5 -0
  160. package/dist/components/switch/index.vue.d.ts +1529 -0
  161. package/dist/components/switch/types.d.ts +1296 -0
  162. package/dist/components/time-picker/index.d.ts +5 -0
  163. package/dist/components/time-picker/index.vue.d.ts +1936 -0
  164. package/dist/components/time-picker/types.d.ts +1458 -0
  165. package/dist/components/tree-select/index.d.ts +5 -0
  166. package/dist/components/tree-select/index.vue.d.ts +1802 -0
  167. package/dist/components/tree-select/types.d.ts +1411 -0
  168. package/dist/components/upload/index.d.ts +5 -0
  169. package/dist/components/upload/index.vue.d.ts +1697 -0
  170. package/dist/components/upload/types.d.ts +1376 -0
  171. package/dist/components/use.d.ts +53 -0
  172. package/dist/components/utils.d.ts +15 -0
  173. package/dist/components/wrapper/index.d.ts +5 -0
  174. package/dist/components/wrapper/index.vue.d.ts +1085 -0
  175. package/dist/components/wrapper/types.d.ts +541 -0
  176. package/dist/docs/.vitepress/config.d.ts +3 -0
  177. package/dist/docs/.vitepress/theme/index.d.ts +2 -0
  178. package/dist/index.cjs.js +5459 -0
  179. package/dist/index.cjs.js.map +1 -0
  180. package/dist/index.cjs.min.js +3568 -0
  181. package/dist/index.cjs.min.js.map +1 -0
  182. package/dist/index.esm.js +5264 -0
  183. package/dist/index.esm.js.map +1 -0
  184. package/dist/index.esm.min.js +3559 -0
  185. package/dist/index.esm.min.js.map +1 -0
  186. package/dist/index.umd.js +5465 -0
  187. package/dist/index.umd.js.map +1 -0
  188. package/dist/index.umd.min.js +3573 -0
  189. package/dist/index.umd.min.js.map +1 -0
  190. package/dist/src/assist.d.ts +32 -0
  191. package/dist/src/index.d.ts +5 -0
  192. package/dist/src/interface.d.ts +129 -0
  193. package/dist/src/utils.d.ts +9 -0
  194. package/dist/src/version.d.ts +2 -0
  195. package/docs/.vitepress/config.ts +99 -0
  196. package/docs/.vitepress/theme/index.ts +5 -0
  197. package/docs/README.md +20 -0
  198. package/docs/index.md +25 -0
  199. package/env.d.ts +8 -0
  200. package/package.json +71 -0
  201. package/scripts/generate-version.mjs +26 -0
  202. package/scripts/postinstall.cjs +13 -0
  203. package/scripts/utils.cjs +67 -0
  204. package/src/assist.ts +40 -0
  205. package/src/index.ts +5 -0
  206. package/src/interface.ts +293 -0
  207. package/src/utils.ts +22 -0
  208. package/src/version.ts +2 -0
  209. package/tsconfig.app.json +41 -0
  210. package/tsconfig.json +7 -0
  211. package/tsconfig.node.json +24 -0
  212. package/tsdown.config.ts +12 -0
  213. package/vite.config.ts +93 -0
@@ -0,0 +1,1376 @@
1
+ import { emits2obj } from '@xiaohaih/json-form-core';
2
+ import { UploaderFileListItem, Uploader as VanUploader } from 'vant';
3
+ import { ExtractPublicPropTypes, PropType } from 'vue';
4
+ import { ComponentProps } from 'vue-component-type-helpers';
5
+ import { CommonSlots, CommonSlotsProps, ComponentType } from '../share';
6
+ /** 组件传参 - 私有 */
7
+ export declare function uploadPropsGeneric<Query extends Record<string, any>, OptionQuery extends Record<string, any>>(): {
8
+ /** VanUploader 组件的属性 */
9
+ readonly uploadProps: {
10
+ readonly type: PropType<Partial<ComponentProps<typeof VanUploader>>>;
11
+ };
12
+ /** VanUploader 组件的事件 - 兼容 vue2 版本 */
13
+ readonly uploadOn: {
14
+ readonly type: PropType<Partial<ReturnType<typeof emits2obj<NonNullable<typeof VanUploader.emits>>>>>;
15
+ readonly default: () => {};
16
+ };
17
+ /** VanUploader 组件的插槽 */
18
+ readonly uploadSlots: {
19
+ readonly type: PropType<{
20
+ /** 自定义上传区域 */
21
+ default?: ComponentType<CommonSlotsProps<any, any>>;
22
+ /** 自定义删除按钮 */
23
+ previewDelete?: ComponentType<CommonSlotsProps<any, any>>;
24
+ /** 自定义覆盖在预览区域上方的内容 */
25
+ previewCover?: ComponentType<{
26
+ item: UploaderFileListItem;
27
+ } & CommonSlotsProps<any, any>>;
28
+ }>;
29
+ };
30
+ /** 文件读取完毕后执行的回调 */
31
+ readonly afterRead: {
32
+ readonly type: PropType<(file: FileInfo | FileInfo[], detail: UploadDetail, option: UploadOption) => void>;
33
+ };
34
+ /** 文件上传方法 */
35
+ readonly uploadRequest: {
36
+ readonly type: PropType<(option: UploadOption) => Promise<any> | void>;
37
+ };
38
+ /** 上传中的提示 */
39
+ readonly uploadingMessage: {
40
+ readonly type: PropType<string | ((fileInfo: FileInfo) => string)>;
41
+ readonly default: "上传中";
42
+ };
43
+ /** 失败的提示 */
44
+ readonly failedMessage: {
45
+ readonly type: PropType<string | ((fileInfo: FileInfo, response: any) => string)>;
46
+ };
47
+ readonly field: Omit<{
48
+ readonly type: PropType<string>;
49
+ readonly required: true;
50
+ }, "required">;
51
+ readonly fields: {
52
+ readonly type: PropType<string[]>;
53
+ };
54
+ readonly query: {
55
+ readonly type: PropType<Query>;
56
+ readonly required: true;
57
+ };
58
+ readonly parentQuery: {
59
+ readonly type: PropType<Record<string, any>>;
60
+ };
61
+ readonly depend: {
62
+ readonly type: PropType<boolean>;
63
+ readonly default: undefined;
64
+ };
65
+ readonly resetByDependValueChange: {
66
+ readonly type: PropType<boolean | ((query: Query) => boolean)>;
67
+ readonly default: true;
68
+ };
69
+ readonly dependFields: {
70
+ readonly type: PropType<string | string[]>;
71
+ };
72
+ readonly dependWatchOption: {
73
+ readonly type: PropType<import('vue').WatchOptions>;
74
+ };
75
+ readonly optionsDepend: {
76
+ readonly type: PropType<boolean>;
77
+ };
78
+ readonly optionsDependFields: {
79
+ readonly type: PropType<string | string[]>;
80
+ };
81
+ readonly validator: {
82
+ readonly type: PropType<(query: Query) => any | Promise<any>>;
83
+ };
84
+ readonly initialValue: {
85
+ readonly type: PropType<((option: {
86
+ query: Query_1;
87
+ }) => any) | any>;
88
+ readonly default: undefined;
89
+ };
90
+ readonly defaultValue: {
91
+ readonly type: PropType<((option: {
92
+ query: Query_1;
93
+ }) => any) | any>;
94
+ readonly default: undefined;
95
+ };
96
+ readonly defaultValueConflictCallback: {
97
+ readonly type: PropType<(value: any, checked: import('vue').Ref<any>) => void>;
98
+ readonly default: typeof import('@xiaohaih/json-form-core').noop;
99
+ };
100
+ readonly options: {
101
+ readonly type: PropType<any>;
102
+ readonly default: () => never[];
103
+ };
104
+ readonly getOptions: {
105
+ readonly type: PropType<import('@xiaohaih/json-form-core').GetOptions<Query, OptionQuery>>;
106
+ };
107
+ readonly uniqueValue: {
108
+ readonly type: PropType<string | number>;
109
+ };
110
+ readonly hooks: {
111
+ readonly type: PropType<import('@xiaohaih/json-form-core').HookOption<Query, OptionQuery>>;
112
+ readonly default: undefined;
113
+ };
114
+ readonly disabled: {
115
+ readonly type: PropType<boolean>;
116
+ readonly default: undefined;
117
+ };
118
+ readonly readonly: {
119
+ readonly type: PropType<boolean>;
120
+ readonly default: undefined;
121
+ };
122
+ readonly hide: {
123
+ readonly type: PropType<boolean>;
124
+ readonly default: undefined;
125
+ };
126
+ readonly slots: {
127
+ readonly type: PropType<CommonSlots>;
128
+ };
129
+ readonly type: {
130
+ type: PropType<NonNullable<import('vant').FieldType | undefined>>;
131
+ validator: undefined;
132
+ };
133
+ readonly tag: {
134
+ type: PropType<NonNullable<keyof HTMLElementTagNameMap | undefined>>;
135
+ validator: undefined;
136
+ };
137
+ readonly center: {
138
+ type: PropType<NonNullable<boolean | undefined>>;
139
+ validator: undefined;
140
+ };
141
+ readonly autofocus: {
142
+ type: PropType<NonNullable<boolean | undefined>>;
143
+ validator: undefined;
144
+ };
145
+ readonly border: {
146
+ type: PropType<NonNullable<boolean | undefined>>;
147
+ validator: undefined;
148
+ };
149
+ readonly isLink: {
150
+ type: PropType<NonNullable<boolean | undefined>>;
151
+ validator: undefined;
152
+ };
153
+ readonly required: {
154
+ type: PropType<NonNullable<boolean | "auto" | undefined>>;
155
+ validator: undefined;
156
+ };
157
+ readonly clickable: {
158
+ type: PropType<NonNullable<boolean | null | undefined>>;
159
+ validator: undefined;
160
+ };
161
+ readonly clearable: {
162
+ type: PropType<NonNullable<boolean | undefined>>;
163
+ validator: undefined;
164
+ };
165
+ readonly clearIcon: {
166
+ type: PropType<string>;
167
+ validator: undefined;
168
+ };
169
+ readonly modelValue: {
170
+ type: PropType<NonNullable<string | number | undefined>>;
171
+ validator: undefined;
172
+ };
173
+ readonly clearTrigger: {
174
+ type: PropType<NonNullable<import('vant').FieldClearTrigger | undefined>>;
175
+ validator: undefined;
176
+ };
177
+ readonly formatTrigger: {
178
+ type: PropType<NonNullable<import('vant').FieldFormatTrigger | undefined>>;
179
+ validator: undefined;
180
+ };
181
+ readonly spellcheck: {
182
+ type: PropType<NonNullable<boolean | undefined>>;
183
+ validator: undefined;
184
+ };
185
+ readonly error: {
186
+ type: PropType<NonNullable<boolean | undefined>>;
187
+ validator: undefined;
188
+ };
189
+ readonly showWordLimit: {
190
+ type: PropType<NonNullable<boolean | undefined>>;
191
+ validator: undefined;
192
+ };
193
+ readonly colon: {
194
+ type: PropType<NonNullable<boolean | undefined>>;
195
+ validator: undefined;
196
+ };
197
+ readonly size: {
198
+ type: PropType<NonNullable<import('vant').CellSize | undefined>>;
199
+ validator: undefined;
200
+ };
201
+ readonly value: {
202
+ type: PropType<NonNullable<string | number | undefined>>;
203
+ validator: undefined;
204
+ };
205
+ readonly name: {
206
+ type: PropType<string>;
207
+ validator: undefined;
208
+ };
209
+ readonly class: {
210
+ type: PropType<{}>;
211
+ validator: undefined;
212
+ };
213
+ readonly icon: {
214
+ type: PropType<string>;
215
+ validator: undefined;
216
+ };
217
+ readonly title: {
218
+ type: PropType<NonNullable<string | number | undefined>>;
219
+ validator: undefined;
220
+ };
221
+ readonly label: {
222
+ type: PropType<NonNullable<string | number | undefined>>;
223
+ validator: undefined;
224
+ };
225
+ readonly iconPrefix: {
226
+ type: PropType<string>;
227
+ validator: undefined;
228
+ };
229
+ readonly valueClass: {
230
+ type: PropType<{}>;
231
+ validator: undefined;
232
+ };
233
+ readonly labelClass: {
234
+ type: PropType<{}>;
235
+ validator: undefined;
236
+ };
237
+ readonly titleClass: {
238
+ type: PropType<{}>;
239
+ validator: undefined;
240
+ };
241
+ readonly titleStyle: {
242
+ type: PropType<NonNullable<string | import('vue').CSSProperties | undefined>>;
243
+ validator: undefined;
244
+ };
245
+ readonly arrowDirection: {
246
+ type: PropType<NonNullable<import('vant').CellArrowDirection | undefined>>;
247
+ validator: undefined;
248
+ };
249
+ readonly id: {
250
+ type: PropType<string>;
251
+ validator: undefined;
252
+ };
253
+ readonly leftIcon: {
254
+ type: PropType<string>;
255
+ validator: undefined;
256
+ };
257
+ readonly rightIcon: {
258
+ type: PropType<string>;
259
+ validator: undefined;
260
+ };
261
+ readonly maxlength: {
262
+ type: PropType<NonNullable<string | number | undefined>>;
263
+ validator: undefined;
264
+ };
265
+ readonly max: {
266
+ type: PropType<number>;
267
+ validator: undefined;
268
+ };
269
+ readonly min: {
270
+ type: PropType<number>;
271
+ validator: undefined;
272
+ };
273
+ readonly formatter: {
274
+ type: PropType<(value: string) => string>;
275
+ validator: undefined;
276
+ };
277
+ readonly inputAlign: {
278
+ type: PropType<NonNullable<import('vant').FieldTextAlign | undefined>>;
279
+ validator: undefined;
280
+ };
281
+ readonly placeholder: {
282
+ type: PropType<string>;
283
+ validator: undefined;
284
+ };
285
+ readonly autocomplete: {
286
+ type: PropType<string>;
287
+ validator: undefined;
288
+ };
289
+ readonly autocapitalize: {
290
+ type: PropType<string>;
291
+ validator: undefined;
292
+ };
293
+ readonly autocorrect: {
294
+ type: PropType<string>;
295
+ validator: undefined;
296
+ };
297
+ readonly errorMessage: {
298
+ type: PropType<string>;
299
+ validator: undefined;
300
+ };
301
+ readonly enterkeyhint: {
302
+ type: PropType<NonNullable<import('vant').FieldEnterKeyHint | undefined>>;
303
+ validator: undefined;
304
+ };
305
+ readonly inputmode: {
306
+ type: PropType<NonNullable<"search" | "tel" | "url" | "text" | "email" | "none" | "numeric" | "decimal" | undefined>>;
307
+ validator: undefined;
308
+ };
309
+ readonly rows: {
310
+ type: PropType<NonNullable<string | number | undefined>>;
311
+ validator: undefined;
312
+ };
313
+ readonly rules: {
314
+ type: PropType<import('vant').FieldRule[]>;
315
+ validator: undefined;
316
+ };
317
+ readonly autosize: {
318
+ type: PropType<NonNullable<boolean | import('vant').FieldAutosizeConfig | undefined>>;
319
+ validator: undefined;
320
+ };
321
+ readonly labelWidth: {
322
+ type: PropType<NonNullable<string | number | undefined>>;
323
+ validator: undefined;
324
+ };
325
+ readonly labelAlign: {
326
+ type: PropType<NonNullable<import('vant').FieldTextAlign | undefined>>;
327
+ validator: undefined;
328
+ };
329
+ readonly errorMessageAlign: {
330
+ type: PropType<NonNullable<import('vant').FieldTextAlign | undefined>>;
331
+ validator: undefined;
332
+ };
333
+ readonly style: {
334
+ type: PropType<{}>;
335
+ validator: undefined;
336
+ };
337
+ readonly onBlur: {
338
+ type: PropType<(...args: any[]) => any>;
339
+ validator: undefined;
340
+ };
341
+ readonly onFocus: {
342
+ type: PropType<(...args: any[]) => any>;
343
+ validator: undefined;
344
+ };
345
+ readonly onKeypress: {
346
+ type: PropType<(...args: any[]) => any>;
347
+ validator: undefined;
348
+ };
349
+ readonly onClear: {
350
+ type: PropType<(...args: any[]) => any>;
351
+ validator: undefined;
352
+ };
353
+ readonly onClickInput: {
354
+ type: PropType<(...args: any[]) => any>;
355
+ validator: undefined;
356
+ };
357
+ readonly onEndValidate: {
358
+ type: PropType<(...args: any[]) => any>;
359
+ validator: undefined;
360
+ };
361
+ readonly onStartValidate: {
362
+ type: PropType<(...args: any[]) => any>;
363
+ validator: undefined;
364
+ };
365
+ readonly onClickLeftIcon: {
366
+ type: PropType<(...args: any[]) => any>;
367
+ validator: undefined;
368
+ };
369
+ readonly onClickRightIcon: {
370
+ type: PropType<(...args: any[]) => any>;
371
+ validator: undefined;
372
+ };
373
+ readonly "onUpdate:modelValue": {
374
+ type: PropType<(...args: any[]) => any>;
375
+ validator: undefined;
376
+ };
377
+ readonly key: {
378
+ type: PropType<NonNullable<PropertyKey | undefined>>;
379
+ validator: undefined;
380
+ };
381
+ readonly ref: {
382
+ type: PropType<NonNullable<import('vue').VNodeRef | undefined>>;
383
+ validator: undefined;
384
+ };
385
+ readonly ref_for: {
386
+ type: PropType<NonNullable<boolean | undefined>>;
387
+ validator: undefined;
388
+ };
389
+ readonly ref_key: {
390
+ type: PropType<string>;
391
+ validator: undefined;
392
+ };
393
+ readonly onVnodeBeforeMount: {
394
+ type: PropType<NonNullable<((vnode: import('vue').VNode) => void) | ((vnode: import('vue').VNode) => void)[] | undefined>>;
395
+ validator: undefined;
396
+ };
397
+ readonly onVnodeMounted: {
398
+ type: PropType<NonNullable<((vnode: import('vue').VNode) => void) | ((vnode: import('vue').VNode) => void)[] | undefined>>;
399
+ validator: undefined;
400
+ };
401
+ readonly onVnodeBeforeUpdate: {
402
+ type: PropType<NonNullable<((vnode: import('vue').VNode, oldVNode: import('vue').VNode) => void) | ((vnode: import('vue').VNode, oldVNode: import('vue').VNode) => void)[] | undefined>>;
403
+ validator: undefined;
404
+ };
405
+ readonly onVnodeUpdated: {
406
+ type: PropType<NonNullable<((vnode: import('vue').VNode, oldVNode: import('vue').VNode) => void) | ((vnode: import('vue').VNode, oldVNode: import('vue').VNode) => void)[] | undefined>>;
407
+ validator: undefined;
408
+ };
409
+ readonly onVnodeBeforeUnmount: {
410
+ type: PropType<NonNullable<((vnode: import('vue').VNode) => void) | ((vnode: import('vue').VNode) => void)[] | undefined>>;
411
+ validator: undefined;
412
+ };
413
+ readonly onVnodeUnmounted: {
414
+ type: PropType<NonNullable<((vnode: import('vue').VNode) => void) | ((vnode: import('vue').VNode) => void)[] | undefined>>;
415
+ validator: undefined;
416
+ };
417
+ readonly onClick: {
418
+ type: PropType<(...args: any[]) => void>;
419
+ validator: undefined;
420
+ };
421
+ };
422
+ /** 组件传参 - 私有 */
423
+ export declare const uploadPropsPrivate: {
424
+ /** VanUploader 组件的属性 */
425
+ readonly uploadProps: {
426
+ readonly type: PropType<Partial<ComponentProps<typeof VanUploader>>>;
427
+ };
428
+ /** VanUploader 组件的事件 - 兼容 vue2 版本 */
429
+ readonly uploadOn: {
430
+ readonly type: PropType<Partial<ReturnType<typeof emits2obj<NonNullable<typeof VanUploader.emits>>>>>;
431
+ readonly default: () => {};
432
+ };
433
+ /** VanUploader 组件的插槽 */
434
+ readonly uploadSlots: {
435
+ readonly type: PropType<{
436
+ /** 自定义上传区域 */
437
+ default?: ComponentType<CommonSlotsProps<any, any>>;
438
+ /** 自定义删除按钮 */
439
+ previewDelete?: ComponentType<CommonSlotsProps<any, any>>;
440
+ /** 自定义覆盖在预览区域上方的内容 */
441
+ previewCover?: ComponentType<{
442
+ item: UploaderFileListItem;
443
+ } & CommonSlotsProps<any, any>> | undefined;
444
+ }>;
445
+ };
446
+ /** 文件读取完毕后执行的回调 */
447
+ readonly afterRead: {
448
+ readonly type: PropType<(file: FileInfo | FileInfo[], detail: UploadDetail, option: UploadOption) => void>;
449
+ };
450
+ /** 文件上传方法 */
451
+ readonly uploadRequest: {
452
+ readonly type: PropType<(option: UploadOption) => Promise<any> | void>;
453
+ };
454
+ /** 上传中的提示 */
455
+ readonly uploadingMessage: {
456
+ readonly type: PropType<string | ((fileInfo: FileInfo) => string)>;
457
+ readonly default: "上传中";
458
+ };
459
+ /** 失败的提示 */
460
+ readonly failedMessage: {
461
+ readonly type: PropType<string | ((fileInfo: FileInfo, response: any) => string)>;
462
+ };
463
+ readonly field: Omit<{
464
+ readonly type: PropType<string>;
465
+ readonly required: true;
466
+ }, "required">;
467
+ readonly fields: {
468
+ readonly type: PropType<string[]>;
469
+ };
470
+ readonly query: {
471
+ readonly type: PropType<Record<string, any>>;
472
+ readonly required: true;
473
+ };
474
+ readonly parentQuery: {
475
+ readonly type: PropType<Record<string, any>>;
476
+ };
477
+ readonly depend: {
478
+ readonly type: PropType<boolean>;
479
+ readonly default: undefined;
480
+ };
481
+ readonly resetByDependValueChange: {
482
+ readonly type: PropType<boolean | ((query: Record<string, any>) => boolean)>;
483
+ readonly default: true;
484
+ };
485
+ readonly dependFields: {
486
+ readonly type: PropType<string | string[]>;
487
+ };
488
+ readonly dependWatchOption: {
489
+ readonly type: PropType<import('vue').WatchOptions>;
490
+ };
491
+ readonly optionsDepend: {
492
+ readonly type: PropType<boolean>;
493
+ };
494
+ readonly optionsDependFields: {
495
+ readonly type: PropType<string | string[]>;
496
+ };
497
+ readonly validator: {
498
+ readonly type: PropType<(query: Record<string, any>) => any | Promise<any>>;
499
+ };
500
+ readonly initialValue: {
501
+ readonly type: PropType<((option: {
502
+ query: Query;
503
+ }) => any) | any>;
504
+ readonly default: undefined;
505
+ };
506
+ readonly defaultValue: {
507
+ readonly type: PropType<((option: {
508
+ query: Query;
509
+ }) => any) | any>;
510
+ readonly default: undefined;
511
+ };
512
+ readonly defaultValueConflictCallback: {
513
+ readonly type: PropType<(value: any, checked: import('vue').Ref<any>) => void>;
514
+ readonly default: typeof import('@xiaohaih/json-form-core').noop;
515
+ };
516
+ readonly options: {
517
+ readonly type: PropType<any>;
518
+ readonly default: () => never[];
519
+ };
520
+ readonly getOptions: {
521
+ readonly type: PropType<import('@xiaohaih/json-form-core').GetOptions<Record<string, any>, Record<string, any>>>;
522
+ };
523
+ readonly uniqueValue: {
524
+ readonly type: PropType<string | number>;
525
+ };
526
+ readonly hooks: {
527
+ readonly type: PropType<import('@xiaohaih/json-form-core').HookOption<Record<string, any>, Record<string, any>>>;
528
+ readonly default: undefined;
529
+ };
530
+ readonly disabled: {
531
+ readonly type: PropType<boolean>;
532
+ readonly default: undefined;
533
+ };
534
+ readonly readonly: {
535
+ readonly type: PropType<boolean>;
536
+ readonly default: undefined;
537
+ };
538
+ readonly hide: {
539
+ readonly type: PropType<boolean>;
540
+ readonly default: undefined;
541
+ };
542
+ readonly slots: {
543
+ readonly type: PropType<CommonSlots>;
544
+ };
545
+ readonly type: {
546
+ type: PropType<NonNullable<import('vant').FieldType | undefined>>;
547
+ validator: undefined;
548
+ };
549
+ readonly tag: {
550
+ type: PropType<NonNullable<keyof HTMLElementTagNameMap | undefined>>;
551
+ validator: undefined;
552
+ };
553
+ readonly center: {
554
+ type: PropType<NonNullable<boolean | undefined>>;
555
+ validator: undefined;
556
+ };
557
+ readonly autofocus: {
558
+ type: PropType<NonNullable<boolean | undefined>>;
559
+ validator: undefined;
560
+ };
561
+ readonly border: {
562
+ type: PropType<NonNullable<boolean | undefined>>;
563
+ validator: undefined;
564
+ };
565
+ readonly isLink: {
566
+ type: PropType<NonNullable<boolean | undefined>>;
567
+ validator: undefined;
568
+ };
569
+ readonly required: {
570
+ type: PropType<NonNullable<boolean | "auto" | undefined>>;
571
+ validator: undefined;
572
+ };
573
+ readonly clickable: {
574
+ type: PropType<NonNullable<boolean | null | undefined>>;
575
+ validator: undefined;
576
+ };
577
+ readonly clearable: {
578
+ type: PropType<NonNullable<boolean | undefined>>;
579
+ validator: undefined;
580
+ };
581
+ readonly clearIcon: {
582
+ type: PropType<string>;
583
+ validator: undefined;
584
+ };
585
+ readonly modelValue: {
586
+ type: PropType<NonNullable<string | number | undefined>>;
587
+ validator: undefined;
588
+ };
589
+ readonly clearTrigger: {
590
+ type: PropType<NonNullable<import('vant').FieldClearTrigger | undefined>>;
591
+ validator: undefined;
592
+ };
593
+ readonly formatTrigger: {
594
+ type: PropType<NonNullable<import('vant').FieldFormatTrigger | undefined>>;
595
+ validator: undefined;
596
+ };
597
+ readonly spellcheck: {
598
+ type: PropType<NonNullable<boolean | undefined>>;
599
+ validator: undefined;
600
+ };
601
+ readonly error: {
602
+ type: PropType<NonNullable<boolean | undefined>>;
603
+ validator: undefined;
604
+ };
605
+ readonly showWordLimit: {
606
+ type: PropType<NonNullable<boolean | undefined>>;
607
+ validator: undefined;
608
+ };
609
+ readonly colon: {
610
+ type: PropType<NonNullable<boolean | undefined>>;
611
+ validator: undefined;
612
+ };
613
+ readonly size: {
614
+ type: PropType<NonNullable<import('vant').CellSize | undefined>>;
615
+ validator: undefined;
616
+ };
617
+ readonly value: {
618
+ type: PropType<NonNullable<string | number | undefined>>;
619
+ validator: undefined;
620
+ };
621
+ readonly name: {
622
+ type: PropType<string>;
623
+ validator: undefined;
624
+ };
625
+ readonly class: {
626
+ type: PropType<{}>;
627
+ validator: undefined;
628
+ };
629
+ readonly icon: {
630
+ type: PropType<string>;
631
+ validator: undefined;
632
+ };
633
+ readonly title: {
634
+ type: PropType<NonNullable<string | number | undefined>>;
635
+ validator: undefined;
636
+ };
637
+ readonly label: {
638
+ type: PropType<NonNullable<string | number | undefined>>;
639
+ validator: undefined;
640
+ };
641
+ readonly iconPrefix: {
642
+ type: PropType<string>;
643
+ validator: undefined;
644
+ };
645
+ readonly valueClass: {
646
+ type: PropType<{}>;
647
+ validator: undefined;
648
+ };
649
+ readonly labelClass: {
650
+ type: PropType<{}>;
651
+ validator: undefined;
652
+ };
653
+ readonly titleClass: {
654
+ type: PropType<{}>;
655
+ validator: undefined;
656
+ };
657
+ readonly titleStyle: {
658
+ type: PropType<NonNullable<string | import('vue').CSSProperties | undefined>>;
659
+ validator: undefined;
660
+ };
661
+ readonly arrowDirection: {
662
+ type: PropType<NonNullable<import('vant').CellArrowDirection | undefined>>;
663
+ validator: undefined;
664
+ };
665
+ readonly id: {
666
+ type: PropType<string>;
667
+ validator: undefined;
668
+ };
669
+ readonly leftIcon: {
670
+ type: PropType<string>;
671
+ validator: undefined;
672
+ };
673
+ readonly rightIcon: {
674
+ type: PropType<string>;
675
+ validator: undefined;
676
+ };
677
+ readonly maxlength: {
678
+ type: PropType<NonNullable<string | number | undefined>>;
679
+ validator: undefined;
680
+ };
681
+ readonly max: {
682
+ type: PropType<number>;
683
+ validator: undefined;
684
+ };
685
+ readonly min: {
686
+ type: PropType<number>;
687
+ validator: undefined;
688
+ };
689
+ readonly formatter: {
690
+ type: PropType<(value: string) => string>;
691
+ validator: undefined;
692
+ };
693
+ readonly inputAlign: {
694
+ type: PropType<NonNullable<import('vant').FieldTextAlign | undefined>>;
695
+ validator: undefined;
696
+ };
697
+ readonly placeholder: {
698
+ type: PropType<string>;
699
+ validator: undefined;
700
+ };
701
+ readonly autocomplete: {
702
+ type: PropType<string>;
703
+ validator: undefined;
704
+ };
705
+ readonly autocapitalize: {
706
+ type: PropType<string>;
707
+ validator: undefined;
708
+ };
709
+ readonly autocorrect: {
710
+ type: PropType<string>;
711
+ validator: undefined;
712
+ };
713
+ readonly errorMessage: {
714
+ type: PropType<string>;
715
+ validator: undefined;
716
+ };
717
+ readonly enterkeyhint: {
718
+ type: PropType<NonNullable<import('vant').FieldEnterKeyHint | undefined>>;
719
+ validator: undefined;
720
+ };
721
+ readonly inputmode: {
722
+ type: PropType<NonNullable<"search" | "tel" | "url" | "text" | "email" | "none" | "numeric" | "decimal" | undefined>>;
723
+ validator: undefined;
724
+ };
725
+ readonly rows: {
726
+ type: PropType<NonNullable<string | number | undefined>>;
727
+ validator: undefined;
728
+ };
729
+ readonly rules: {
730
+ type: PropType<import('vant').FieldRule[]>;
731
+ validator: undefined;
732
+ };
733
+ readonly autosize: {
734
+ type: PropType<NonNullable<boolean | import('vant').FieldAutosizeConfig | undefined>>;
735
+ validator: undefined;
736
+ };
737
+ readonly labelWidth: {
738
+ type: PropType<NonNullable<string | number | undefined>>;
739
+ validator: undefined;
740
+ };
741
+ readonly labelAlign: {
742
+ type: PropType<NonNullable<import('vant').FieldTextAlign | undefined>>;
743
+ validator: undefined;
744
+ };
745
+ readonly errorMessageAlign: {
746
+ type: PropType<NonNullable<import('vant').FieldTextAlign | undefined>>;
747
+ validator: undefined;
748
+ };
749
+ readonly style: {
750
+ type: PropType<{}>;
751
+ validator: undefined;
752
+ };
753
+ readonly onBlur: {
754
+ type: PropType<(...args: any[]) => any>;
755
+ validator: undefined;
756
+ };
757
+ readonly onFocus: {
758
+ type: PropType<(...args: any[]) => any>;
759
+ validator: undefined;
760
+ };
761
+ readonly onKeypress: {
762
+ type: PropType<(...args: any[]) => any>;
763
+ validator: undefined;
764
+ };
765
+ readonly onClear: {
766
+ type: PropType<(...args: any[]) => any>;
767
+ validator: undefined;
768
+ };
769
+ readonly onClickInput: {
770
+ type: PropType<(...args: any[]) => any>;
771
+ validator: undefined;
772
+ };
773
+ readonly onEndValidate: {
774
+ type: PropType<(...args: any[]) => any>;
775
+ validator: undefined;
776
+ };
777
+ readonly onStartValidate: {
778
+ type: PropType<(...args: any[]) => any>;
779
+ validator: undefined;
780
+ };
781
+ readonly onClickLeftIcon: {
782
+ type: PropType<(...args: any[]) => any>;
783
+ validator: undefined;
784
+ };
785
+ readonly onClickRightIcon: {
786
+ type: PropType<(...args: any[]) => any>;
787
+ validator: undefined;
788
+ };
789
+ readonly "onUpdate:modelValue": {
790
+ type: PropType<(...args: any[]) => any>;
791
+ validator: undefined;
792
+ };
793
+ readonly key: {
794
+ type: PropType<NonNullable<PropertyKey | undefined>>;
795
+ validator: undefined;
796
+ };
797
+ readonly ref: {
798
+ type: PropType<NonNullable<import('vue').VNodeRef | undefined>>;
799
+ validator: undefined;
800
+ };
801
+ readonly ref_for: {
802
+ type: PropType<NonNullable<boolean | undefined>>;
803
+ validator: undefined;
804
+ };
805
+ readonly ref_key: {
806
+ type: PropType<string>;
807
+ validator: undefined;
808
+ };
809
+ readonly onVnodeBeforeMount: {
810
+ type: PropType<NonNullable<((vnode: import('vue').VNode) => void) | ((vnode: import('vue').VNode) => void)[] | undefined>>;
811
+ validator: undefined;
812
+ };
813
+ readonly onVnodeMounted: {
814
+ type: PropType<NonNullable<((vnode: import('vue').VNode) => void) | ((vnode: import('vue').VNode) => void)[] | undefined>>;
815
+ validator: undefined;
816
+ };
817
+ readonly onVnodeBeforeUpdate: {
818
+ type: PropType<NonNullable<((vnode: import('vue').VNode, oldVNode: import('vue').VNode) => void) | ((vnode: import('vue').VNode, oldVNode: import('vue').VNode) => void)[] | undefined>>;
819
+ validator: undefined;
820
+ };
821
+ readonly onVnodeUpdated: {
822
+ type: PropType<NonNullable<((vnode: import('vue').VNode, oldVNode: import('vue').VNode) => void) | ((vnode: import('vue').VNode, oldVNode: import('vue').VNode) => void)[] | undefined>>;
823
+ validator: undefined;
824
+ };
825
+ readonly onVnodeBeforeUnmount: {
826
+ type: PropType<NonNullable<((vnode: import('vue').VNode) => void) | ((vnode: import('vue').VNode) => void)[] | undefined>>;
827
+ validator: undefined;
828
+ };
829
+ readonly onVnodeUnmounted: {
830
+ type: PropType<NonNullable<((vnode: import('vue').VNode) => void) | ((vnode: import('vue').VNode) => void)[] | undefined>>;
831
+ validator: undefined;
832
+ };
833
+ readonly onClick: {
834
+ type: PropType<(...args: any[]) => void>;
835
+ validator: undefined;
836
+ };
837
+ };
838
+ /** 组件传参 - 外部调用 */
839
+ export declare const uploadProps: {
840
+ uploadProps: {
841
+ readonly type: PropType<Partial<ComponentProps<typeof VanUploader>>>;
842
+ };
843
+ uploadOn: {
844
+ readonly type: PropType<Partial<ReturnType<typeof emits2obj<NonNullable<typeof VanUploader.emits>>>>>;
845
+ readonly default: () => {};
846
+ };
847
+ uploadSlots: {
848
+ readonly type: PropType<{
849
+ /** 自定义上传区域 */
850
+ default?: ComponentType<CommonSlotsProps<any, any>>;
851
+ /** 自定义删除按钮 */
852
+ previewDelete?: ComponentType<CommonSlotsProps<any, any>>;
853
+ /** 自定义覆盖在预览区域上方的内容 */
854
+ previewCover?: ComponentType<{
855
+ item: UploaderFileListItem;
856
+ } & CommonSlotsProps<any, any>> | undefined;
857
+ }>;
858
+ };
859
+ afterRead: {
860
+ readonly type: PropType<(file: FileInfo | FileInfo[], detail: UploadDetail, option: UploadOption) => void>;
861
+ };
862
+ uploadRequest: {
863
+ readonly type: PropType<(option: UploadOption) => Promise<any> | void>;
864
+ };
865
+ uploadingMessage: {
866
+ readonly type: PropType<string | ((fileInfo: FileInfo) => string)>;
867
+ readonly default: "上传中";
868
+ };
869
+ failedMessage: {
870
+ readonly type: PropType<string | ((fileInfo: FileInfo, response: any) => string)>;
871
+ };
872
+ field: Omit<{
873
+ readonly type: PropType<string>;
874
+ readonly required: true;
875
+ }, "required">;
876
+ fields: {
877
+ readonly type: PropType<string[]>;
878
+ };
879
+ query: {
880
+ readonly type: PropType<Record<string, any>>;
881
+ readonly required: true;
882
+ };
883
+ parentQuery: {
884
+ readonly type: PropType<Record<string, any>>;
885
+ };
886
+ depend: {
887
+ readonly type: PropType<boolean>;
888
+ readonly default: undefined;
889
+ };
890
+ resetByDependValueChange: {
891
+ readonly type: PropType<boolean | ((query: Record<string, any>) => boolean)>;
892
+ readonly default: true;
893
+ };
894
+ dependFields: {
895
+ readonly type: PropType<string | string[]>;
896
+ };
897
+ dependWatchOption: {
898
+ readonly type: PropType<import('vue').WatchOptions>;
899
+ };
900
+ optionsDepend: {
901
+ readonly type: PropType<boolean>;
902
+ };
903
+ optionsDependFields: {
904
+ readonly type: PropType<string | string[]>;
905
+ };
906
+ validator: {
907
+ readonly type: PropType<(query: Record<string, any>) => any | Promise<any>>;
908
+ };
909
+ initialValue: {
910
+ readonly type: PropType<((option: {
911
+ query: Query;
912
+ }) => any) | any>;
913
+ readonly default: undefined;
914
+ };
915
+ defaultValue: {
916
+ readonly type: PropType<((option: {
917
+ query: Query;
918
+ }) => any) | any>;
919
+ readonly default: undefined;
920
+ };
921
+ defaultValueConflictCallback: {
922
+ readonly type: PropType<(value: any, checked: import('vue').Ref<any>) => void>;
923
+ readonly default: typeof import('@xiaohaih/json-form-core').noop;
924
+ };
925
+ options: {
926
+ readonly type: PropType<any>;
927
+ readonly default: () => never[];
928
+ };
929
+ getOptions: {
930
+ readonly type: PropType<import('@xiaohaih/json-form-core').GetOptions<Record<string, any>, Record<string, any>>>;
931
+ };
932
+ uniqueValue: {
933
+ readonly type: PropType<string | number>;
934
+ };
935
+ hooks: {
936
+ readonly type: PropType<import('@xiaohaih/json-form-core').HookOption<Record<string, any>, Record<string, any>>>;
937
+ readonly default: undefined;
938
+ };
939
+ disabled: {
940
+ readonly type: PropType<boolean>;
941
+ readonly default: undefined;
942
+ };
943
+ readonly: {
944
+ readonly type: PropType<boolean>;
945
+ readonly default: undefined;
946
+ };
947
+ hide: {
948
+ readonly type: PropType<boolean>;
949
+ readonly default: undefined;
950
+ };
951
+ slots: {
952
+ readonly type: PropType<CommonSlots>;
953
+ };
954
+ type: {
955
+ type: PropType<NonNullable<import('vant').FieldType | undefined>>;
956
+ validator: undefined;
957
+ };
958
+ tag: {
959
+ type: PropType<NonNullable<keyof HTMLElementTagNameMap | undefined>>;
960
+ validator: undefined;
961
+ };
962
+ center: {
963
+ type: PropType<NonNullable<boolean | undefined>>;
964
+ validator: undefined;
965
+ };
966
+ autofocus: {
967
+ type: PropType<NonNullable<boolean | undefined>>;
968
+ validator: undefined;
969
+ };
970
+ border: {
971
+ type: PropType<NonNullable<boolean | undefined>>;
972
+ validator: undefined;
973
+ };
974
+ isLink: {
975
+ type: PropType<NonNullable<boolean | undefined>>;
976
+ validator: undefined;
977
+ };
978
+ required: {
979
+ type: PropType<NonNullable<boolean | "auto" | undefined>>;
980
+ validator: undefined;
981
+ };
982
+ clickable: {
983
+ type: PropType<NonNullable<boolean | null | undefined>>;
984
+ validator: undefined;
985
+ };
986
+ clearable: {
987
+ type: PropType<NonNullable<boolean | undefined>>;
988
+ validator: undefined;
989
+ };
990
+ clearIcon: {
991
+ type: PropType<string>;
992
+ validator: undefined;
993
+ };
994
+ modelValue: {
995
+ type: PropType<NonNullable<string | number | undefined>>;
996
+ validator: undefined;
997
+ };
998
+ clearTrigger: {
999
+ type: PropType<NonNullable<import('vant').FieldClearTrigger | undefined>>;
1000
+ validator: undefined;
1001
+ };
1002
+ formatTrigger: {
1003
+ type: PropType<NonNullable<import('vant').FieldFormatTrigger | undefined>>;
1004
+ validator: undefined;
1005
+ };
1006
+ spellcheck: {
1007
+ type: PropType<NonNullable<boolean | undefined>>;
1008
+ validator: undefined;
1009
+ };
1010
+ error: {
1011
+ type: PropType<NonNullable<boolean | undefined>>;
1012
+ validator: undefined;
1013
+ };
1014
+ showWordLimit: {
1015
+ type: PropType<NonNullable<boolean | undefined>>;
1016
+ validator: undefined;
1017
+ };
1018
+ colon: {
1019
+ type: PropType<NonNullable<boolean | undefined>>;
1020
+ validator: undefined;
1021
+ };
1022
+ size: {
1023
+ type: PropType<NonNullable<import('vant').CellSize | undefined>>;
1024
+ validator: undefined;
1025
+ };
1026
+ value: {
1027
+ type: PropType<NonNullable<string | number | undefined>>;
1028
+ validator: undefined;
1029
+ };
1030
+ name: {
1031
+ type: PropType<string>;
1032
+ validator: undefined;
1033
+ };
1034
+ class: {
1035
+ type: PropType<{}>;
1036
+ validator: undefined;
1037
+ };
1038
+ icon: {
1039
+ type: PropType<string>;
1040
+ validator: undefined;
1041
+ };
1042
+ title: {
1043
+ type: PropType<NonNullable<string | number | undefined>>;
1044
+ validator: undefined;
1045
+ };
1046
+ label: {
1047
+ type: PropType<NonNullable<string | number | undefined>>;
1048
+ validator: undefined;
1049
+ };
1050
+ iconPrefix: {
1051
+ type: PropType<string>;
1052
+ validator: undefined;
1053
+ };
1054
+ valueClass: {
1055
+ type: PropType<{}>;
1056
+ validator: undefined;
1057
+ };
1058
+ labelClass: {
1059
+ type: PropType<{}>;
1060
+ validator: undefined;
1061
+ };
1062
+ titleClass: {
1063
+ type: PropType<{}>;
1064
+ validator: undefined;
1065
+ };
1066
+ titleStyle: {
1067
+ type: PropType<NonNullable<string | import('vue').CSSProperties | undefined>>;
1068
+ validator: undefined;
1069
+ };
1070
+ arrowDirection: {
1071
+ type: PropType<NonNullable<import('vant').CellArrowDirection | undefined>>;
1072
+ validator: undefined;
1073
+ };
1074
+ id: {
1075
+ type: PropType<string>;
1076
+ validator: undefined;
1077
+ };
1078
+ leftIcon: {
1079
+ type: PropType<string>;
1080
+ validator: undefined;
1081
+ };
1082
+ rightIcon: {
1083
+ type: PropType<string>;
1084
+ validator: undefined;
1085
+ };
1086
+ maxlength: {
1087
+ type: PropType<NonNullable<string | number | undefined>>;
1088
+ validator: undefined;
1089
+ };
1090
+ max: {
1091
+ type: PropType<number>;
1092
+ validator: undefined;
1093
+ };
1094
+ min: {
1095
+ type: PropType<number>;
1096
+ validator: undefined;
1097
+ };
1098
+ formatter: {
1099
+ type: PropType<(value: string) => string>;
1100
+ validator: undefined;
1101
+ };
1102
+ inputAlign: {
1103
+ type: PropType<NonNullable<import('vant').FieldTextAlign | undefined>>;
1104
+ validator: undefined;
1105
+ };
1106
+ placeholder: {
1107
+ type: PropType<string>;
1108
+ validator: undefined;
1109
+ };
1110
+ autocomplete: {
1111
+ type: PropType<string>;
1112
+ validator: undefined;
1113
+ };
1114
+ autocapitalize: {
1115
+ type: PropType<string>;
1116
+ validator: undefined;
1117
+ };
1118
+ autocorrect: {
1119
+ type: PropType<string>;
1120
+ validator: undefined;
1121
+ };
1122
+ errorMessage: {
1123
+ type: PropType<string>;
1124
+ validator: undefined;
1125
+ };
1126
+ enterkeyhint: {
1127
+ type: PropType<NonNullable<import('vant').FieldEnterKeyHint | undefined>>;
1128
+ validator: undefined;
1129
+ };
1130
+ inputmode: {
1131
+ type: PropType<NonNullable<"search" | "tel" | "url" | "text" | "email" | "none" | "numeric" | "decimal" | undefined>>;
1132
+ validator: undefined;
1133
+ };
1134
+ rows: {
1135
+ type: PropType<NonNullable<string | number | undefined>>;
1136
+ validator: undefined;
1137
+ };
1138
+ rules: {
1139
+ type: PropType<import('vant').FieldRule[]>;
1140
+ validator: undefined;
1141
+ };
1142
+ autosize: {
1143
+ type: PropType<NonNullable<boolean | import('vant').FieldAutosizeConfig | undefined>>;
1144
+ validator: undefined;
1145
+ };
1146
+ labelWidth: {
1147
+ type: PropType<NonNullable<string | number | undefined>>;
1148
+ validator: undefined;
1149
+ };
1150
+ labelAlign: {
1151
+ type: PropType<NonNullable<import('vant').FieldTextAlign | undefined>>;
1152
+ validator: undefined;
1153
+ };
1154
+ errorMessageAlign: {
1155
+ type: PropType<NonNullable<import('vant').FieldTextAlign | undefined>>;
1156
+ validator: undefined;
1157
+ };
1158
+ style: {
1159
+ type: PropType<{}>;
1160
+ validator: undefined;
1161
+ };
1162
+ onBlur: {
1163
+ type: PropType<(...args: any[]) => any>;
1164
+ validator: undefined;
1165
+ };
1166
+ onFocus: {
1167
+ type: PropType<(...args: any[]) => any>;
1168
+ validator: undefined;
1169
+ };
1170
+ onKeypress: {
1171
+ type: PropType<(...args: any[]) => any>;
1172
+ validator: undefined;
1173
+ };
1174
+ onClear: {
1175
+ type: PropType<(...args: any[]) => any>;
1176
+ validator: undefined;
1177
+ };
1178
+ onClickInput: {
1179
+ type: PropType<(...args: any[]) => any>;
1180
+ validator: undefined;
1181
+ };
1182
+ onEndValidate: {
1183
+ type: PropType<(...args: any[]) => any>;
1184
+ validator: undefined;
1185
+ };
1186
+ onStartValidate: {
1187
+ type: PropType<(...args: any[]) => any>;
1188
+ validator: undefined;
1189
+ };
1190
+ onClickLeftIcon: {
1191
+ type: PropType<(...args: any[]) => any>;
1192
+ validator: undefined;
1193
+ };
1194
+ onClickRightIcon: {
1195
+ type: PropType<(...args: any[]) => any>;
1196
+ validator: undefined;
1197
+ };
1198
+ "onUpdate:modelValue": {
1199
+ type: PropType<(...args: any[]) => any>;
1200
+ validator: undefined;
1201
+ };
1202
+ key: {
1203
+ type: PropType<NonNullable<PropertyKey | undefined>>;
1204
+ validator: undefined;
1205
+ };
1206
+ ref: {
1207
+ type: PropType<NonNullable<import('vue').VNodeRef | undefined>>;
1208
+ validator: undefined;
1209
+ };
1210
+ ref_for: {
1211
+ type: PropType<NonNullable<boolean | undefined>>;
1212
+ validator: undefined;
1213
+ };
1214
+ ref_key: {
1215
+ type: PropType<string>;
1216
+ validator: undefined;
1217
+ };
1218
+ onVnodeBeforeMount: {
1219
+ type: PropType<NonNullable<((vnode: import('vue').VNode) => void) | ((vnode: import('vue').VNode) => void)[] | undefined>>;
1220
+ validator: undefined;
1221
+ };
1222
+ onVnodeMounted: {
1223
+ type: PropType<NonNullable<((vnode: import('vue').VNode) => void) | ((vnode: import('vue').VNode) => void)[] | undefined>>;
1224
+ validator: undefined;
1225
+ };
1226
+ onVnodeBeforeUpdate: {
1227
+ type: PropType<NonNullable<((vnode: import('vue').VNode, oldVNode: import('vue').VNode) => void) | ((vnode: import('vue').VNode, oldVNode: import('vue').VNode) => void)[] | undefined>>;
1228
+ validator: undefined;
1229
+ };
1230
+ onVnodeUpdated: {
1231
+ type: PropType<NonNullable<((vnode: import('vue').VNode, oldVNode: import('vue').VNode) => void) | ((vnode: import('vue').VNode, oldVNode: import('vue').VNode) => void)[] | undefined>>;
1232
+ validator: undefined;
1233
+ };
1234
+ onVnodeBeforeUnmount: {
1235
+ type: PropType<NonNullable<((vnode: import('vue').VNode) => void) | ((vnode: import('vue').VNode) => void)[] | undefined>>;
1236
+ validator: undefined;
1237
+ };
1238
+ onVnodeUnmounted: {
1239
+ type: PropType<NonNullable<((vnode: import('vue').VNode) => void) | ((vnode: import('vue').VNode) => void)[] | undefined>>;
1240
+ validator: undefined;
1241
+ };
1242
+ onClick: {
1243
+ type: PropType<(...args: any[]) => void>;
1244
+ validator: undefined;
1245
+ };
1246
+ };
1247
+ export type UploadProps<Query extends Record<string, any>, OptionQuery extends Record<string, any>> = ExtractPublicPropTypes<ReturnType<typeof uploadPropsGeneric<Query, OptionQuery>>>;
1248
+ /** 组件事件 - 私有 */
1249
+ export declare function uploadEmitsGeneric<T>(): {};
1250
+ /** 组件事件 - 私有 */
1251
+ export declare const uploadEmitsPrivate: {};
1252
+ /** 组件事件 - 外部调用 */
1253
+ export declare const uploadEmits: {
1254
+ length?: number | undefined;
1255
+ toString?: (() => string) | undefined;
1256
+ toLocaleString?: {
1257
+ (): string;
1258
+ (locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
1259
+ } | undefined;
1260
+ pop?: (() => "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue" | undefined) | undefined;
1261
+ push?: ((...items: ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[]) => number) | undefined;
1262
+ concat?: {
1263
+ (...items: ConcatArray<"clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue">[]): ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[];
1264
+ (...items: ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue" | ConcatArray<"clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue">)[]): ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[];
1265
+ } | undefined;
1266
+ join?: ((separator?: string) => string) | undefined;
1267
+ reverse?: (() => ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[]) | undefined;
1268
+ shift?: (() => "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue" | undefined) | undefined;
1269
+ slice?: ((start?: number, end?: number) => ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[]) | undefined;
1270
+ sort?: ((compareFn?: ((a: "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", b: "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue") => number) | undefined) => ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[] & ThisType<void>) | undefined;
1271
+ splice?: {
1272
+ (start: number, deleteCount?: number): ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[];
1273
+ (start: number, deleteCount: number, ...items: ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[]): ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[];
1274
+ } | undefined;
1275
+ unshift?: ((...items: ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[]) => number) | undefined;
1276
+ indexOf?: ((searchElement: "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", fromIndex?: number) => number) | undefined;
1277
+ lastIndexOf?: ((searchElement: "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", fromIndex?: number) => number) | undefined;
1278
+ every?: {
1279
+ <S extends "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue">(predicate: (value: "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", index: number, array: ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[]) => value is S, thisArg?: any): this is S[];
1280
+ (predicate: (value: "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", index: number, array: ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[]) => unknown, thisArg?: any): boolean;
1281
+ } | undefined;
1282
+ some?: ((predicate: (value: "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", index: number, array: ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[]) => unknown, thisArg?: any) => boolean) | undefined;
1283
+ forEach?: ((callbackfn: (value: "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", index: number, array: ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[]) => void, thisArg?: any) => void) | undefined;
1284
+ map?: (<U>(callbackfn: (value: "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", index: number, array: ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[]) => U, thisArg?: any) => U[]) | undefined;
1285
+ filter?: {
1286
+ <S extends "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue">(predicate: (value: "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", index: number, array: ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[]) => value is S, thisArg?: any): S[];
1287
+ (predicate: (value: "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", index: number, array: ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[]) => unknown, thisArg?: any): ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[];
1288
+ } | undefined;
1289
+ reduce?: {
1290
+ (callbackfn: (previousValue: "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", currentValue: "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", currentIndex: number, array: ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[]) => "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue"): "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue";
1291
+ (callbackfn: (previousValue: "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", currentValue: "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", currentIndex: number, array: ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[]) => "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", initialValue: "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue"): "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue";
1292
+ <U>(callbackfn: (previousValue: U, currentValue: "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", currentIndex: number, array: ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[]) => U, initialValue: U): U;
1293
+ } | undefined;
1294
+ reduceRight?: {
1295
+ (callbackfn: (previousValue: "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", currentValue: "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", currentIndex: number, array: ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[]) => "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue"): "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue";
1296
+ (callbackfn: (previousValue: "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", currentValue: "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", currentIndex: number, array: ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[]) => "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", initialValue: "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue"): "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue";
1297
+ <U>(callbackfn: (previousValue: U, currentValue: "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", currentIndex: number, array: ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[]) => U, initialValue: U): U;
1298
+ } | undefined;
1299
+ find?: {
1300
+ <S extends "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue">(predicate: (value: "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", index: number, obj: ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[]) => value is S, thisArg?: any): S | undefined;
1301
+ (predicate: (value: "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", index: number, obj: ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[]) => unknown, thisArg?: any): "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue" | undefined;
1302
+ } | undefined;
1303
+ findIndex?: ((predicate: (value: "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", index: number, obj: ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[]) => unknown, thisArg?: any) => number) | undefined;
1304
+ fill?: ((value: "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", start?: number, end?: number) => ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[] & ThisType<void>) | undefined;
1305
+ copyWithin?: ((target: number, start: number, end?: number) => ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[] & ThisType<void>) | undefined;
1306
+ entries?: (() => ArrayIterator<[number, "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue"]>) | undefined;
1307
+ keys?: (() => ArrayIterator<number>) | undefined;
1308
+ values?: (() => ArrayIterator<"clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue">) | undefined;
1309
+ includes?: ((searchElement: "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", fromIndex?: number) => boolean) | undefined;
1310
+ flatMap?: (<U, This = undefined>(callback: (this: This, value: "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", index: number, array: ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[]) => U | readonly U[], thisArg?: This | undefined) => U[]) | undefined;
1311
+ flat?: (<A, D extends number = 1>(this: A, depth?: D | undefined) => FlatArray<A, D>[]) | undefined;
1312
+ at?: ((index: number) => "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue" | undefined) | undefined;
1313
+ [Symbol.iterator]?: (() => ArrayIterator<"clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue">) | undefined;
1314
+ [Symbol.unscopables]?: {
1315
+ [x: number]: boolean | undefined;
1316
+ length?: boolean | undefined;
1317
+ toString?: boolean | undefined;
1318
+ toLocaleString?: boolean | undefined;
1319
+ pop?: boolean | undefined;
1320
+ push?: boolean | undefined;
1321
+ concat?: boolean | undefined;
1322
+ join?: boolean | undefined;
1323
+ reverse?: boolean | undefined;
1324
+ shift?: boolean | undefined;
1325
+ slice?: boolean | undefined;
1326
+ sort?: boolean | undefined;
1327
+ splice?: boolean | undefined;
1328
+ unshift?: boolean | undefined;
1329
+ indexOf?: boolean | undefined;
1330
+ lastIndexOf?: boolean | undefined;
1331
+ every?: boolean | undefined;
1332
+ some?: boolean | undefined;
1333
+ forEach?: boolean | undefined;
1334
+ map?: boolean | undefined;
1335
+ filter?: boolean | undefined;
1336
+ reduce?: boolean | undefined;
1337
+ reduceRight?: boolean | undefined;
1338
+ find?: boolean | undefined;
1339
+ findIndex?: boolean | undefined;
1340
+ fill?: boolean | undefined;
1341
+ copyWithin?: boolean | undefined;
1342
+ entries?: boolean | undefined;
1343
+ keys?: boolean | undefined;
1344
+ values?: boolean | undefined;
1345
+ includes?: boolean | undefined;
1346
+ flatMap?: boolean | undefined;
1347
+ flat?: boolean | undefined;
1348
+ at?: boolean | undefined;
1349
+ [Symbol.iterator]?: boolean | undefined;
1350
+ readonly [Symbol.unscopables]?: boolean | undefined;
1351
+ } | undefined;
1352
+ };
1353
+ export type UploadEmits<T> = ReturnType<typeof uploadEmitsGeneric<T>>;
1354
+ export interface UploadSlots extends CommonSlots<any> {
1355
+ }
1356
+ /** 上传文件信息 */
1357
+ export interface FileInfo extends UploaderFileListItem {
1358
+ /** 服务器返回的信息 */
1359
+ response?: any;
1360
+ }
1361
+ /** */
1362
+ export interface UploadDetail {
1363
+ name: number | string;
1364
+ index: number;
1365
+ }
1366
+ /** 文件上传提供的参数 */
1367
+ export interface UploadOption {
1368
+ /** 当前选中的第一个文件 */
1369
+ file: FileInfo;
1370
+ /** 多选时所有文件 */
1371
+ files: FileInfo[];
1372
+ /** 成功回调 */
1373
+ success: (file: FileInfo | FileInfo[], res: any) => void;
1374
+ /** 失败回调 */
1375
+ fail: (file: FileInfo | FileInfo[], res: any) => void;
1376
+ }