@vunk/form 1.1.74 → 1.1.76

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/cascader/src/ctx.d.ts +5 -3
  2. package/components/cascader/src/index.vue.d.ts +11 -4
  3. package/components/checkbox/index.js +18 -8
  4. package/components/checkbox/src/ctx.d.ts +2 -1
  5. package/components/checkbox/src/index.vue.d.ts +9 -9
  6. package/components/color-picker/src/ctx.d.ts +2 -0
  7. package/components/color-picker/src/index.vue.d.ts +5 -0
  8. package/components/date-picker/index.js +1 -1
  9. package/components/date-picker/src/ctx.d.ts +4 -1
  10. package/components/date-picker/src/index.vue.d.ts +13 -4
  11. package/components/download-plus/index.js +33 -46
  12. package/components/download-plus/src/index.vue.d.ts +9 -2
  13. package/components/esri-input-geojson/index.js +72 -96
  14. package/components/esri-input-geojson/src/ctx.d.ts +3 -2
  15. package/components/esri-input-geojson/src/default-view.vue.d.ts +2 -2
  16. package/components/esri-input-geojson/src/index.vue.d.ts +13 -5
  17. package/components/esri-input-geojson/src/viewer.vue.d.ts +4 -4
  18. package/components/geoinput/src/ctx.d.ts +2 -1
  19. package/components/geoinput/src/index.vue.d.ts +4 -2
  20. package/components/geoinput-read/index.js +22 -34
  21. package/components/geoinput-read/src/core.vue.d.ts +7 -3
  22. package/components/geoinput-read/src/ctx.d.ts +3 -2
  23. package/components/geoinput-read/src/index.vue.d.ts +4 -2
  24. package/components/geoinput-update/index.js +52 -71
  25. package/components/geoinput-update/src/ctx.d.ts +3 -2
  26. package/components/geoinput-update/src/index.vue.d.ts +7 -3
  27. package/components/input/index.js +1 -1
  28. package/components/input/src/ctx.d.ts +3 -2
  29. package/components/input/src/index.vue.d.ts +6 -4
  30. package/components/input-link/index.js +17 -27
  31. package/components/input-link/src/ctx.d.ts +8 -3
  32. package/components/input-link/src/index.vue.d.ts +4 -2
  33. package/components/input-number/index.js +1 -1
  34. package/components/input-number/src/ctx.d.ts +2 -1
  35. package/components/input-number/src/index.vue.d.ts +5 -3
  36. package/components/radio/index.js +33 -18
  37. package/components/radio/src/ctx.d.ts +1 -0
  38. package/components/radio/src/index.vue.d.ts +9 -9
  39. package/components/select/index.js +3 -1
  40. package/components/select/src/ctx.d.ts +2 -2
  41. package/components/select/src/index.vue.d.ts +8 -8
  42. package/components/slider/src/ctx.d.ts +1 -0
  43. package/components/slider/src/index.vue.d.ts +3 -0
  44. package/components/switch/index.js +1 -1
  45. package/components/switch/src/ctx.d.ts +1 -4
  46. package/components/switch/src/index.vue.d.ts +3 -17
  47. package/components/upload/index.js +110 -140
  48. package/components/upload-plus/index.js +49 -65
  49. package/components/upload-plus/src/api.js +1 -1
  50. package/components/upload-plus/src/index.vue.d.ts +9 -2
  51. package/components/van-cascader/src/ctx.d.ts +4 -2
  52. package/components/van-cascader/src/index.vue.d.ts +9 -4
  53. package/components/var-datetime-picker/src/const.d.ts +1 -1
  54. package/components/var-datetime-picker/src/ctx.d.ts +1 -1
  55. package/components/var-datetime-picker/src/index.vue.d.ts +3 -3
  56. package/package.json +1 -1
  57. package/shared/element-plus/ctx.d.ts +9 -9
  58. package/shared/element-plus/index.d.ts +1 -0
  59. package/shared/element-plus/index.js +1 -1
  60. package/shared/element-plus/instances.d.ts +6 -3
  61. package/shared/element-plus/version.d.ts +1 -0
  62. package/shared/rules/index.d.ts +1 -1
  63. package/shared/rules/index.js +1 -1
  64. package/shared/upload/index.js +1 -1
@@ -52,6 +52,8 @@ export declare const props: {
52
52
  type: import("vue").PropType<"right">;
53
53
  default: string;
54
54
  };
