@vunk/form 2.14.17 → 2.14.19

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 (65) hide show
  1. package/components/button/src/ctx.d.ts +8 -1
  2. package/components/button/src/index.vue.d.ts +43 -8
  3. package/components/card-input-collection/index.cjs +3 -2
  4. package/components/card-input-collection/index.mjs +3 -2
  5. package/components/card-input-collection/src/core.vue.d.ts +34 -13
  6. package/components/card-input-collection/src/ctx.d.ts +1 -1
  7. package/components/card-input-collection/src/index.vue.d.ts +3 -3
  8. package/components/cascader/src/ctx.d.ts +63 -6
  9. package/components/cascader/src/index.vue.d.ts +155 -10
  10. package/components/color-picker/src/ctx.d.ts +14 -0
  11. package/components/color-picker/src/index.vue.d.ts +29 -0
  12. package/components/date-picker/src/ctx.d.ts +46 -4
  13. package/components/date-picker/src/index.vue.d.ts +266 -27
  14. package/components/date-picker-range/src/ctx.d.ts +48 -6
  15. package/components/date-picker-range/src/index.vue.d.ts +98 -13
  16. package/components/dialog-input-collection/index.cjs +3 -2
  17. package/components/dialog-input-collection/index.mjs +3 -2
  18. package/components/dialog-input-collection/src/ctx.d.ts +1 -1
  19. package/components/dialog-input-collection/src/dialog-form.vue.d.ts +4696 -48
  20. package/components/dialog-input-collection/src/index.vue.d.ts +4727 -58
  21. package/components/download-plus/src/index.vue.d.ts +45 -6
  22. package/components/esri-input-geojson/src/append.vue.d.ts +27 -6
  23. package/components/esri-input-geojson/src/ctx.d.ts +7 -1
  24. package/components/esri-input-geojson/src/index.vue.d.ts +13 -0
  25. package/components/fieldset/index.cjs +1 -17
  26. package/components/fieldset/index.mjs +1 -17
  27. package/components/form/src/ctx.d.ts +1 -1
  28. package/components/form/src/index.vue.d.ts +2867 -22
  29. package/components/form-item/src/core.vue.d.ts +27 -6
  30. package/components/input/src/ctx.d.ts +7 -1
  31. package/components/input/src/index.vue.d.ts +31 -0
  32. package/components/input-array/src/form-template.vue.d.ts +27 -6
  33. package/components/input-array/src/index.vue.d.ts +27 -6
  34. package/components/input-collection/index.cjs +5 -3
  35. package/components/input-collection/index.mjs +5 -3
  36. package/components/input-collection/src/core.vue.d.ts +31 -10
  37. package/components/input-collection/src/ctx.d.ts +1 -1
  38. package/components/input-collection/src/index.vue.d.ts +3 -3
  39. package/components/input-link/src/ctx.d.ts +6 -0
  40. package/components/input-link/src/index.vue.d.ts +12 -0
  41. package/components/input-number/src/ctx.d.ts +10 -1
  42. package/components/input-number/src/index.vue.d.ts +55 -0
  43. package/components/input-tag/src/ctx.d.ts +17 -1
  44. package/components/input-tag/src/index.vue.d.ts +103 -3
  45. package/components/select/src/core.vue.d.ts +2 -2
  46. package/components/select/src/ctx.d.ts +1 -1
  47. package/components/select/src/index.vue.d.ts +1 -1
  48. package/components/tables-select/src/index.vue.d.ts +108 -12
  49. package/components/upload/index.cjs +93 -35
  50. package/components/upload/index.css +3 -0
  51. package/components/upload/index.mjs +95 -37
  52. package/components/upload/src/ctx.d.ts +1 -4
  53. package/components/upload/src/file.vue.d.ts +427 -6
  54. package/components/upload/src/index.vue.d.ts +427 -12
  55. package/components/upload-plus/src/index.vue.d.ts +45 -6
  56. package/components/van-cascader/index.cjs +40 -43
  57. package/components/van-cascader/index.mjs +41 -44
  58. package/components/van-cascader/src/ctx.d.ts +62 -5
  59. package/components/van-cascader/src/index.vue.d.ts +825 -1681
  60. package/components/var-datetime-picker/src/index.vue.d.ts +159 -25
  61. package/index.css +3 -0
  62. package/package.json +1 -1
  63. package/shared/element-plus/ctx.d.ts +7 -7
  64. package/shared/element-plus/instances.d.ts +45 -3
  65. package/shared/progress-it/index.cjs +3 -1
@@ -137,12 +137,38 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
137
137
  };
138
138
  ariaLabel: StringConstructor;
