@vunk/form 1.1.71 → 1.1.73

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 (64) hide show
  1. package/components/button/src/ctx.d.ts +7 -7
  2. package/components/button/src/index.vue.d.ts +26 -26
  3. package/components/cascader/src/ctx.d.ts +3 -3
  4. package/components/cascader/src/index.vue.d.ts +29 -29
  5. package/components/checkbox/src/ctx.d.ts +6 -6
  6. package/components/checkbox/src/index.vue.d.ts +22 -22
  7. package/components/color-picker/src/ctx.d.ts +5 -5
  8. package/components/color-picker/src/index.vue.d.ts +15 -15
  9. package/components/date-picker/src/ctx.d.ts +5 -5
  10. package/components/date-picker/src/index.vue.d.ts +28 -28
  11. package/components/download-plus/index.css +74 -0
  12. package/components/download-plus/index.d.ts +4 -0
  13. package/components/download-plus/index.js +418 -0
  14. package/components/download-plus/src/api.d.ts +13 -0
  15. package/components/download-plus/src/api.js +1 -0
  16. package/components/download-plus/src/const.d.ts +9 -0
  17. package/components/download-plus/src/const.js +1 -0
  18. package/components/download-plus/src/ctx.d.ts +83 -0
  19. package/components/download-plus/src/ctx.js +1 -0
  20. package/components/download-plus/src/index.css +1 -0
  21. package/components/download-plus/src/index.vue.d.ts +199 -0
  22. package/components/download-plus/src/types.d.ts +17 -0
  23. package/components/download-plus/src/types.js +1 -0
  24. package/components/esri-input-geojson/src/ctx.d.ts +3 -3
  25. package/components/esri-input-geojson/src/index.vue.d.ts +23 -23
  26. package/components/form/src/ctx.d.ts +1 -1
  27. package/components/form/src/index.vue.d.ts +5 -5
  28. package/components/form-item/src/ctx.d.ts +1 -1
  29. package/components/form-item/src/index.vue.d.ts +3 -3
  30. package/components/geoinput/src/ctx.d.ts +1 -1
  31. package/components/geoinput/src/index.vue.d.ts +12 -12
  32. package/components/geoinput-read/src/core.vue.d.ts +29 -29
  33. package/components/geoinput-read/src/ctx.d.ts +7 -7
  34. package/components/geoinput-read/src/index.vue.d.ts +19 -19
  35. package/components/geoinput-update/src/ctx.d.ts +7 -7
  36. package/components/geoinput-update/src/index.vue.d.ts +31 -31
  37. package/components/input/src/ctx.d.ts +7 -7
  38. package/components/input/src/index.vue.d.ts +27 -27
  39. package/components/input-link/src/ctx.d.ts +1 -1
  40. package/components/input-link/src/index.vue.d.ts +12 -12
  41. package/components/input-number/src/ctx.d.ts +3 -3
  42. package/components/input-number/src/index.vue.d.ts +11 -11
  43. package/components/radio/src/ctx.d.ts +5 -5
  44. package/components/radio/src/index.vue.d.ts +19 -19
  45. package/components/select/src/ctx.d.ts +8 -8
  46. package/components/select/src/index.vue.d.ts +59 -59
  47. package/components/slider/src/ctx.d.ts +5 -5
  48. package/components/slider/src/index.vue.d.ts +19 -19
  49. package/components/switch/src/ctx.d.ts +5 -5
  50. package/components/switch/src/index.vue.d.ts +19 -19
  51. package/components/upload/src/ctx.d.ts +6 -6
  52. package/components/upload/src/index.vue.d.ts +17 -17
  53. package/components/upload-plus/index.css +2 -0
  54. package/components/upload-plus/index.js +43 -13
  55. package/components/upload-plus/src/api.js +6 -6
  56. package/components/upload-plus/src/ctx.d.ts +22 -6
  57. package/components/upload-plus/src/ctx.js +1 -1
  58. package/components/upload-plus/src/index.vue.d.ts +16 -15
  59. package/components/van-cascader/src/ctx.d.ts +1 -1
  60. package/components/van-cascader/src/index.vue.d.ts +19 -19
  61. package/components/var-datetime-picker/src/ctx.d.ts +1 -1
  62. package/components/var-datetime-picker/src/index.vue.d.ts +6 -6
  63. package/index.css +79 -0
  64. package/package.json +1 -1
@@ -70,11 +70,6 @@ declare const _default: import("vue").DefineComponent<{
70
70
  __epPropKey: true;
71
71
  };
72
72
  validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
73
- required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
74
- readonly: {
75
- type: BooleanConstructor;
76
- default: any;
77
- };
78
73
  labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