55
+ emptyValues: ArrayConstructor;
56
+ valueOnClear: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor, BooleanConstructor, FunctionConstructor], unknown, unknown, undefined, boolean>;
55
57
  size: {
56
58
  readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
57
59
  readonly required: false;
@@ -105,10 +107,10 @@ export declare const props: {
105
107
  options: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").CascaderOption[]) | (() => import("element-plus").CascaderOption[]) | ((new (...args: any[]) => import("element-plus").CascaderOption[]) | (() => import("element-plus").CascaderOption[]))[], unknown, unknown, () => import("element-plus").CascaderOption[], boolean>;
106
108
  props: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").CascaderProps) | (() => import("element-plus").CascaderProps) | ((new (...args: any[]) => import("element-plus").CascaderProps) | (() => import("element-plus").CascaderProps))[], unknown, unknown, () => import("element-plus").CascaderProps, boolean>;
107
109
  };
108
- 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<"size", keyof T2> | Extract<"props", 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<"disabled", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"clearable", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"filterable", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"collapseTags", keyof T2> | Extract<"collapseTagsTooltip", keyof T2> | Extract<"maxCollapseTags", keyof T2> | Extract<"teleported", keyof T2> | Extract<"tagType", keyof T2> | Extract<"options", keyof T2> | Extract<"optionsUrl", keyof T2> | Extract<"separator", keyof T2> | Extract<"showAllLevels", keyof T2> | Extract<"debounce", keyof T2> | Extract<"beforeFilter", 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<"size", keyof T2>, KE> | Exclude<Extract<"props", 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<"disabled", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"clearable", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"filterable", keyof T2>, KE> | Exclude<Extract<"popperClass", keyof T2>, KE> | Exclude<Extract<"filterMethod", keyof T2>, KE> | Exclude<Extract<"collapseTags", keyof T2>, KE> | Exclude<Extract<"collapseTagsTooltip", keyof T2>, KE> | Exclude<Extract<"maxCollapseTags", keyof T2>, KE> | Exclude<Extract<"teleported", keyof T2>, KE> | Exclude<Extract<"tagType", keyof T2>, KE> | Exclude<Extract<"options", keyof T2>, KE> | Exclude<Extract<"optionsUrl", keyof T2>, KE> | Exclude<Extract<"separator", keyof T2>, KE> | Exclude<Extract<"showAllLevels", keyof T2>, KE> | Exclude<Extract<"debounce", keyof T2>, KE> | Exclude<Extract<"beforeFilter", 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<"size", keyof T2> | Extract<"props", 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<"disabled", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"clearable", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"filterable", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"collapseTags", keyof T2> | Extract<"collapseTagsTooltip", keyof T2> | Extract<"maxCollapseTags", keyof T2> | Extract<"teleported", keyof T2> | Extract<"tagType", keyof T2> | Extract<"options", keyof T2> | Extract<"optionsUrl", keyof T2> | Extract<"separator", keyof T2> | Extract<"showAllLevels", keyof T2> | Extract<"debounce", keyof T2> | Extract<"beforeFilter", 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<"size", keyof T2> | Extract<"props", 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<"disabled", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"clearable", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"filterable", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"collapseTags", keyof T2> | Extract<"collapseTagsTooltip", keyof T2> | Extract<"maxCollapseTags", keyof T2> | Extract<"teleported", keyof T2> | Extract<"tagType", keyof T2> | Extract<"options", keyof T2> | Extract<"optionsUrl", keyof T2> | Extract<"separator", keyof T2> | Extract<"showAllLevels", keyof T2> | Extract<"debounce", keyof T2> | Extract<"beforeFilter", keyof T2>]: T2[k]; }[P]; }>;
110
+ 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<"size", keyof T2> | Extract<"props", 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<"emptyValues", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"disabled", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"clearable", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"filterable", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"collapseTags", keyof T2> | Extract<"collapseTagsTooltip", keyof T2> | Extract<"maxCollapseTags", keyof T2> | Extract<"teleported", keyof T2> | Extract<"tagType", keyof T2> | Extract<"options", keyof T2> | Extract<"optionsUrl", keyof T2> | Extract<"separator", keyof T2> | Extract<"showAllLevels", keyof T2> | Extract<"debounce", keyof T2> | Extract<"beforeFilter", 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<"size", keyof T2>, KE> | Exclude<Extract<"props", 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<"emptyValues", keyof T2>, KE> | Exclude<Extract<"valueOnClear", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"clearable", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"filterable", keyof T2>, KE> | Exclude<Extract<"popperClass", keyof T2>, KE> | Exclude<Extract<"filterMethod", keyof T2>, KE> | Exclude<Extract<"collapseTags", keyof T2>, KE> | Exclude<Extract<"collapseTagsTooltip", keyof T2>, KE> | Exclude<Extract<"maxCollapseTags", keyof T2>, KE> | Exclude<Extract<"teleported", keyof T2>, KE> | Exclude<Extract<"tagType", keyof T2>, KE> | Exclude<Extract<"options", keyof T2>, KE> | Exclude<Extract<"optionsUrl", keyof T2>, KE> | Exclude<Extract<"separator", keyof T2>, KE> | Exclude<Extract<"showAllLevels", keyof T2>, KE> | Exclude<Extract<"debounce", keyof T2>, KE> | Exclude<Extract<"beforeFilter", 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<"size", keyof T2> | Extract<"props", 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<"emptyValues", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"disabled", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"clearable", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"filterable", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"collapseTags", keyof T2> | Extract<"collapseTagsTooltip", keyof T2> | Extract<"maxCollapseTags", keyof T2> | Extract<"teleported", keyof T2> | Extract<"tagType", keyof T2> | Extract<"options", keyof T2> | Extract<"optionsUrl", keyof T2> | Extract<"separator", keyof T2> | Extract<"showAllLevels", keyof T2> | Extract<"debounce", keyof T2> | Extract<"beforeFilter", 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<"size", keyof T2> | Extract<"props", 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<"emptyValues", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"disabled", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"clearable", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"filterable", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"collapseTags", keyof T2> | Extract<"collapseTagsTooltip", keyof T2> | Extract<"maxCollapseTags", keyof T2> | Extract<"teleported", keyof T2> | Extract<"tagType", keyof T2> | Extract<"options", keyof T2> | Extract<"optionsUrl", keyof T2> | Extract<"separator", keyof T2> | Extract<"showAllLevels", keyof T2> | Extract<"debounce", keyof T2> | Extract<"beforeFilter", keyof T2>]: T2[k]; }[P]; }>;
109
111
  export declare const emits: {
110
- "update:modelValue": (val: import("element-plus").CascaderValue) => boolean;
111
- change: (val: import("element-plus").CascaderValue) => boolean;
112
+ "update:modelValue": (_: import("element-plus").CascaderValue) => boolean;
113
+ change: (_: import("element-plus").CascaderValue) => boolean;
112
114
  focus: (evt: FocusEvent) => boolean;
113
115
  blur: (evt: FocusEvent) => boolean;
114
116
  visibleChange: (val: boolean) => boolean;
@@ -52,6 +52,8 @@ declare const _default: import("vue").DefineComponent<{
52
52
  type: import("vue").PropType<"right">;
53
53
  default: string;
54
54
  };
55
+ emptyValues: ArrayConstructor;
56
+ valueOnClear: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor, BooleanConstructor, FunctionConstructor], unknown, unknown, undefined, boolean>;
55
57
  size: {
56
58
  readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
57
59
  readonly required: false;
@@ -108,6 +110,8 @@ declare const _default: import("vue").DefineComponent<{
108
110
  coreBindProps: import("vue").ComputedRef<{
109
111
  size: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>;
110
112
  props: import("element-plus").CascaderProps;
113
+ emptyValues: unknown[];
114
+ valueOnClear: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor, BooleanConstructor, FunctionConstructor], unknown, unknown>;
111
115
  disabled: boolean;
112
116
  modelValue: import("element-plus/es/components/cascader-panel/src/node").CascaderValue;
113
117
  placeholder: string;
@@ -131,8 +135,8 @@ declare const _default: import("vue").DefineComponent<{
131
135
  readonly: import("vue").ComputedRef<boolean>;
132
136
  options: import("vue").ComputedRef<import("element-plus").CascaderOption[]>;
133
137
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
134
- "update:modelValue": (val: import("element-plus").CascaderValue) => boolean;
135
- change: (val: import("element-plus").CascaderValue) => boolean;
138
+ "update:modelValue": (_: import("element-plus").CascaderValue) => boolean;
139
+ change: (_: import("element-plus").CascaderValue) => boolean;
136
140
  focus: (evt: FocusEvent) => boolean;
137
141
  blur: (evt: FocusEvent) => boolean;
138
142
  visibleChange: (val: boolean) => boolean;
@@ -192,6 +196,8 @@ declare const _default: import("vue").DefineComponent<{
192
196
  type: import("vue").PropType<"right">;
193
197
  default: string;
194
198
  };
199
+ emptyValues: ArrayConstructor;
200
+ valueOnClear: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor, BooleanConstructor, FunctionConstructor], unknown, unknown, undefined, boolean>;
195
201
  size: {
196
202
  readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
197
203
  readonly required: false;
@@ -245,8 +251,8 @@ declare const _default: import("vue").DefineComponent<{
245
251
  options: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").CascaderOption[]) | (() => import("element-plus").CascaderOption[]) | ((new (...args: any[]) => import("element-plus").CascaderOption[]) | (() => import("element-plus").CascaderOption[]))[], unknown, unknown, () => import("element-plus").CascaderOption[], boolean>;
246
252
  props: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").CascaderProps) | (() => import("element-plus").CascaderProps) | ((new (...args: any[]) => import("element-plus").CascaderProps) | (() => import("element-plus").CascaderProps))[], unknown, unknown, () => import("element-plus").CascaderProps, boolean>;
247
253
  }>> & {
248
- onChange?: (val: import("element-plus").CascaderValue) => any;
249
- "onUpdate:modelValue"?: (val: import("element-plus").CascaderValue) => any;
254
+ onChange?: (_: import("element-plus").CascaderValue) => any;
255
+ "onUpdate:modelValue"?: (_: import("element-plus").CascaderValue) => any;
250
256
  onFocus?: (evt: FocusEvent) => any;
251
257
  onBlur?: (evt: FocusEvent) => any;
252
258
  onVisibleChange?: (val: boolean) => any;
@@ -263,6 +269,7 @@ declare const _default: import("vue").DefineComponent<{
263
269
  inline: boolean;
264
270
  readonly: boolean;
265
271
  labelPosition: "right";
272
+ valueOnClear: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor, BooleanConstructor, FunctionConstructor], unknown, unknown>;
266
273
  disabled: boolean;
267
274
  clearable: boolean;
268
275
  validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
@@ -2,7 +2,7 @@ import { _VkfFormItemCtx, VkfFormItem } from '@vunk/form/components/form-item';
2
2
  import { checkboxGroupProps, checkboxGroupEmits, ElCheckbox, ElCheckboxGroup, ElCheckboxButton } from 'element-plus';
3
3
  import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
4
4
  import { defineComponent, computed, resolveComponent, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx, createVNode, mergeProps, toHandlers, createElementBlock, Fragment, renderList, resolveDynamicComponent, createTextVNode, toDisplayString } from 'vue';
5
- import { createCheckboxGroupBindProps, createCheckboxGroupOnEmits } from '@vunk/form/shared/element-plus';
5
+ import { createCheckboxGroupBindProps, createCheckboxGroupOnEmits, isGte2_6_0 } from '@vunk/form/shared/element-plus';
6
6
  import { pickObject } from '@vunk/core/shared/utils-object';
7
7
  import { useComputedReadonly } from '@vunk/form/composables';
8
8
 
@@ -54,20 +54,31 @@ var script = defineComponent({
54
54
  emit
55
55
  }) {
56
56
  const formItemBindProps = _VkfFormItemCtx.createBindProps(props2);
57
- const coreBindProps = createCheckboxGroupBindProps(props2, ["disabled"]);
57
+ const coreBindProps = createCheckboxGroupBindProps(props2, ["disabled", "label"]);
58
58
  const coreOnEmits = createCheckboxGroupOnEmits(emit);
59
59
  const options = computed(() => {
60
60
  return props2.options.filter((item) => item.value !== void 0 && item.value !== null);
61
61
  });
62
62
  !props2.modelValue && props2.defaultModelValue && emit("update:modelValue", props2.defaultModelValue);
63
63
  const readonly = useComputedReadonly(props2);
64
+ const pickRadioProps = (item) => {
65
+ const obj = pickObject(item, {
66
+ excludes: ["label", "value"]
67
+ });
68
+ if (isGte2_6_0) {
69
+ obj.value = item.value;
70
+ } else {
71
+ obj.label = item.value;
72
+ }
73
+ return obj;
74
+ };
64
75
  return {
65
76
  formItemBindProps,
66
77
  coreBindProps,
67
78
  coreOnEmits,
68
79
  options,
69
- pickObject,
70
- readonly
80
+ readonly,
81
+ pickRadioProps
71
82
  };
72
83
  }
73
84
  });
@@ -92,10 +103,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
92
103
  renderList(_ctx.options, (item) => {
93
104
  return openBlock(), createBlock(resolveDynamicComponent(_ctx.type === "button" ? "ElCheckboxButton" : "ElCheckbox"), mergeProps({
94
105
  key: item.value,
95
- label: item.value
96
- }, _ctx.pickObject(item, {
97
- excludes: ["label", "value"]
98
- })), {
106
+ label: item.value,
107
+ ref_for: true
108
+ }, _ctx.pickRadioProps(item)), {
99
109
  default: withCtx(() => [createTextVNode(
100
110
  toDisplayString(item.label ?? item.value),
101
111
  1
@@ -17,6 +17,7 @@ export declare const props: {
17
17
  type: PropType<(string | number)[]>;
18
18
  default: any;
19
19
  };
20
+ ariaLabel: StringConstructor;
20
21
  disabled: BooleanConstructor;
21
22
  min: NumberConstructor;
22
23
  max: NumberConstructor;
@@ -80,7 +81,7 @@ export declare const props: {
80
81
  default: string;
81
82
  };
82
83
  };
83
- 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<"size", keyof T2> | Extract<"type", keyof T2> | Extract<"fill", 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<"disabled", keyof T2> | Extract<"tag", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"options", keyof T2> | Extract<"max", keyof T2> | Extract<"min", keyof T2> | Extract<"textColor", 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<"size", keyof T2>, KE> | Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"fill", 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<"disabled", keyof T2>, KE> | Exclude<Extract<"tag", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"defaultModelValue", keyof T2>, KE> | Exclude<Extract<"options", keyof T2>, KE> | Exclude<Extract<"max", keyof T2>, KE> | Exclude<Extract<"min", keyof T2>, KE> | Exclude<Extract<"textColor", 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<"size", keyof T2> | Extract<"type", keyof T2> | Extract<"fill", 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<"disabled", keyof T2> | Extract<"tag", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"options", keyof T2> | Extract<"max", keyof T2> | Extract<"min", keyof T2> | Extract<"textColor", 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<"size", keyof T2> | Extract<"type", keyof T2> | Extract<"fill", 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<"disabled", keyof T2> | Extract<"tag", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"options", keyof T2> | Extract<"max", keyof T2> | Extract<"min", keyof T2> | Extract<"textColor", keyof T2>]: T2[k]; }[P]; }>;
84
+ 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<"size", keyof T2> | Extract<"type", keyof T2> | Extract<"fill", 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<"disabled", keyof T2> | Extract<"tag", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"options", keyof T2> | Extract<"max", keyof T2> | Extract<"min", keyof T2> | Extract<"textColor", 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<"size", keyof T2>, KE> | Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"fill", 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<"disabled", keyof T2>, KE> | Exclude<Extract<"tag", keyof T2>, KE> | Exclude<Extract<"ariaLabel", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"defaultModelValue", keyof T2>, KE> | Exclude<Extract<"options", keyof T2>, KE> | Exclude<Extract<"max", keyof T2>, KE> | Exclude<Extract<"min", keyof T2>, KE> | Exclude<Extract<"textColor", 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<"size", keyof T2> | Extract<"type", keyof T2> | Extract<"fill", 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<"disabled", keyof T2> | Extract<"tag", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"options", keyof T2> | Extract<"max", keyof T2> | Extract<"min", keyof T2> | Extract<"textColor", 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<"size", keyof T2> | Extract<"type", keyof T2> | Extract<"fill", 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<"disabled", keyof T2> | Extract<"tag", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"options", keyof T2> | Extract<"max", keyof T2> | Extract<"min", keyof T2> | Extract<"textColor", keyof T2>]: T2[k]; }[P]; }>;
84
85
  export declare const emits: {
85
86
  "update:modelValue": (val: import("element-plus").CheckboxGroupValueType) => boolean;
86
87
  change: (val: import("element-plus").CheckboxValueType[]) => boolean;
@@ -1,6 +1,7 @@
1
+ import type { CheckboxProps } from '@vunk/form/shared/types/form';
1
2
  declare const _default: import("vue").DefineComponent<{
2
3
  options: {
3
- type: import("vue").PropType<import("../../../shared/types/form").CheckboxProps[]>;
4
+ type: import("vue").PropType<CheckboxProps[]>;
4
5
  default: () => any[];
5
6
  };
6
7
  type: {
@@ -15,6 +16,7 @@ declare const _default: import("vue").DefineComponent<{
15
16
  type: import("vue").PropType<(string | number)[]>;
16
17
  default: any;
17
18
  };
19
+ ariaLabel: StringConstructor;
18
20
  disabled: BooleanConstructor;
19
21
  min: NumberConstructor;
20
22
  max: NumberConstructor;
@@ -80,10 +82,10 @@ declare const _default: import("vue").DefineComponent<{
80
82
  }, {
81
83
  formItemBindProps: import("vue").ComputedRef<{}>;
82
84
  coreBindProps: import("vue").ComputedRef<{
83
- label: string;
84
85
  size: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>;
85
86
  fill: string;
86
87
  tag: string;
88
+ ariaLabel: string;
87
89
  modelValue: (string | number)[];
88
90
  validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
89
91
  max: number;
@@ -91,18 +93,15 @@ declare const _default: import("vue").DefineComponent<{
91
93
  textColor: string;
92
94
  }>;
93
95
  coreOnEmits: {};
94
- options: import("vue").ComputedRef<import("../../../shared/types/form").CheckboxProps[]>;
95
- pickObject: <T extends import("@vunk/core").NormalObject, EX extends (keyof T)[], KI extends keyof T>(data: T, opts?: {
96
- excludes?: EX;
97
- includes?: KI[];
98
- }) => { [P in EX extends (infer KE)[] ? Exclude<KI, KE> : KI]: T[P]; };
96
+ options: import("vue").ComputedRef<CheckboxProps[]>;
99
97
  readonly: import("vue").ComputedRef<boolean>;
98
+ pickRadioProps: (item: CheckboxProps) => CheckboxProps;
100
99
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
101
100
  "update:modelValue": (val: import("element-plus").CheckboxGroupValueType) => boolean;
102
101
  change: (val: import("element-plus").CheckboxValueType[]) => boolean;
103
102
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
104
103
  options: {
105
- type: import("vue").PropType<import("../../../shared/types/form").CheckboxProps[]>;
104
+ type: import("vue").PropType<CheckboxProps[]>;
106
105
  default: () => any[];
107
106
  };
108
107
  type: {
@@ -117,6 +116,7 @@ declare const _default: import("vue").DefineComponent<{
117
116
  type: import("vue").PropType<(string | number)[]>;
118
117
  default: any;
119
118
  };
119
+ ariaLabel: StringConstructor;
120
120
  disabled: BooleanConstructor;
121
121
  min: NumberConstructor;
122
122
  max: NumberConstructor;
@@ -198,6 +198,6 @@ declare const _default: import("vue").DefineComponent<{
198
198
  modelValue: (string | number)[];
199
199
  validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
200
200
  defaultModelValue: any[];
201
- options: import("../../../shared/types/form").CheckboxProps[];
201
+ options: CheckboxProps[];
202
202
  }, {}>;
203
203
  export default _default;
@@ -1,4 +1,5 @@
1
1
  export declare const props: {
2
+ ariaLabel: StringConstructor;
2
3
  modelValue: StringConstructor;
3
4
  id: StringConstructor;
4
5
  showAlpha: BooleanConstructor;
@@ -13,6 +14,7 @@ export declare const props: {
13
14
  popperClass: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
14
15
  label: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
15
16
  tabindex: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
17
+ teleported: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
16
18
  predefine: {
17
19
  readonly type: import("vue").PropType<string[]>;
18
20
  readonly required: false;
@@ -1,4 +1,5 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
+ ariaLabel: StringConstructor;
2
3
  modelValue: StringConstructor;
3
4
  id: StringConstructor;
4
5
  showAlpha: BooleanConstructor;
@@ -13,6 +14,7 @@ declare const _default: import("vue").DefineComponent<{
13
14
  popperClass: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
14
15
  label: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
15
16
  tabindex: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
17
+ teleported: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
16
18
  predefine: {
17
19
  readonly type: import("vue").PropType<string[]>;
18
20
  readonly required: false;
@@ -79,6 +81,7 @@ declare const _default: import("vue").DefineComponent<{
79
81
  focus: (event: FocusEvent) => boolean;
80
82
  blur: (event: FocusEvent) => boolean;
81
83
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
84
+ ariaLabel: StringConstructor;
82
85
  modelValue: StringConstructor;
83
86
  id: StringConstructor;
84
87
  showAlpha: BooleanConstructor;
@@ -93,6 +96,7 @@ declare const _default: import("vue").DefineComponent<{
93
96
  popperClass: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
94
97
  label: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
95
98
  tabindex: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
99
+ teleported: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
96
100
  predefine: {
97
101
  readonly type: import("vue").PropType<string[]>;
98
102
  readonly required: false;
@@ -169,6 +173,7 @@ declare const _default: import("vue").DefineComponent<{
169
173
  tabindex: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
170
174
  validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
171
175
  popperClass: string;
176
+ teleported: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
172
177
  showAlpha: boolean;
173
178
  }, {}>;
174
179
  export default _default;
@@ -28,7 +28,7 @@ var script = defineComponent({
28
28
  emit
29
29
  }) {
30
30
  const formItemBindProps = _VkfFormItemCtx.createBindProps(props2);
31
- const datePickerBindProps = createDatePickerBindProps(props2, ["type", "readonly"]);
31
+ const datePickerBindProps = createDatePickerBindProps(props2, ["type", "readonly", "label"]);
32
32
  const datePickerOnEmits = createDatePickerOnEmits(emit);
33
33
  const readonly = useComputedReadonly(props2);
34
34
  return {
@@ -55,9 +55,12 @@ export declare const props: {
55
55
  default: string;
56
56
  };
57
57
  type: {
58
- type: PropType<"year" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange">;
58
+ type: PropType<"year" | "years" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange">;
59
59
  default: string;
60
60
  };
61
+ ariaLabel: StringConstructor;
62
+ emptyValues: ArrayConstructor;
63
+ valueOnClear: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor, BooleanConstructor, FunctionConstructor], unknown, unknown, undefined, boolean>;
61
64
  disabledDate: {
62
65
  readonly type: PropType<Function>;
63
66
  readonly required: false;
@@ -53,9 +53,12 @@ declare const _default: import("vue").DefineComponent<{
53
53
  default: string;
54
54
  };
55
55
  type: {
56
- type: import("vue").PropType<"year" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange">;
56
+ type: import("vue").PropType<"year" | "years" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange">;
57
57
  default: string;
58
58
  };
59
+ ariaLabel: StringConstructor;
60
+ emptyValues: ArrayConstructor;
61
+ valueOnClear: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor, BooleanConstructor, FunctionConstructor], unknown, unknown, undefined, boolean>;
59
62
  disabledDate: {
60
63
  readonly type: import("vue").PropType<Function>;
61
64
  readonly required: false;
@@ -141,10 +144,12 @@ declare const _default: import("vue").DefineComponent<{
141
144
  }, {
142
145
  formItemBindProps: import("vue").ComputedRef<{}>;
143
146
  datePickerBindProps: import("vue").ComputedRef<{
144
- label: string;
145
147
  size: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>;
146
148
  name: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown>;
149
+ emptyValues: unknown[];
150
+ valueOnClear: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor, BooleanConstructor, FunctionConstructor], unknown, unknown>;
147
151
  disabled: boolean;
152
+ ariaLabel: string;
148
153
  id: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown>;
149
154
  modelValue: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number | Date | [import("element-plus").DateModelType, import("element-plus").DateModelType]) | (() => import("element-plus").ModelValueType) | ((new (...args: any[]) => string | number | Date | [import("element-plus").DateModelType, import("element-plus").DateModelType]) | (() => import("element-plus").ModelValueType))[], unknown, unknown>;
150
155
  placeholder: string;
@@ -241,9 +246,12 @@ declare const _default: import("vue").DefineComponent<{
241
246
  default: string;
242
247
  };
243
248
  type: {
244
- type: import("vue").PropType<"year" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange">;
249
+ type: import("vue").PropType<"year" | "years" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange">;
245
250
  default: string;
246
251
  };
252
+ ariaLabel: StringConstructor;
253
+ emptyValues: ArrayConstructor;
254
+ valueOnClear: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor, BooleanConstructor, FunctionConstructor], unknown, unknown, undefined, boolean>;
247
255
  disabledDate: {
248
256
  readonly type: import("vue").PropType<Function>;
249
257
  readonly required: false;
@@ -340,13 +348,14 @@ declare const _default: import("vue").DefineComponent<{
340
348
  required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
341
349
  inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
342
350
  showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
343
- type: "year" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange";
351
+ type: "year" | "years" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange";
344
352
  formItemSize: "default" | "small" | "large";
345
353
  formItemSlots: import("../../form-item/src/types").FormItemSlots;
346
354
  inline: boolean;
347
355
  readonly: boolean;
348
356
  labelPosition: "right";
349
357
  name: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown>;
358
+ valueOnClear: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor, BooleanConstructor, FunctionConstructor], unknown, unknown>;
350
359
  disabled: boolean;
351
360
  modelValue: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number | Date | [import("element-plus").DateModelType, import("element-plus").DateModelType]) | (() => import("element-plus").ModelValueType) | ((new (...args: any[]) => string | number | Date | [import("element-plus").DateModelType, import("element-plus").DateModelType]) | (() => import("element-plus").ModelValueType))[], unknown, unknown>;
352
361
  placeholder: string;
@@ -1,5 +1,5 @@
1
1
  import { _VkfFormItemCtx, VkfFormItem } from '@vunk/form/components/form-item';
2
- import { openBlock, createElementBlock, createElementVNode, defineComponent, watchEffect, ref, watch, computed, onBeforeUnmount, resolveComponent, createBlock, mergeProps, withCtx, createVNode, normalizeClass, Fragment, renderList, normalizeStyle, createCommentVNode, createTextVNode } from 'vue';
2
+ import { defineComponent, openBlock, createElementBlock, createElementVNode, watchEffect, ref, watch, computed, onBeforeUnmount, resolveComponent, createBlock, mergeProps, withCtx, createVNode, normalizeClass, Fragment, renderList, normalizeStyle, createCommentVNode, createTextVNode } from 'vue';
3
3
  import { rFile } from '@skzz/platform/api/basic';
4
4
  import { restFetch as restFetch$1 } from '@skzz/platform/shared/fetch/platform';
5
5
  import { ElButtonGroup, ElButton, ElInput, ElMessage } from 'element-plus';
@@ -118,58 +118,45 @@ const downChunk = (params, init) => {
118
118
  });
119
119
  };
120
120
 
121
- /*! Element Plus Icons Vue v2.1.0 */
121
+ /*! Element Plus Icons Vue v2.3.1 */
122
122
 
123
+ var circle_close_filled_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */defineComponent({
124
+ name: "CircleCloseFilled",
125
+ __name: "circle-close-filled",
126
+ setup(__props) {
127
+ return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
128
+ xmlns: "http://www.w3.org/2000/svg",
129
+ viewBox: "0 0 1024 1024"
130
+ }, [createElementVNode("path", {
131
+ fill: "currentColor",
132
+ d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"
133
+ })]));
134
+ }
135
+ });
123
136
 
124
- // unplugin-vue:/plugin-vue/export-helper
125
- var export_helper_default = (sfc, props) => {
126
- let target = sfc.__vccOpts || sfc;
127
- for (let [key, val] of props) target[key] = val;
128
- return target;
129
- };
130
-
131
- // unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/circle-close-filled.vue?vue&type=script&lang.ts
132
- var circle_close_filled_vue_vue_type_script_lang_default = {
133
- name: "CircleCloseFilled"
134
- };
135
- var _hoisted_150 = {
136
- xmlns: "http://www.w3.org/2000/svg",
137
- viewBox: "0 0 1024 1024"
138
- },
139
- _hoisted_250 = /* @__PURE__ */createElementVNode("path", {
140
- fill: "currentColor",
141
- d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"
142
- }, null, -1
143
- /* HOISTED */),
144
- _hoisted_349 = [_hoisted_250];
145
- function _sfc_render50(_ctx, _cache, $props, $setup, $data, $options) {
146
- return openBlock(), createElementBlock("svg", _hoisted_150, _hoisted_349);
147
- }
148
- var circle_close_filled_default = /* @__PURE__ */export_helper_default(circle_close_filled_vue_vue_type_script_lang_default, [["render", _sfc_render50], ["__file", "circle-close-filled.vue"]]);
137
+ // src/components/circle-close-filled.vue
138
+ var circle_close_filled_default = circle_close_filled_vue_vue_type_script_setup_true_lang_default;
139
+ var download_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */defineComponent({
140
+ name: "Download",
141
+ __name: "download",
142
+ setup(__props) {
143
+ return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
144
+ xmlns: "http://www.w3.org/2000/svg",
145
+ viewBox: "0 0 1024 1024"
146
+ }, [createElementVNode("path", {
147
+ fill: "currentColor",
148
+ d: "M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"
149
+ })]));
150
+ }
151
+ });
149
152
 
150
- // unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/download.vue?vue&type=script&lang.ts
151
- var download_vue_vue_type_script_lang_default = {
152
- name: "Download"
153
- };
154
- var _hoisted_191 = {
155
- xmlns: "http://www.w3.org/2000/svg",
156
- viewBox: "0 0 1024 1024"
157
- },
158
- _hoisted_291 = /* @__PURE__ */createElementVNode("path", {
159
- fill: "currentColor",
160
- d: "M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64v450.304z"
161
- }, null, -1
162
- /* HOISTED */),
163
- _hoisted_390 = [_hoisted_291];
164
- function _sfc_render91(_ctx, _cache, $props, $setup, $data, $options) {
165
- return openBlock(), createElementBlock("svg", _hoisted_191, _hoisted_390);
166
- }
167
- var download_default = /* @__PURE__ */export_helper_default(download_vue_vue_type_script_lang_default, [["render", _sfc_render91], ["__file", "download.vue"]]);
153
+ // src/components/download.vue
154
+ var download_default = download_vue_vue_type_script_setup_true_lang_default;
168
155
 
169
156
  var __defProp = Object.defineProperty;
170
157
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
171
158
  var __publicField = (obj, key, value) => {
172
- __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
159
+ __defNormalProp(obj, key + "" , value);
173
160
  return value;
174
161
  };
175
162
  var script = defineComponent({
@@ -102,10 +102,17 @@ declare const _default: import("vue").DefineComponent<{
102
102
  index: number;
103
103
  fileServiceType?: import("../../upload-plus/src/types").FileServiceType;
104
104
  progress: number;
105
- data?: Blob;
105
+ data?: {
106
+ readonly size: number;
107
+ readonly type: string;
108
+ arrayBuffer: () => Promise<ArrayBuffer>;
109
+ slice: (start?: number, end?: number, contentType?: string) => Blob;
110
+ stream: () => ReadableStream<Uint8Array>;
111
+ text: () => Promise<string>;
112
+ };
106
113
  }[]>;
107
114
  fileStatus: import("vue").WritableComputedRef<Status>;
108
- filePrefixIcon: import("vue").ComputedRef<import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
115
+ filePrefixIcon: import("vue").ComputedRef<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>>;
109
116
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
110
117
  'update:fileStatus': any;
111
118
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{