139
139
  popperClass: {
140
- readonly type: import("vue").PropType<string>;
140
+ readonly type: import("vue").PropType<string | {
141
+ [x: string]: boolean;
142
+ } | (string | {
143
+ [x: string]: boolean;
144
+ } | (string | {
145
+ [x: string]: boolean;
146
+ } | (string | {
147
+ [x: string]: boolean;
148
+ } | (string | {
149
+ [x: string]: boolean;
150
+ } | (string | {
151
+ [x: string]: boolean;
152
+ } | (string | {
153
+ [x: string]: boolean;
154
+ } | (string | {
155
+ [x: string]: boolean;
156
+ } | (string | {
157
+ [x: string]: boolean;
158
+ } | (string | {
159
+ [x: string]: boolean;
160
+ } | (string | any[] | {
161
+ [x: string]: boolean;
162
+ })[])[])[])[])[])[])[])[])[])[]>;
163
+ readonly required: false;
164
+ readonly validator: ((val: unknown) => boolean) | undefined;
165
+ __epPropKey: true;
166
+ };
167
+ popperStyle: {
168
+ readonly type: import("vue").PropType<import("vue").StyleValue>;
141
169
  readonly required: false;
142
170
  readonly validator: ((val: unknown) => boolean) | undefined;
143
171
  __epPropKey: true;
144
- } & {
145
- readonly default: "";
146
172
  };
147
173
  fallbackPlacements: {
148
174
  readonly type: import("vue").PropType<import("element-plus").Placement[]>;
@@ -196,6 +222,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
196
222
  readonly validator: ((val: unknown) => boolean) | undefined;
197
223
  __epPropKey: true;
198
224
  };
225
+ clearIcon: {
226
+ readonly type: import("vue").PropType<unknown>;
227
+ readonly required: false;
228
+ readonly validator: ((val: unknown) => boolean) | undefined;
229
+ __epPropKey: true;
230
+ };
199
231
  prefixIcon: {
200
232
  readonly type: import("vue").PropType<unknown>;
201
233
  readonly required: false;
@@ -220,13 +252,23 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
220
252
  } & {
221
253
  readonly default: true;
222
254
  };