79
74
  prop: {
80
75
  readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
@@ -82,6 +77,7 @@ declare const _default: import("vue").DefineComponent<{
82
77
  readonly validator: (val: unknown) => boolean;
83
78
  __epPropKey: true;
84
79
  };
80
+ required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
85
81
  rules: {
86
82
  readonly type: import("vue").PropType<unknown>;
87
83
  readonly required: false;
@@ -114,6 +110,10 @@ declare const _default: import("vue").DefineComponent<{
114
110
  type: BooleanConstructor;
115
111
  default: boolean;
116
112
  };
113
+ readonly: {
114
+ type: BooleanConstructor;
115
+ default: any;
116
+ };
117
117
  labelPosition: {
118
118
  type: import("vue").PropType<"right">;
119
119
  default: string;
@@ -122,17 +122,17 @@ declare const _default: import("vue").DefineComponent<{
122
122
  readonly: import("vue").ComputedRef<boolean>;
123
123
  formItemBindProps: import("vue").ComputedRef<{}>;
124
124
  coreProps: import("vue").ComputedRef<{
125
- size: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>;
126
- debounce: number;
127
- validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
128
125
  label: string;
126
+ size: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>;
129
127
  placement: import("element-plus/es/utils").EpPropMergeType<StringConstructor, import("element-plus").Placement, unknown>;
130
128
  vertical: boolean;
131
129
  id: string;
130
+ validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
132
131
  inputSize: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>;
133
132
  step: number;
134
133
  max: number;
135
134
  min: number;
135
+ debounce: number;
136
136
  showInput: boolean;
137
137
  showInputControls: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
138
138
  showStops: boolean;
@@ -237,11 +237,6 @@ declare const _default: import("vue").DefineComponent<{
237
237
  __epPropKey: true;
238
238
  };
239
239
  validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
240
- required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
241
- readonly: {
242
- type: BooleanConstructor;
243
- default: any;
244
- };
245
240
  labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
246
241
  prop: {
247
242
  readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
@@ -249,6 +244,7 @@ declare const _default: import("vue").DefineComponent<{
249
244
  readonly validator: (val: unknown) => boolean;
250
245
  __epPropKey: true;
251
246
  };
247
+ required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
252
248
  rules: {
253
249
  readonly type: import("vue").PropType<unknown>;
254
250
  readonly required: false;
@@ -281,6 +277,10 @@ declare const _default: import("vue").DefineComponent<{
281
277
  type: BooleanConstructor;
282
278
  default: boolean;
283
279
  };
280
+ readonly: {
281
+ type: BooleanConstructor;
282
+ default: any;
283
+ };
284
284
  labelPosition: {
285
285
  type: import("vue").PropType<"right">;
286
286
  default: string;
@@ -290,27 +290,27 @@ declare const _default: import("vue").DefineComponent<{
290
290
  "onUpdate:modelValue"?: (value: import("element-plus/es/utils").Arrayable<number>) => any;
291
291
  onInput?: (value: import("element-plus/es/utils").Arrayable<number>) => any;
292
292
  }, {
293
- disabled: boolean;
294
- debounce: number;
295
- validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
296
- modelValue: any;
297
- required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
298
- readonly: boolean;
299
293
  label: string;
300
294
  labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
295
+ required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
301
296
  inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
302
297
  showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
303
298
  formItemSize: "default" | "small" | "large";
304
299
  formItemSlots: import("../../form-item/src/types").FormItemSlots;
305
300
  inline: boolean;
301
+ readonly: boolean;
306
302
  labelPosition: "right";
303
+ disabled: boolean;
307
304
  placement: import("element-plus/es/utils").EpPropMergeType<StringConstructor, import("element-plus").Placement, unknown>;
308
305
  vertical: boolean;
309
306
  id: string;
307
+ modelValue: any;
308
+ validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
310
309
  defaultModelValue: any;
311
310
  step: number;
312
311
  max: number;
313
312
  min: number;
313
+ debounce: number;
314
314
  showInput: boolean;
315
315
  showInputControls: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
316
316
  showStops: boolean;
@@ -61,11 +61,6 @@ export declare const props: {
61
61
  };
62
62
  value: import("element-plus/es/utils").EpPropFinalized<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown, false, boolean>;
63
63
  label: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
64
- required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
65
- readonly: {
66
- type: BooleanConstructor;
67
- default: any;
68
- };
69
64
  labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
70
65
  prop: {
71
66
  readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
@@ -73,6 +68,7 @@ export declare const props: {
73
68
  readonly validator: (val: unknown) => boolean;
74
69
  __epPropKey: true;
75
70
  };
71
+ required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
76
72
  rules: {
77
73
  readonly type: import("vue").PropType<unknown>;
78
74
  readonly required: false;
@@ -105,6 +101,10 @@ export declare const props: {
105
101
  type: BooleanConstructor;
106
102
  default: boolean;
107
103
  };
104
+ readonly: {
105
+ type: BooleanConstructor;
106
+ default: any;
107
+ };
108
108
  labelPosition: {
109
109
  type: import("vue").PropType<"right">;
110
110
  default: string;
@@ -61,11 +61,6 @@ declare const _default: import("vue").DefineComponent<{
61
61
  };
62
62
  value: import("element-plus/es/utils").EpPropFinalized<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown, false, boolean>;
63
63
  label: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
64
- required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
65
- readonly: {
66
- type: BooleanConstructor;
67
- default: any;
68
- };
69
64
  labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
70
65
  prop: {
71
66
  readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
@@ -73,6 +68,7 @@ declare const _default: import("vue").DefineComponent<{
73
68
  readonly validator: (val: unknown) => boolean;
74
69
  __epPropKey: true;
75
70
  };
71
+ required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
76
72
  rules: {
77
73
  readonly type: import("vue").PropType<unknown>;
78
74
  readonly required: false;
@@ -105,6 +101,10 @@ declare const _default: import("vue").DefineComponent<{
105
101
  type: BooleanConstructor;
106
102
  default: boolean;
107
103
  };
104
+ readonly: {
105
+ type: BooleanConstructor;
106
+ default: any;
107
+ };
108
108
  labelPosition: {
109
109
  type: import("vue").PropType<"right">;
110
110
  default: string;
@@ -112,14 +112,14 @@ declare const _default: import("vue").DefineComponent<{
112
112
  }, {
113
113
  formItemBindProps: import("vue").ComputedRef<{}>;
114
114
  switchBindProps: import("vue").ComputedRef<{
115
- size: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => "" | "default" | "small" | "large") | (() => "" | "default" | "small" | "large") | ((new (...args: any[]) => "" | "default" | "small" | "large") | (() => "" | "default" | "small" | "large"))[], unknown, "" | "default" | "small" | "large">;
116
- validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
117
115
  label: string;
116
+ size: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => "" | "default" | "small" | "large") | (() => "" | "default" | "small" | "large") | ((new (...args: any[]) => "" | "default" | "small" | "large") | (() => "" | "default" | "small" | "large"))[], unknown, "" | "default" | "small" | "large">;
118
117
  name: string;
118
+ loading: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
119
119
  value: import("element-plus/es/utils").EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
120
120
  id: string;
121
121
  tabindex: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
122
- loading: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
122
+ validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
123
123
  width: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
124
124
  inlinePrompt: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
125
125
  inactiveActionIcon: unknown;
@@ -204,11 +204,6 @@ declare const _default: import("vue").DefineComponent<{
204
204
  };
205
205
  value: import("element-plus/es/utils").EpPropFinalized<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown, false, boolean>;
206
206
  label: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
207
- required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
208
- readonly: {
209
- type: BooleanConstructor;
210
- default: any;
211
- };
212
207
  labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
213
208
  prop: {
214
209
  readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
@@ -216,6 +211,7 @@ declare const _default: import("vue").DefineComponent<{
216
211
  readonly validator: (val: unknown) => boolean;
217
212
  __epPropKey: true;
218
213
  };
214
+ required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
219
215
  rules: {
220
216
  readonly type: import("vue").PropType<unknown>;
221
217
  readonly required: false;
@@ -248,6 +244,10 @@ declare const _default: import("vue").DefineComponent<{
248
244
  type: BooleanConstructor;
249
245
  default: boolean;
250
246
  };
247
+ readonly: {
248
+ type: BooleanConstructor;
249
+ default: any;
250
+ };
251
251
  labelPosition: {
252
252
  type: import("vue").PropType<"right">;
253
253
  default: string;
@@ -257,22 +257,22 @@ declare const _default: import("vue").DefineComponent<{
257
257
  "onUpdate:modelValue"?: (val: string | number | boolean) => any;
258
258
  onInput?: (val: string | number | boolean) => any;
259
259
  }, {
260
- disabled: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
261
- validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
262
- modelValue: any;
263
- required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
264
- readonly: boolean;
265
260
  label: string;
266
261
  labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
262
+ required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
267
263
  inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
268
264
  showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
269
265
  formItemSize: "default" | "small" | "large";
270
266
  formItemSlots: import("../../form-item/src/types").FormItemSlots;
271
267
  inline: boolean;
268
+ readonly: boolean;
272
269
  labelPosition: "right";
273
270
  name: string;
274
- value: import("element-plus/es/utils").EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
271
+ disabled: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
275
272
  loading: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
273
+ value: import("element-plus/es/utils").EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
274
+ modelValue: any;
275
+ validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
276
276
  width: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
277
277
  inlinePrompt: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
278
278
  activeText: string;
@@ -121,11 +121,6 @@ export declare const props: {
121
121
  })[], unknown, unknown, import("element-plus").UploadRequestHandler, boolean>;
122
122
  disabled: BooleanConstructor;
123
123
  limit: NumberConstructor;
124
- required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
125
- readonly: {
126
- type: BooleanConstructor;
127
- default: any;
128
- };
129
124
  label: StringConstructor;
130
125
  labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
131
126
  prop: {
@@ -134,6 +129,7 @@ export declare const props: {
134
129
  readonly validator: (val: unknown) => boolean;
135
130
  __epPropKey: true;
136
131
  };
132
+ required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
137
133
  rules: {
138
134
  readonly type: PropType<unknown>;
139
135
  readonly required: false;
@@ -166,12 +162,16 @@ export declare const props: {
166
162
  type: BooleanConstructor;
167
163
  default: boolean;
168
164
  };
165
+ readonly: {
166
+ type: BooleanConstructor;
167
+ default: any;
168
+ };
169
169
  labelPosition: {
170
170
  type: PropType<"right">;
171
171
  default: string;
172
172
  };
173
173
  };
174
- export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"disabled", keyof T2> | Extract<"required", keyof T2> | Extract<"multiple", keyof T2> | Extract<"readonly", keyof T2> | Extract<"onChange", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"prop", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"name", keyof T2> | Extract<"data", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"onError", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"crossorigin", keyof T2> | Extract<"action", keyof T2> | Extract<"headers", keyof T2> | Extract<"method", keyof T2> | Extract<"drag", keyof T2> | Extract<"withCredentials", keyof T2> | Extract<"showFileList", keyof T2> | Extract<"accept", keyof T2> | Extract<"fileList", keyof T2> | Extract<"autoUpload", keyof T2> | Extract<"listType", keyof T2> | Extract<"httpRequest", keyof T2> | Extract<"limit", keyof T2> | Extract<"onDownload", keyof T2> | Extract<"preview", keyof T2> | Extract<"tip", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"required", keyof T2>, KE> | Exclude<Extract<"multiple", keyof T2>, KE> | Exclude<Extract<"readonly", keyof T2>, KE> | Exclude<Extract<"onChange", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"rules", keyof T2>, KE> | Exclude<Extract<"error", keyof T2>, KE> | Exclude<Extract<"validateStatus", keyof T2>, KE> | Exclude<Extract<"for", keyof T2>, KE> | Exclude<Extract<"inlineMessage", keyof T2>, KE> | Exclude<Extract<"showMessage", keyof T2>, KE> | Exclude<Extract<"formItemSize", keyof T2>, KE> | Exclude<Extract<"formItemSlots", keyof T2>, KE> | Exclude<Extract<"elRef", keyof T2>, KE> | Exclude<Extract<"inline", keyof T2>, KE> | Exclude<Extract<"labelPosition", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"data", keyof T2>, KE> | Exclude<Extract<"beforeUpload", keyof T2>, KE> | Exclude<Extract<"beforeRemove", keyof T2>, KE> | Exclude<Extract<"onRemove", keyof T2>, KE> | Exclude<Extract<"onPreview", keyof T2>, KE> | Exclude<Extract<"onSuccess", keyof T2>, KE> | Exclude<Extract<"onProgress", keyof T2>, KE> | Exclude<Extract<"onError", keyof T2>, KE> | Exclude<Extract<"onExceed", keyof T2>, KE> | Exclude<Extract<"crossorigin", keyof T2>, KE> | Exclude<Extract<"action", keyof T2>, KE> | Exclude<Extract<"headers", keyof T2>, KE> | Exclude<Extract<"method", keyof T2>, KE> | Exclude<Extract<"drag", keyof T2>, KE> | Exclude<Extract<"withCredentials", keyof T2>, KE> | Exclude<Extract<"showFileList", keyof T2>, KE> | Exclude<Extract<"accept", keyof T2>, KE> | Exclude<Extract<"fileList", keyof T2>, KE> | Exclude<Extract<"autoUpload", keyof T2>, KE> | Exclude<Extract<"listType", keyof T2>, KE> | Exclude<Extract<"httpRequest", keyof T2>, KE> | Exclude<Extract<"limit", keyof T2>, KE> | Exclude<Extract<"onDownload", keyof T2>, KE> | Exclude<Extract<"preview", keyof T2>, KE> | Exclude<Extract<"tip", keyof T2>, KE> : Extract<"disabled", keyof T2> | Extract<"required", keyof T2> | Extract<"multiple", keyof T2> | Extract<"readonly", keyof T2> | Extract<"onChange", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"prop", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"name", keyof T2> | Extract<"data", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"onError", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"crossorigin", keyof T2> | Extract<"action", keyof T2> | Extract<"headers", keyof T2> | Extract<"method", keyof T2> | Extract<"drag", keyof T2> | Extract<"withCredentials", keyof T2> | Extract<"showFileList", keyof T2> | Extract<"accept", keyof T2> | Extract<"fileList", keyof T2> | Extract<"autoUpload", keyof T2> | Extract<"listType", keyof T2> | Extract<"httpRequest", keyof T2> | Extract<"limit", keyof T2> | Extract<"onDownload", keyof T2> | Extract<"preview", keyof T2> | Extract<"tip", keyof T2>]: { [k in Extract<"disabled", keyof T2> | Extract<"required", keyof T2> | Extract<"multiple", keyof T2> | Extract<"readonly", keyof T2> | Extract<"onChange", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"prop", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"name", keyof T2> | Extract<"data", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"onError", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"crossorigin", keyof T2> | Extract<"action", keyof T2> | Extract<"headers", keyof T2> | Extract<"method", keyof T2> | Extract<"drag", keyof T2> | Extract<"withCredentials", keyof T2> | Extract<"showFileList", keyof T2> | Extract<"accept", keyof T2> | Extract<"fileList", keyof T2> | Extract<"autoUpload", keyof T2> | Extract<"listType", keyof T2> | Extract<"httpRequest", keyof T2> | Extract<"limit", keyof T2> | Extract<"onDownload", keyof T2> | Extract<"preview", keyof T2> | Extract<"tip", keyof T2>]: T2[k]; }[P]; }>;
174
+ export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"prop", keyof T2> | Extract<"required", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"name", keyof T2> | Extract<"disabled", keyof T2> | Extract<"onChange", keyof T2> | Extract<"multiple", keyof T2> | Extract<"data", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"onError", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"crossorigin", keyof T2> | Extract<"action", keyof T2> | Extract<"headers", keyof T2> | Extract<"method", keyof T2> | Extract<"drag", keyof T2> | Extract<"withCredentials", keyof T2> | Extract<"showFileList", keyof T2> | Extract<"accept", keyof T2> | Extract<"fileList", keyof T2> | Extract<"autoUpload", keyof T2> | Extract<"listType", keyof T2> | Extract<"httpRequest", keyof T2> | Extract<"limit", keyof T2> | Extract<"onDownload", keyof T2> | Extract<"preview", keyof T2> | Extract<"tip", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"required", keyof T2>, KE> | Exclude<Extract<"rules", keyof T2>, KE> | Exclude<Extract<"error", keyof T2>, KE> | Exclude<Extract<"validateStatus", keyof T2>, KE> | Exclude<Extract<"for", keyof T2>, KE> | Exclude<Extract<"inlineMessage", keyof T2>, KE> | Exclude<Extract<"showMessage", keyof T2>, KE> | Exclude<Extract<"formItemSize", keyof T2>, KE> | Exclude<Extract<"formItemSlots", keyof T2>, KE> | Exclude<Extract<"elRef", keyof T2>, KE> | Exclude<Extract<"inline", keyof T2>, KE> | Exclude<Extract<"readonly", keyof T2>, KE> | Exclude<Extract<"labelPosition", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"onChange", keyof T2>, KE> | Exclude<Extract<"multiple", keyof T2>, KE> | Exclude<Extract<"data", keyof T2>, KE> | Exclude<Extract<"beforeUpload", keyof T2>, KE> | Exclude<Extract<"beforeRemove", keyof T2>, KE> | Exclude<Extract<"onRemove", keyof T2>, KE> | Exclude<Extract<"onPreview", keyof T2>, KE> | Exclude<Extract<"onSuccess", keyof T2>, KE> | Exclude<Extract<"onProgress", keyof T2>, KE> | Exclude<Extract<"onError", keyof T2>, KE> | Exclude<Extract<"onExceed", keyof T2>, KE> | Exclude<Extract<"crossorigin", keyof T2>, KE> | Exclude<Extract<"action", keyof T2>, KE> | Exclude<Extract<"headers", keyof T2>, KE> | Exclude<Extract<"method", keyof T2>, KE> | Exclude<Extract<"drag", keyof T2>, KE> | Exclude<Extract<"withCredentials", keyof T2>, KE> | Exclude<Extract<"showFileList", keyof T2>, KE> | Exclude<Extract<"accept", keyof T2>, KE> | Exclude<Extract<"fileList", keyof T2>, KE> | Exclude<Extract<"autoUpload", keyof T2>, KE> | Exclude<Extract<"listType", keyof T2>, KE> | Exclude<Extract<"httpRequest", keyof T2>, KE> | Exclude<Extract<"limit", keyof T2>, KE> | Exclude<Extract<"onDownload", keyof T2>, KE> | Exclude<Extract<"preview", keyof T2>, KE> | Exclude<Extract<"tip", keyof T2>, KE> : Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"prop", keyof T2> | Extract<"required", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"name", keyof T2> | Extract<"disabled", keyof T2> | Extract<"onChange", keyof T2> | Extract<"multiple", keyof T2> | Extract<"data", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"onError", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"crossorigin", keyof T2> | Extract<"action", keyof T2> | Extract<"headers", keyof T2> | Extract<"method", keyof T2> | Extract<"drag", keyof T2> | Extract<"withCredentials", keyof T2> | Extract<"showFileList", keyof T2> | Extract<"accept", keyof T2> | Extract<"fileList", keyof T2> | Extract<"autoUpload", keyof T2> | Extract<"listType", keyof T2> | Extract<"httpRequest", keyof T2> | Extract<"limit", keyof T2> | Extract<"onDownload", keyof T2> | Extract<"preview", keyof T2> | Extract<"tip", keyof T2>]: { [k in Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"prop", keyof T2> | Extract<"required", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"name", keyof T2> | Extract<"disabled", keyof T2> | Extract<"onChange", keyof T2> | Extract<"multiple", keyof T2> | Extract<"data", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"onError", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"crossorigin", keyof T2> | Extract<"action", keyof T2> | Extract<"headers", keyof T2> | Extract<"method", keyof T2> | Extract<"drag", keyof T2> | Extract<"withCredentials", keyof T2> | Extract<"showFileList", keyof T2> | Extract<"accept", keyof T2> | Extract<"fileList", keyof T2> | Extract<"autoUpload", keyof T2> | Extract<"listType", keyof T2> | Extract<"httpRequest", keyof T2> | Extract<"limit", keyof T2> | Extract<"onDownload", keyof T2> | Extract<"preview", keyof T2> | Extract<"tip", keyof T2>]: T2[k]; }[P]; }>;
175
175
  export declare const emits: {
176
176
  'update:fileList': any;
177
177
  remove: (e: UploadFile) => UploadFile;
@@ -125,11 +125,6 @@ declare const _default: import("vue").DefineComponent<{
125
125
  })[], unknown, unknown, import("element-plus").UploadRequestHandler, boolean>;
126
126
  disabled: BooleanConstructor;
127
127
  limit: NumberConstructor;
128
- required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
129
- readonly: {
130
- type: BooleanConstructor;
131
- default: any;
132
- };
133
128
  label: StringConstructor;
134
129
  labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
135
130
  prop: {
@@ -138,6 +133,7 @@ declare const _default: import("vue").DefineComponent<{
138
133
  readonly validator: (val: unknown) => boolean;
139
134
  __epPropKey: true;
140
135
  };
136
+ required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
141
137
  rules: {
142
138
  readonly type: import("vue").PropType<unknown>;
143
139
  readonly required: false;
@@ -170,6 +166,10 @@ declare const _default: import("vue").DefineComponent<{
170
166
  type: BooleanConstructor;
171
167
  default: boolean;
172
168
  };
169
+ readonly: {
170
+ type: BooleanConstructor;
171
+ default: any;
172
+ };
173
173
  labelPosition: {
174
174
  type: import("vue").PropType<"right">;
175
175
  default: string;
@@ -181,9 +181,9 @@ declare const _default: import("vue").DefineComponent<{
181
181
  includes?: KI[];
182
182
  }) => { [P in EX extends (infer KE)[] ? Exclude<KI, KE> : KI]: T[P]; };
183
183
  coreBindProps: import("vue").ComputedRef<{
184
- multiple: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
185
- onChange: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
186
184
  name: string;
185
+ onChange: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
186
+ multiple: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
187
187
  data: import("element-plus/es/utils").Mutable<{}>;
188
188
  beforeRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => import("element-plus/es/utils").Awaitable<boolean>;
189
189
  onRemove: ((uploadFile: UploadFile, uploadFiles: UploadFiles) => void) & ((e: UploadFile) => any);
@@ -336,11 +336,6 @@ declare const _default: import("vue").DefineComponent<{
336
336
  })[], unknown, unknown, import("element-plus").UploadRequestHandler, boolean>;
337
337
  disabled: BooleanConstructor;
338
338
  limit: NumberConstructor;
339
- required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
340
- readonly: {
341
- type: BooleanConstructor;
342
- default: any;
343
- };
344
339
  label: StringConstructor;
345
340
  labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
346
341
  prop: {
@@ -349,6 +344,7 @@ declare const _default: import("vue").DefineComponent<{
349
344
  readonly validator: (val: unknown) => boolean;
350
345
  __epPropKey: true;
351
346
  };
347
+ required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
352
348
  rules: {
353
349
  readonly type: import("vue").PropType<unknown>;
354
350
  readonly required: false;
@@ -381,6 +377,10 @@ declare const _default: import("vue").DefineComponent<{
381
377
  type: BooleanConstructor;
382
378
  default: boolean;
383
379
  };
380
+ readonly: {
381
+ type: BooleanConstructor;
382
+ default: any;
383
+ };
384
384
  labelPosition: {
385
385
  type: import("vue").PropType<"right">;
386
386
  default: string;
@@ -389,19 +389,19 @@ declare const _default: import("vue").DefineComponent<{
389
389
  onRemove?: (e: UploadFile) => any;
390
390
  "onUpdate:fileList"?: (...args: any[] | unknown[]) => any;
391
391
  }, {
392
- disabled: boolean;
393
- required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
394
- multiple: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
395
- readonly: boolean;
396
- onChange: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
397
392
  labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
393
+ required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
398
394
  inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
399
395
  showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
400
396
  formItemSize: "default" | "small" | "large";
401
397
  formItemSlots: import("../../form-item/src/types").FormItemSlots;
402
398
  inline: boolean;
399
+ readonly: boolean;
403
400
  labelPosition: "right";
404
401
  name: string;
402
+ disabled: boolean;
403
+ onChange: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
404
+ multiple: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
405
405
  data: import("element-plus/es/utils").Mutable<{}>;
406
406
  beforeUpload: Function;
407
407
  onRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
@@ -73,6 +73,8 @@
73
73
  .vkf-upload-plus-label .el-input{
74
74
  pointer-events: none;
75
75
  --el-input-border-color: transparent;
76
+ --el-input-focus-border-color: transparent;
77
+ --el-input-hover-border-color: transparent;
76
78
  }
77
79
  .vkf-upload-plus-label .el-input.is-success .el-icon{
78
80
  color: var(--el-color-success);
@@ -1,15 +1,19 @@
1
1
  import { _VkfFormItemCtx, VkfFormItem } from '@vunk/form/components/form-item';
2
- import { openBlock, createElementBlock, createElementVNode, defineComponent, watch, ref, computed, watchEffect, onBeforeUnmount, resolveComponent, createBlock, mergeProps, withCtx, createVNode, normalizeClass, createCommentVNode, Fragment, renderList, normalizeStyle, createTextVNode } from 'vue';
3
- import { ElMessage, ElInput, ElButtonGroup, ElButton, ElIcon } from 'element-plus';
2
+ import { openBlock, createElementBlock, createElementVNode, defineComponent, watchEffect, watch, ref, computed, onBeforeUnmount, resolveComponent, resolveDirective, createBlock, mergeProps, withCtx, createVNode, normalizeClass, createCommentVNode, Fragment, renderList, normalizeStyle, withDirectives, createTextVNode } from 'vue';
3
+ import { ElMessage, ElInput, ElButtonGroup, ElButton, ElIcon, vLoading } from 'element-plus';
4
4
  import { createFileChunk, calculateFileHashSample } from '@vunk/form/shared/upload';
5
5
  import { RestFetch } from '@vunk/core/shared/utils-fetch';
6
6
  import '@vunk/core/shared/utils-promise';
7
7
  import { isPlainObject as isPlainObject$1 } from '@vunk/core/shared/utils-object';
8
+ import { restFetch as restFetch$1 } from '@skzz/platform/shared/fetch/platform';
8
9
  import { useModelComputed } from '@vunk/core/composables';
9
10
 
10
11
  const props = {
11
12
  ..._VkfFormItemCtx.props,
12
- size: {
13
+ /**
14
+ * @description 分片大小
15
+ */
16
+ chunkSize: {
13
17
  type: Number,
14
18
  default: 1024 / (16 * 16) * 1024 * 1024
15
19
  },
@@ -24,6 +28,9 @@ const props = {
24
28
  type: String,
25
29
  default: ""
26
30
  },
31
+ /**
32
+ * @description 上传文件类型
33
+ */
27
34
  accept: {
28
35
  type: String,
29
36
  default: ""
@@ -32,10 +39,17 @@ const props = {
32
39
  type: String,
33
40
  default: void 0
34
41
  },
42
+ /**
43
+ * @description v-model:file 文件对象
44
+ */
35
45
  file: {
36
46
  type: Object,
37
47
  default: void 0
38
48
  },
49
+ /**
50
+ * @description
51
+ * v-model:fileStatus 当前文件状态: wait, doPause, pause, doUpload, uploading, error, done
52
+ */
39
53
  fileStatus: {
40
54
  type: String,
41
55
  default: void 0
@@ -9500,7 +9514,7 @@ lodash.prototype.at=seq.at;lodash.prototype.chain=seq.wrapperChain;lodash.protot
9500
9514
  lodash.prototype.first=lodash.prototype.head;if(symIterator){lodash.prototype[symIterator]=seq.toIterator;}throttle(err=>{let message="\u7CFB\u7EDF\u9519\u8BEF";if(err instanceof Error){const local={"Failed to fetch":"\u8BF7\u6C42\u5931\u8D25","The user aborted a request.":"\u8BF7\u6C42\u88AB\u7EC8\u6B62"};message=local[err.message]||err.message;if(err.name==="AbortError"&&err.message.includes("user")){return;}}if(typeof err==="string"){message=err;}if(isPlainObject$1(err)){const msg=err==null?void 0:err.msg;msg&&(message=msg);}ElMessage({type:"error",message});},500,{trailing:false});const setDefaultHeader=config=>{const headers=config.headers;headers.set("application","platform");headers.set("tenant","default");return config;};
9501
9515
 
9502
9516
  const restFetch = new RestFetch({
9503
- baseURL: "http://192.168.110.209:36800",
9517
+ baseURL: restFetch$1.baseURL,
9504
9518
  presetRequestInit: (config) => {
9505
9519
  const header = config.headers;
9506
9520
  const token = getToken();
@@ -9673,6 +9687,9 @@ var script = defineComponent({
9673
9687
  ElIcon,
9674
9688
  SuccessFilled: success_filled_default
9675
9689
  },
9690
+ directives: {
9691
+ loading: vLoading
9692
+ },
9676
9693
  props,
9677
9694
  emits,
9678
9695
  setup(props2, {
@@ -9688,6 +9705,9 @@ var script = defineComponent({
9688
9705
  default: Status.wait,
9689
9706
  key: "fileStatus"
9690
9707
  }, props2, emit);
9708
+ watchEffect(() => {
9709
+ restFetch.baseURL = props2.url || restFetch$1.baseURL;
9710
+ });
9691
9711
  watch(() => fileStatus.value, (v, ov) => {
9692
9712
  if (v === Status.doUpload) {
9693
9713
  handleUpload();
@@ -9712,10 +9732,6 @@ var script = defineComponent({
9712
9732
  }
9713
9733
  return upload_filled_default;
9714
9734
  });
9715
- watchEffect(() => {
9716
- if (props2.url)
9717
- restFetch.baseURL = props2.url;
9718
- });
9719
9735
  const handleFileChange = (e) => {
9720
9736
  handlePause();
9721
9737
  const target = e.target;
@@ -9729,7 +9745,7 @@ var script = defineComponent({
9729
9745
  if (!containerFile.value)
9730
9746
  return;
9731
9747
  fileStatus.value = Status.uploading;
9732
- const chunkFiles = createFileChunk(containerFile.value, props2.size);
9748
+ const chunkFiles = createFileChunk(containerFile.value, props2.chunkSize);
9733
9749
  const hash = await calculateFileHashSample(containerFile.value);
9734
9750
  containerHash.value = hash;
9735
9751
  const {
@@ -9745,6 +9761,7 @@ var script = defineComponent({
9745
9761
  message: "\u4E0A\u4F20\u6210\u529F"
9746
9762
  });
9747
9763
  emit("success", mergedFile);
9764
+ fileStatus.value = Status.done;
9748
9765
  return;
9749
9766
  }
9750
9767
  const sliceSize = chunkFiles[0].size;
@@ -9828,11 +9845,13 @@ var script = defineComponent({
9828
9845
  start();
9829
9846
  });
9830
9847
  }
9848
+ const merging = ref(false);
9831
9849
  function cFile() {
9832
9850
  if (!containerFile.value)
9833
9851
  return;
9834
9852
  if (!containerHash.value)
9835
9853
  return;
9854
+ merging.value = true;
9836
9855
  return merge({
9837
9856
  filename: containerFile.value.name,
9838
9857
  identifier: containerHash.value,
@@ -9848,6 +9867,8 @@ var script = defineComponent({
9848
9867
  message: "\u5408\u5E76\u5931\u8D25"
9849
9868
  });
9850
9869
  throw err;
9870
+ }).finally(() => {
9871
+ merging.value = false;
9851
9872
  });
9852
9873
  }
9853
9874
  onBeforeUnmount(() => {
@@ -9863,7 +9884,8 @@ var script = defineComponent({
9863
9884
  chunks,
9864
9885
  Status,
9865
9886
  filePrefixIcon,
9866
- handlePause
9887
+ handlePause,
9888
+ merging
9867
9889
  };
9868
9890
  }
9869
9891
  });
@@ -9898,6 +9920,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
9898
9920
  const _component_el_button = resolveComponent("el-button");
9899
9921
  const _component_el_button_group = resolveComponent("el-button-group");
9900
9922
  const _component_VkfFormItem = resolveComponent("VkfFormItem");
9923
+ const _directive_loading = resolveDirective("loading");
9901
9924
  return openBlock(), createBlock(
9902
9925
  _component_VkfFormItem,
9903
9926
  mergeProps(_ctx.formItemBindProps, {
@@ -9964,8 +9987,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
9964
9987
  }, null, 40, _hoisted_6), createVNode(_component_el_button_group, {
9965
9988
  class: "vkf-upload-plus-btng"
9966
9989
  }, {
9967
- default: withCtx(() => [_ctx.fileStatus === _ctx.Status.uploading ? (openBlock(), createBlock(_component_ElButton, {
9990
+ default: withCtx(() => [_ctx.merging ? withDirectives((openBlock(), createBlock(_component_ElButton, {
9968
9991
  key: 0,
9992
+ type: "success"
9993
+ }, {
9994
+ default: withCtx(() => [createTextVNode(" \u5408\u5E76 ")]),
9995
+ _: 1
9996
+ /* STABLE */
9997
+ })), [[_directive_loading, _ctx.merging]]) : _ctx.fileStatus === _ctx.Status.uploading ? (openBlock(), createBlock(_component_ElButton, {
9998
+ key: 1,
9969
9999
  type: "danger",
9970
10000
  onClick: _ctx.handlePause
9971
10001
  }, {
@@ -9973,7 +10003,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
9973
10003
  _: 1
9974
10004
  /* STABLE */
9975
10005
  }, 8, ["onClick"])) : _ctx.fileStatus === _ctx.Status.done ? (openBlock(), createBlock(_component_ElButton, {
9976
- key: 1,
10006
+ key: 2,
9977
10007
  type: "success",
9978
10008
  disabled: ""
9979
10009
  }, {
@@ -9981,7 +10011,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
9981
10011
  _: 1
9982
10012
  /* STABLE */
9983
10013
  })) : (openBlock(), createBlock(_component_el_button, {
9984
- key: 2,
10014
+ key: 3,
9985
10015
  type: "primary",
9986
10016
  disabled: !_ctx.containerFile,
9987
10017
  onClick: _ctx.handleUpload