223
- clearIcon: {
224
- readonly type: import("vue").PropType<unknown>;
255
+ showNow: {
256
+ readonly type: import("vue").PropType<boolean>;
225
257
  readonly required: false;
226
258
  readonly validator: ((val: unknown) => boolean) | undefined;
227
259
  __epPropKey: true;
260
+ } & {
261
+ readonly default: true;
228
262
  };
229
- showNow: {
263
+ showConfirm: {
264
+ readonly type: import("vue").PropType<boolean>;
265
+ readonly required: false;
266
+ readonly validator: ((val: unknown) => boolean) | undefined;
267
+ __epPropKey: true;
268
+ } & {
269
+ readonly default: true;
270
+ };
271
+ showFooter: {
230
272
  readonly type: import("vue").PropType<boolean>;
231
273
  readonly required: false;
232
274
  readonly validator: ((val: unknown) => boolean) | undefined;
@@ -476,12 +518,38 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
476
518
  };
477
519
  ariaLabel: StringConstructor;
478
520
  popperClass: {
479
- readonly type: import("vue").PropType<string>;
521
+ readonly type: import("vue").PropType<string | {
522
+ [x: string]: boolean;
523
+ } | (string | {
524
+ [x: string]: boolean;
525
+ } | (string | {
526
+ [x: string]: boolean;
527
+ } | (string | {
528
+ [x: string]: boolean;
529
+ } | (string | {
530
+ [x: string]: boolean;
531
+ } | (string | {
532
+ [x: string]: boolean;
533
+ } | (string | {
534
+ [x: string]: boolean;
535
+ } | (string | {
536
+ [x: string]: boolean;
537
+ } | (string | {
538
+ [x: string]: boolean;
539
+ } | (string | {
540
+ [x: string]: boolean;
541
+ } | (string | any[] | {
542
+ [x: string]: boolean;
543
+ })[])[])[])[])[])[])[])[])[])[]>;
544
+ readonly required: false;
545
+ readonly validator: ((val: unknown) => boolean) | undefined;
546
+ __epPropKey: true;
547
+ };
548
+ popperStyle: {
549
+ readonly type: import("vue").PropType<import("vue").StyleValue>;
480
550
  readonly required: false;
481
551
  readonly validator: ((val: unknown) => boolean) | undefined;
482
552
  __epPropKey: true;
483
- } & {
484
- readonly default: "";
485
553
  };
486
554
  fallbackPlacements: {
487
555
  readonly type: import("vue").PropType<import("element-plus").Placement[]>;
@@ -535,6 +603,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
535
603
  readonly validator: ((val: unknown) => boolean) | undefined;
536
604
  __epPropKey: true;
537
605
  };
606
+ clearIcon: {
607
+ readonly type: import("vue").PropType<unknown>;
608
+ readonly required: false;
609
+ readonly validator: ((val: unknown) => boolean) | undefined;
610
+ __epPropKey: true;
611
+ };
538
612
  prefixIcon: {
539
613
  readonly type: import("vue").PropType<unknown>;
540
614
  readonly required: false;
@@ -559,13 +633,23 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
559
633
  } & {
560
634
  readonly default: true;
561
635
  };
562
- clearIcon: {
563
- readonly type: import("vue").PropType<unknown>;
636
+ showNow: {
637
+ readonly type: import("vue").PropType<boolean>;
564
638
  readonly required: false;
565
639
  readonly validator: ((val: unknown) => boolean) | undefined;
566
640
  __epPropKey: true;
641
+ } & {
642
+ readonly default: true;
567
643
  };
568
- showNow: {
644
+ showConfirm: {
645
+ readonly type: import("vue").PropType<boolean>;
646
+ readonly required: false;
647
+ readonly validator: ((val: unknown) => boolean) | undefined;
648
+ __epPropKey: true;
649
+ } & {
650
+ readonly default: true;
651
+ };
652
+ showFooter: {
569
653
  readonly type: import("vue").PropType<boolean>;
570
654
  readonly required: false;
571
655
  readonly validator: ((val: unknown) => boolean) | undefined;
@@ -679,7 +763,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
679
763
  inlineMessage: string | boolean;
680
764
  showMessage: boolean;
681
765
  disabled: boolean;
682
- popperClass: string;
683
766
  fallbackPlacements: import("element-plus").Placement[];
684
767
  placement: import("element-plus").Placement;
685
768
  popperOptions: Partial<import("element-plus").Options>;
@@ -689,6 +772,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
689
772
  tabindex: string | number;
690
773
  validateEvent: boolean;
691
774
  showNow: boolean;
775
+ showConfirm: boolean;
776
+ showFooter: boolean;
692
777
  showWeekNumber: boolean;
693
778
  valueOnClear: string | number | boolean | Function;
694
779
  shortcuts: unknown[];
@@ -59,7 +59,7 @@ const props = {
59
59
  * @description 添加记录时的默认值
60
60
  */
61
61
  defaultItemValue: {
62
- type: Object,
62
+ type: [Object, Function],
63
63
  default: () => ({})
64
64
  },
65
65
  dialogFormProps: {
@@ -385,8 +385,9 @@ var _sfc_main = /* @__PURE__ */vue.defineComponent({
385
385
  emit("update:modelValue", data);
386
386
  }
387
387
  function handlePlus(index) {
388
+ const defaultItemValue = _function.isCallable(props.defaultItemValue) ? props.defaultItemValue() : props.defaultItemValue;
388
389
  cuState.index = index;
389
- cuState.data = cloneDeep.cloneDeep(props.defaultItemValue);
390
+ cuState.data = cloneDeep.cloneDeep(defaultItemValue);
390
391
  cuState.type = _enum.CRUD.create;
391
392
  cuState.dialogVisible = true;
392
393
  }
@@ -55,7 +55,7 @@ const props = {
55
55
  * @description 添加记录时的默认值
56
56
  */
57
57
  defaultItemValue: {
58
- type: Object,
58
+ type: [Object, Function],
59
59
  default: () => ({})
60
60
  },
61
61
  dialogFormProps: {
@@ -381,8 +381,9 @@ var _sfc_main = /* @__PURE__ */defineComponent({
381
381
  emit("update:modelValue", data);
382
382
  }
383
383
  function handlePlus(index) {
384
+ const defaultItemValue = isCallable(props.defaultItemValue) ? props.defaultItemValue() : props.defaultItemValue;
384
385
  cuState.index = index;
385
- cuState.data = cloneDeep(props.defaultItemValue);
386
+ cuState.data = cloneDeep(defaultItemValue);
386
387
  cuState.type = CRUD.create;
387
388
  cuState.dialogVisible = true;
388
389
  }
@@ -35,7 +35,7 @@ export declare const props: {
35
35
  * @description 添加记录时的默认值
36
36
  */
37
37
  defaultItemValue: {
38
- type: PropType<NormalObject>;
38
+ type: PropType<NormalObject | (() => NormalObject)>;
39
39
  default: () => {};
40
40
  };
41
41
  dialogFormProps: {