@vunk/form 0.0.1-alpha.19 → 0.0.1-alpha.21

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 (44) hide show
  1. package/components/button/index.d.ts +4 -0
  2. package/components/button/index.js +121 -0
  3. package/components/button/src/ctx.d.ts +82 -0
  4. package/components/button/src/ctx.js +39 -0
  5. package/components/button/src/index.vue.d.ts +222 -0
  6. package/components/button/src/types.d.ts +7 -0
  7. package/components/button/src/types.js +1 -0
  8. package/components/checkbox/src/ctx.d.ts +4 -0
  9. package/components/checkbox/src/index.vue.d.ts +13 -3
  10. package/components/color-picker/src/ctx.d.ts +4 -0
  11. package/components/color-picker/src/index.vue.d.ts +12 -2
  12. package/components/date-picker/src/ctx.d.ts +4 -0
  13. package/components/date-picker/src/index.vue.d.ts +15 -5
  14. package/components/form/index.js +10 -3
  15. package/components/form/src/ctx.d.ts +2 -2
  16. package/components/form/src/index.vue.d.ts +7 -5
  17. package/components/form-item/index.css +4 -0
  18. package/components/form-item/index.js +10 -2
  19. package/components/form-item/src/ctx.d.ts +5 -1
  20. package/components/form-item/src/ctx.js +4 -0
  21. package/components/form-item/src/index.vue.d.ts +9 -0
  22. package/components/form-item-renderer-template-default/index.js +12 -3
  23. package/components/input/src/ctx.d.ts +6 -2
  24. package/components/input/src/index.vue.d.ts +28 -18
  25. package/components/input-number/src/ctx.d.ts +4 -0
  26. package/components/input-number/src/index.vue.d.ts +17 -7
  27. package/components/radio/src/ctx.d.ts +4 -0
  28. package/components/radio/src/index.vue.d.ts +13 -3
  29. package/components/select/src/ctx.d.ts +4 -0
  30. package/components/select/src/index.vue.d.ts +19 -9
  31. package/components/switch/src/ctx.d.ts +4 -0
  32. package/components/switch/src/index.vue.d.ts +19 -9
  33. package/components/upload/src/ctx.d.ts +5 -1
  34. package/components/upload/src/file.vue.d.ts +3 -3
  35. package/components/upload/src/index.vue.d.ts +16 -6
  36. package/index.css +5 -0
  37. package/package.json +1 -1
  38. package/shared/default-renderer-source/index.d.ts +12 -0
  39. package/shared/default-renderer-source/index.js +83 -0
  40. package/shared/element-plus/ctx.d.ts +7 -3
  41. package/shared/element-plus/index.js +4 -2
  42. package/shared/types/basic-source/index.d.ts +1 -0
  43. package/shared/types/renderer-source/button.d.ts +7 -0
  44. package/shared/types/renderer-source/index.d.ts +3 -1
@@ -57,6 +57,10 @@ declare const _default: import("vue").DefineComponent<{
57
57
  type: import("vue").PropType<any>;
58
58
  required: boolean;
59
59
  };
60
+ inline: {
61
+ type: BooleanConstructor;
62
+ default: boolean;
63
+ };
60
64
  }, {
61
65
  formItemBindProps: import("vue").ComputedRef<{
62
66
  required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
@@ -72,21 +76,22 @@ declare const _default: import("vue").DefineComponent<{
72
76
  formItemSize: "default" | "small" | "large";
73
77
  formItemSlots: import("../../form-item/src/types").FormItemSlots | undefined;
74
78
  elRef: any;
79
+ inline: boolean;
75
80
  }>;
76
81
  coreBindProps: import("vue").ComputedRef<{
77
82
  label: string | undefined;
78
83
  size: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never> | undefined;
79
84
  fill: string;
80
85
  name: string | undefined;
81
- modelValue: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor, BooleanConstructor], unknown, unknown>;
82
86
  disabled: boolean;
83
87
  id: string | undefined;
88
+ modelValue: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor, BooleanConstructor], unknown, unknown>;
84
89
  validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
85
90
  textColor: string;
86
91
  }>;
87
92
  coreOnEmits: {
88
- "update:modelValue": (val: string | number | boolean) => void;
89
93
  change: (val: string | number | boolean) => void;
94
+ "update:modelValue": (val: string | number | boolean) => void;
90
95
  };
91
96
  options: import("vue").ComputedRef<import("../../../shared/types/form").RadioProps[]>;
92
97
  pickObject: <T extends import("@vunk/core").NormalObject, EX extends (keyof T)[] | undefined, KI extends keyof T>(data: T, opts?: {
@@ -155,6 +160,10 @@ declare const _default: import("vue").DefineComponent<{
155
160
  type: import("vue").PropType<any>;
156
161
  required: boolean;
157
162
  };
163
+ inline: {
164
+ type: BooleanConstructor;
165
+ default: boolean;
166
+ };
158
167
  }>> & {
159
168
  onChange?: ((val: string | number | boolean) => any) | undefined;
160
169
  "onUpdate:modelValue"?: ((val: string | number | boolean) => any) | undefined;
@@ -167,11 +176,12 @@ declare const _default: import("vue").DefineComponent<{
167
176
  showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
168
177
  formItemSize: "default" | "small" | "large";
169
178
  formItemSlots: import("../../form-item/src/types").FormItemSlots;
179
+ inline: boolean;
170
180
  fill: string;
171
181
  name: string;
172
- modelValue: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor, BooleanConstructor], unknown, unknown>;
173
182
  disabled: boolean;
174
183
  id: string;
184
+ modelValue: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor, BooleanConstructor], unknown, unknown>;
175
185
  validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
176
186
  textColor: string;
177
187
  options: import("../../../shared/types/form").RadioProps[];
@@ -185,6 +185,10 @@ export declare const props: {
185
185
  type: PropType<any>;
186
186
  required: boolean;
187
187
  };
188
+ inline: {
189
+ type: BooleanConstructor;
190
+ default: boolean;
191
+ };
188
192
  };
189
193
  export declare const emits: {
190
194
  'update:modelValue': null;
@@ -182,6 +182,10 @@ declare const _default: import("vue").DefineComponent<{
182
182
  type: import("vue").PropType<any>;
183
183
  required: boolean;
184
184
  };
185
+ inline: {
186
+ type: BooleanConstructor;
187
+ default: boolean;
188
+ };
185
189
  }, {
186
190
  formItemBindProps: import("vue").ComputedRef<{
187
191
  required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
@@ -197,21 +201,22 @@ declare const _default: import("vue").DefineComponent<{
197
201
  formItemSize: "default" | "small" | "large";
198
202
  formItemSlots: import("../../form-item/src/types").FormItemSlots | undefined;
199
203
  elRef: any;
204
+ inline: boolean;
200
205
  }>;
201
206
  selectBindProps: import("vue").ComputedRef<{
202
207
  size: "" | "default" | "small" | "large" | undefined;
203
208
  name: string | undefined;
204
- modelValue: string | number | boolean | Record<string, any> | unknown[] | undefined;
205
209
  disabled: boolean;
206
- id: string | undefined;
210
+ loading: boolean;
207
211
  multiple: boolean;
212
+ id: string | undefined;
213
+ modelValue: string | number | boolean | Record<string, any> | unknown[] | undefined;
208
214
  popperClass: string;
209
215
  clearable: boolean;
210
216
  clearIcon: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
211
217
  placeholder: string | undefined;
212
218
  autocomplete: string;
213
219
  suffixIcon: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
214
- loading: boolean;
215
220
  automaticDropdown: boolean;
216
221
  effect: string;
217
222
  filterable: boolean;
@@ -234,11 +239,11 @@ declare const _default: import("vue").DefineComponent<{
234
239
  tagType: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "success" | "warning" | "info" | "danger", unknown>;
235
240
  }>;
236
241
  selectOnEmits: {
237
- "update:modelValue": (...e: any[]) => void;
242
+ blur: (...e: any[]) => void;
238
243
  change: (...e: any[]) => void;
239
244
  focus: (...e: any[]) => void;
240
- blur: (...e: any[]) => void;
241
245
  clear: (...e: any[]) => void;
246
+ "update:modelValue": (...e: any[]) => void;
242
247
  "visible-change": (...e: any[]) => void;
243
248
  "remove-tag": (...e: any[]) => void;
244
249
  };
@@ -497,11 +502,15 @@ declare const _default: import("vue").DefineComponent<{
497
502
  type: import("vue").PropType<any>;
498
503
  required: boolean;
499
504
  };
505
+ inline: {
506
+ type: BooleanConstructor;
507
+ default: boolean;
508
+ };
500
509
  }>> & {
501
510
  onChange?: ((...args: any[]) => any) | undefined;
502
511
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
503
- onFocus?: ((...args: any[]) => any) | undefined;
504
512
  onBlur?: ((...args: any[]) => any) | undefined;
513
+ onFocus?: ((...args: any[]) => any) | undefined;
505
514
  "onVisible-change"?: ((...args: any[]) => any) | undefined;
506
515
  onClear?: ((...args: any[]) => any) | undefined;
507
516
  "onRemove-tag"?: ((...args: any[]) => any) | undefined;
@@ -512,8 +521,11 @@ declare const _default: import("vue").DefineComponent<{
512
521
  showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
513
522
  formItemSize: "default" | "small" | "large";
514
523
  formItemSlots: import("../../form-item/src/types").FormItemSlots;
515
- modelValue: string | number | boolean | Record<string, any> | unknown[];
524
+ inline: boolean;
516
525
  disabled: boolean;
526
+ loading: boolean;
527
+ multiple: boolean;
528
+ modelValue: string | number | boolean | Record<string, any> | unknown[];
517
529
  options: import("@vunk/core").VueComponentPropsType<import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
518
530
  value: {
519
531
  required: true;
@@ -574,13 +586,11 @@ declare const _default: import("vue").DefineComponent<{
574
586
  disabled: boolean;
575
587
  created: boolean;
576
588
  }>>>[];
577
- multiple: boolean;
578
589
  popperClass: string;
579
590
  clearable: boolean;
580
591
  clearIcon: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
581
592
  autocomplete: string;
582
593
  suffixIcon: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
583
- loading: boolean;
584
594
  automaticDropdown: boolean;
585
595
  effect: string;
586
596
  filterable: boolean;
@@ -79,6 +79,10 @@ export declare const props: {
79
79
  type: import("vue").PropType<any>;
80
80
  required: boolean;
81
81
  };
82
+ inline: {
83
+ type: BooleanConstructor;
84
+ default: boolean;
85
+ };
82
86
  };
83
87
  export declare const emits: {
84
88
  "update:modelValue": (val: string | number | boolean) => boolean;
@@ -79,6 +79,10 @@ declare const _default: import("vue").DefineComponent<{
79
79
  type: import("vue").PropType<any>;
80
80
  required: boolean;
81
81
  };
82
+ inline: {
83
+ type: BooleanConstructor;
84
+ default: boolean;
85
+ };
82
86
  }, {
83
87
  formItemBindProps: import("vue").ComputedRef<{
84
88
  required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
@@ -94,17 +98,19 @@ declare const _default: import("vue").DefineComponent<{
94
98
  formItemSize: "default" | "small" | "large";
95
99
  formItemSlots: import("../../form-item/src/types").FormItemSlots | undefined;
96
100
  elRef: any;
101
+ inline: boolean;
97
102
  }>;
98
103
  switchBindProps: import("vue").ComputedRef<{
99
104
  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"> | undefined;
100
105
  name: string;
101
106
  value: import("element-plus/es/utils").EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
102
107
  disabled: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
108
+ loading: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
109
+ width: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
110
+ borderColor: string;
103
111
  id: string | undefined;
104
112
  tabindex: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
105
113
  validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
106
- width: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
107
- borderColor: string;
108
114
  inlinePrompt: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
109
115
  activeIcon: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
110
116
  inactiveIcon: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
@@ -114,13 +120,12 @@ declare const _default: import("vue").DefineComponent<{
114
120
  inactiveColor: string;
115
121
  activeValue: import("element-plus/es/utils").EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
116
122
  inactiveValue: import("element-plus/es/utils").EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
117
- loading: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
118
123
  beforeChange: (() => boolean | Promise<boolean>) | undefined;
119
124
  }>;
120
125
  switchOnEmits: {
121
- "update:modelValue": (val: string | number | boolean) => void;
122
- change: (val: string | number | boolean) => void;
123
126
  input: (val: string | number | boolean) => void;
127
+ change: (val: string | number | boolean) => void;
128
+ "update:modelValue": (val: string | number | boolean) => void;
124
129
  };
125
130
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
126
131
  "update:modelValue": (val: string | number | boolean) => boolean;
@@ -207,6 +212,10 @@ declare const _default: import("vue").DefineComponent<{
207
212
  type: import("vue").PropType<any>;
208
213
  required: boolean;
209
214
  };
215
+ inline: {
216
+ type: BooleanConstructor;
217
+ default: boolean;
218
+ };
210
219
  }>> & {
211
220
  onChange?: ((val: string | number | boolean) => any) | undefined;
212
221
  "onUpdate:modelValue"?: ((val: string | number | boolean) => any) | undefined;
@@ -218,14 +227,16 @@ declare const _default: import("vue").DefineComponent<{
218
227
  showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
219
228
  formItemSize: "default" | "small" | "large";
220
229
  formItemSlots: import("../../form-item/src/types").FormItemSlots;
230
+ inline: boolean;
221
231
  name: string;
222
232
  value: import("element-plus/es/utils").EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
223
- modelValue: boolean;
224
233
  disabled: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
225
- validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
226
- defaultModelValue: boolean;
234
+ loading: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
227
235
  width: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
228
236
  borderColor: string;
237
+ modelValue: boolean;
238
+ validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
239
+ defaultModelValue: boolean;
229
240
  inlinePrompt: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
230
241
  activeIcon: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
231
242
  inactiveIcon: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
@@ -235,6 +246,5 @@ declare const _default: import("vue").DefineComponent<{
235
246
  inactiveColor: string;
236
247
  activeValue: import("element-plus/es/utils").EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
237
248
  inactiveValue: import("element-plus/es/utils").EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
238
- loading: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
239
249
  }>;
240
250
  export default _default;
@@ -104,7 +104,7 @@ export declare const props: {
104
104
  type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "select", boolean>;
105
105
  fileList: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").UploadUserFile[]) | (() => import("element-plus").UploadUserFile[]) | ((new (...args: any[]) => import("element-plus").UploadUserFile[]) | (() => import("element-plus").UploadUserFile[]))[], unknown, unknown, () => [], boolean>;
106
106
  autoUpload: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
107
- listType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "picture" | "text" | "picture-card", unknown, "text", boolean>;
107
+ listType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "text" | "picture" | "picture-card", unknown, "text", boolean>;
108
108
  httpRequest: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").UploadRequestHandler) | (() => import("element-plus").UploadRequestHandler) | {
109
109
  (): import("element-plus").UploadRequestHandler;
110
110
  new (): any;
@@ -153,6 +153,10 @@ export declare const props: {
153
153
  type: import("vue").PropType<any>;
154
154
  required: boolean;
155
155
  };
156
+ inline: {
157
+ type: BooleanConstructor;
158
+ default: boolean;
159
+ };
156
160
  };
157
161
  export declare const emits: {
158
162
  'update:fileList': null;
@@ -2,7 +2,7 @@ import { UploadFile } from 'element-plus';
2
2
  import { PropType } from 'vue';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  listType: {
5
- type: PropType<"picture" | "text" | "picture-card">;
5
+ type: PropType<"text" | "picture" | "picture-card">;
6
6
  default: string;
7
7
  };
8
8
  file: {
@@ -65,7 +65,7 @@ declare const _default: import("vue").DefineComponent<{
65
65
  remove: (e: UploadFile) => UploadFile;
66
66
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
67
67
  listType: {
68
- type: PropType<"picture" | "text" | "picture-card">;
68
+ type: PropType<"text" | "picture" | "picture-card">;
69
69
  default: string;
70
70
  };
71
71
  file: {
@@ -89,7 +89,7 @@ declare const _default: import("vue").DefineComponent<{
89
89
  }, {
90
90
  disabled: boolean;
91
91
  file: UploadFile;
92
- listType: "picture" | "text" | "picture-card";
92
+ listType: "text" | "picture" | "picture-card";
93
93
  onPreview: (arg: UploadFile) => any;
94
94
  preview: boolean;
95
95
  }>;
@@ -105,7 +105,7 @@ declare const _default: import("vue").DefineComponent<{
105
105
  type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "select", boolean>;
106
106
  fileList: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").UploadUserFile[]) | (() => import("element-plus").UploadUserFile[]) | ((new (...args: any[]) => import("element-plus").UploadUserFile[]) | (() => import("element-plus").UploadUserFile[]))[], unknown, unknown, () => [], boolean>;
107
107
  autoUpload: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
108
- listType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "picture" | "text" | "picture-card", unknown, "text", boolean>;
108
+ listType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "text" | "picture" | "picture-card", unknown, "text", boolean>;
109
109
  httpRequest: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").UploadRequestHandler) | (() => import("element-plus").UploadRequestHandler) | {
110
110
  (): import("element-plus").UploadRequestHandler;
111
111
  new (): any;
@@ -154,6 +154,10 @@ declare const _default: import("vue").DefineComponent<{
154
154
  type: import("vue").PropType<any>;
155
155
  required: boolean;
156
156
  };
157
+ inline: {
158
+ type: BooleanConstructor;
159
+ default: boolean;
160
+ };
157
161
  }, {
158
162
  formItemBindProps: import("vue").ComputedRef<{
159
163
  required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
@@ -169,6 +173,7 @@ declare const _default: import("vue").DefineComponent<{
169
173
  formItemSize: "default" | "small" | "large";
170
174
  formItemSlots: import("../../form-item/src/types").FormItemSlots | undefined;
171
175
  elRef: any;
176
+ inline: boolean;
172
177
  }>;
173
178
  pickObject: <T extends import("@vunk/core").NormalObject, EX extends (keyof T)[] | undefined, KI extends keyof T>(data: T, opts?: {
174
179
  excludes?: EX | undefined;
@@ -179,11 +184,11 @@ declare const _default: import("vue").DefineComponent<{
179
184
  name: string;
180
185
  data: Record<string, any>;
181
186
  disabled: boolean;
182
- onChange: (uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
183
187
  drag: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
184
188
  multiple: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
189
+ onChange: (uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
185
190
  onRemove: ((uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) & ((e: UploadFile) => any);
186
- listType: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "picture" | "text" | "picture-card", unknown>;
191
+ listType: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "text" | "picture" | "picture-card", unknown>;
187
192
  onPreview: (uploadFile: UploadFile) => void;
188
193
  method: string;
189
194
  beforeUpload: (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>;
@@ -314,7 +319,7 @@ declare const _default: import("vue").DefineComponent<{
314
319
  type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "select", boolean>;
315
320
  fileList: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").UploadUserFile[]) | (() => import("element-plus").UploadUserFile[]) | ((new (...args: any[]) => import("element-plus").UploadUserFile[]) | (() => import("element-plus").UploadUserFile[]))[], unknown, unknown, () => [], boolean>;
316
321
  autoUpload: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
317
- listType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "picture" | "text" | "picture-card", unknown, "text", boolean>;
322
+ listType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "text" | "picture" | "picture-card", unknown, "text", boolean>;
318
323
  httpRequest: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").UploadRequestHandler) | (() => import("element-plus").UploadRequestHandler) | {
319
324
  (): import("element-plus").UploadRequestHandler;
320
325
  new (): any;
@@ -363,6 +368,10 @@ declare const _default: import("vue").DefineComponent<{
363
368
  type: import("vue").PropType<any>;
364
369
  required: boolean;
365
370
  };
371
+ inline: {
372
+ type: BooleanConstructor;
373
+ default: boolean;
374
+ };
366
375
  }>> & {
367
376
  onRemove?: ((e: UploadFile) => any) | undefined;
368
377
  "onUpdate:fileList"?: ((...args: any[]) => any) | undefined;
@@ -374,14 +383,15 @@ declare const _default: import("vue").DefineComponent<{
374
383
  showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
375
384
  formItemSize: "default" | "small" | "large";
376
385
  formItemSlots: import("../../form-item/src/types").FormItemSlots;
386
+ inline: boolean;
377
387
  name: string;
378
388
  data: Record<string, any>;
379
389
  disabled: boolean;
380
- onChange: (uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
381
390
  drag: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
382
391
  multiple: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
392
+ onChange: (uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
383
393
  onRemove: (uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
384
- listType: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "picture" | "text" | "picture-card", unknown>;
394
+ listType: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "text" | "picture" | "picture-card", unknown>;
385
395
  onPreview: (uploadFile: UploadFile) => void;
386
396
  preview: string;
387
397
  method: string;
package/index.css CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ .vkf-form-item--inline{
3
+ display: inline-flex;
4
+ }
5
+
6
+
2
7
  .vkf-flex {
3
8
  display: flex;
4
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vunk/form",
3
- "version": "0.0.1-alpha.19",
3
+ "version": "0.0.1-alpha.21",
4
4
  "description": "",
5
5
  "main": "index.esm.js",
6
6
  "scripts": {
@@ -0,0 +1,12 @@
1
+ import { VkfCheckboxSource, VkfColorPickerSource, VkfDatePickerSource, VkfInputNumberSource, VkfInputSource, VkfRadioSource, VkfSelectSource, VkfSwitchSource, VkfUploadSource } from '@vunk/form/shared/types';
2
+ export declare const defaultRendererSource: {
3
+ VkfInput: VkfInputSource;
4
+ VkfInputNumber: VkfInputNumberSource;
5
+ VkfSwitch: VkfSwitchSource;
6
+ VkfRadio: VkfRadioSource;
7
+ VkfSelect: VkfSelectSource;
8
+ VkfCheckbox: VkfCheckboxSource;
9
+ VkfColorPicker: VkfColorPickerSource;
10
+ VkfDatePicker: VkfDatePickerSource;
11
+ VkfUpload: VkfUploadSource;
12
+ };
@@ -0,0 +1,83 @@
1
+ const defaultRendererSource = {
2
+ VkfInput: {
3
+ templateType: "VkfInput",
4
+ prop: "",
5
+ label: ""
6
+ },
7
+ VkfInputNumber: {
8
+ templateType: "VkfInputNumber",
9
+ prop: "",
10
+ label: ""
11
+ },
12
+ VkfSwitch: {
13
+ templateType: "VkfSwitch",
14
+ prop: "",
15
+ label: ""
16
+ },
17
+ VkfRadio: {
18
+ templateType: "VkfRadio",
19
+ prop: "",
20
+ label: "\u6027\u522B",
21
+ options: [
22
+ {
23
+ value: 0,
24
+ label: "\u5973"
25
+ },
26
+ {
27
+ value: 1,
28
+ label: "\u7537"
29
+ }
30
+ ]
31
+ },
32
+ VkfSelect: {
33
+ templateType: "VkfSelect",
34
+ prop: "",
35
+ label: "",
36
+ multiple: false,
37
+ options: [
38
+ {
39
+ value: 0,
40
+ label: "\u5973"
41
+ },
42
+ {
43
+ value: 1,
44
+ label: "\u7537"
45
+ }
46
+ ]
47
+ },
48
+ VkfCheckbox: {
49
+ templateType: "VkfCheckbox",
50
+ prop: "",
51
+ options: [
52
+ {
53
+ value: 0,
54
+ label: "\u5973"
55
+ },
56
+ {
57
+ value: 1,
58
+ label: "\u7537"
59
+ }
60
+ ]
61
+ },
62
+ VkfColorPicker: {
63
+ templateType: "VkfColorPicker",
64
+ prop: "color",
65
+ label: "\u989C\u8272",
66
+ showAlpha: true
67
+ },
68
+ VkfDatePicker: {
69
+ templateType: "VkfDatePicker",
70
+ prop: "",
71
+ label: "",
72
+ type: "date",
73
+ valueFormat: "YYYY-MM-DD",
74
+ format: "YYYY\u5E74MM\u6708DD\u65E5"
75
+ },
76
+ VkfUpload: {
77
+ templateType: "VkfUpload",
78
+ prop: "",
79
+ label: ""
80
+ }
81
+ };
82
+
83
+ export { defaultRendererSource };
@@ -13,18 +13,18 @@ export declare const createInputOnEmits: <T2 extends import("@vunk/core").AnyFun
13
13
  compositionupdate: (...e: import("@vunk/core").RestParameters<T2>) => void;
14
14
  compositionend: (...e: import("@vunk/core").RestParameters<T2>) => void;
15
15
  }[P]; };
16
- export declare const createFormBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"inline", keyof T2> | Extract<"disabled", keyof T2> | Extract<"model", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"labelSuffix", keyof T2> | Extract<"statusIcon", keyof T2> | Extract<"validateOnRuleChange", keyof T2> | Extract<"hideRequiredAsterisk", keyof T2> | Extract<"scrollToError", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"rules", keyof T2>, KE> | Exclude<Extract<"inlineMessage", keyof T2>, KE> | Exclude<Extract<"showMessage", keyof T2>, KE> | Exclude<Extract<"inline", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"model", keyof T2>, KE> | Exclude<Extract<"labelPosition", keyof T2>, KE> | Exclude<Extract<"labelSuffix", keyof T2>, KE> | Exclude<Extract<"statusIcon", keyof T2>, KE> | Exclude<Extract<"validateOnRuleChange", keyof T2>, KE> | Exclude<Extract<"hideRequiredAsterisk", keyof T2>, KE> | Exclude<Extract<"scrollToError", keyof T2>, KE> : Extract<"size", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"inline", keyof T2> | Extract<"disabled", keyof T2> | Extract<"model", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"labelSuffix", keyof T2> | Extract<"statusIcon", keyof T2> | Extract<"validateOnRuleChange", keyof T2> | Extract<"hideRequiredAsterisk", keyof T2> | Extract<"scrollToError", keyof T2>]: { [k in Extract<"size", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"inline", keyof T2> | Extract<"disabled", keyof T2> | Extract<"model", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"labelSuffix", keyof T2> | Extract<"statusIcon", keyof T2> | Extract<"validateOnRuleChange", keyof T2> | Extract<"hideRequiredAsterisk", keyof T2> | Extract<"scrollToError", keyof T2>]: T2[k]; }[P]; }>;
16
+ export declare const createFormBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"inline", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"model", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"labelSuffix", keyof T2> | Extract<"statusIcon", keyof T2> | Extract<"validateOnRuleChange", keyof T2> | Extract<"hideRequiredAsterisk", keyof T2> | Extract<"scrollToError", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"inline", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"rules", keyof T2>, KE> | Exclude<Extract<"inlineMessage", keyof T2>, KE> | Exclude<Extract<"showMessage", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"model", keyof T2>, KE> | Exclude<Extract<"labelPosition", keyof T2>, KE> | Exclude<Extract<"labelSuffix", keyof T2>, KE> | Exclude<Extract<"statusIcon", keyof T2>, KE> | Exclude<Extract<"validateOnRuleChange", keyof T2>, KE> | Exclude<Extract<"hideRequiredAsterisk", keyof T2>, KE> | Exclude<Extract<"scrollToError", keyof T2>, KE> : Extract<"size", keyof T2> | Extract<"inline", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"model", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"labelSuffix", keyof T2> | Extract<"statusIcon", keyof T2> | Extract<"validateOnRuleChange", keyof T2> | Extract<"hideRequiredAsterisk", keyof T2> | Extract<"scrollToError", keyof T2>]: { [k in Extract<"size", keyof T2> | Extract<"inline", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"model", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"labelSuffix", keyof T2> | Extract<"statusIcon", keyof T2> | Extract<"validateOnRuleChange", keyof T2> | Extract<"hideRequiredAsterisk", keyof T2> | Extract<"scrollToError", keyof T2>]: T2[k]; }[P]; }>;
17
17
  export declare const createFormOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends "validate"[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"validate", KE> : "validate"]: {
18
18
  validate: (...e: import("@vunk/core").RestParameters<T2>) => void;
19
19
  }[P]; };
20
20
  export declare const createFormItemBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"required", keyof T2> | Extract<"size", 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>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"required", keyof T2>, KE> | Exclude<Extract<"size", 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> : Extract<"required", keyof T2> | Extract<"size", 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>]: { [k in Extract<"required", keyof T2> | Extract<"size", 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>]: T2[k]; }[P]; }>;
21
- export declare const createSwitchBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"width", keyof T2> | Extract<"borderColor", keyof T2> | Extract<"disabled", keyof T2> | Extract<"value", keyof T2> | Extract<"id", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inlinePrompt", keyof T2> | Extract<"activeIcon", keyof T2> | Extract<"inactiveIcon", keyof T2> | Extract<"activeText", keyof T2> | Extract<"inactiveText", keyof T2> | Extract<"activeColor", keyof T2> | Extract<"inactiveColor", keyof T2> | Extract<"activeValue", keyof T2> | Extract<"inactiveValue", keyof T2> | Extract<"loading", keyof T2> | Extract<"beforeChange", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"width", keyof T2>, KE> | Exclude<Extract<"borderColor", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"value", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"tabindex", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"inlinePrompt", keyof T2>, KE> | Exclude<Extract<"activeIcon", keyof T2>, KE> | Exclude<Extract<"inactiveIcon", keyof T2>, KE> | Exclude<Extract<"activeText", keyof T2>, KE> | Exclude<Extract<"inactiveText", keyof T2>, KE> | Exclude<Extract<"activeColor", keyof T2>, KE> | Exclude<Extract<"inactiveColor", keyof T2>, KE> | Exclude<Extract<"activeValue", keyof T2>, KE> | Exclude<Extract<"inactiveValue", keyof T2>, KE> | Exclude<Extract<"loading", keyof T2>, KE> | Exclude<Extract<"beforeChange", keyof T2>, KE> : Extract<"size", keyof T2> | Extract<"width", keyof T2> | Extract<"borderColor", keyof T2> | Extract<"disabled", keyof T2> | Extract<"value", keyof T2> | Extract<"id", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inlinePrompt", keyof T2> | Extract<"activeIcon", keyof T2> | Extract<"inactiveIcon", keyof T2> | Extract<"activeText", keyof T2> | Extract<"inactiveText", keyof T2> | Extract<"activeColor", keyof T2> | Extract<"inactiveColor", keyof T2> | Extract<"activeValue", keyof T2> | Extract<"inactiveValue", keyof T2> | Extract<"loading", keyof T2> | Extract<"beforeChange", keyof T2>]: { [k in Extract<"size", keyof T2> | Extract<"width", keyof T2> | Extract<"borderColor", keyof T2> | Extract<"disabled", keyof T2> | Extract<"value", keyof T2> | Extract<"id", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inlinePrompt", keyof T2> | Extract<"activeIcon", keyof T2> | Extract<"inactiveIcon", keyof T2> | Extract<"activeText", keyof T2> | Extract<"inactiveText", keyof T2> | Extract<"activeColor", keyof T2> | Extract<"inactiveColor", keyof T2> | Extract<"activeValue", keyof T2> | Extract<"inactiveValue", keyof T2> | Extract<"loading", keyof T2> | Extract<"beforeChange", keyof T2>]: T2[k]; }[P]; }>;
21
+ export declare const createSwitchBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"width", keyof T2> | Extract<"borderColor", keyof T2> | Extract<"disabled", keyof T2> | Extract<"value", keyof T2> | Extract<"id", keyof T2> | Extract<"name", keyof T2> | Extract<"loading", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inlinePrompt", keyof T2> | Extract<"activeIcon", keyof T2> | Extract<"inactiveIcon", keyof T2> | Extract<"activeText", keyof T2> | Extract<"inactiveText", keyof T2> | Extract<"activeColor", keyof T2> | Extract<"inactiveColor", keyof T2> | Extract<"activeValue", keyof T2> | Extract<"inactiveValue", keyof T2> | Extract<"beforeChange", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"width", keyof T2>, KE> | Exclude<Extract<"borderColor", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"value", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"loading", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"tabindex", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"inlinePrompt", keyof T2>, KE> | Exclude<Extract<"activeIcon", keyof T2>, KE> | Exclude<Extract<"inactiveIcon", keyof T2>, KE> | Exclude<Extract<"activeText", keyof T2>, KE> | Exclude<Extract<"inactiveText", keyof T2>, KE> | Exclude<Extract<"activeColor", keyof T2>, KE> | Exclude<Extract<"inactiveColor", keyof T2>, KE> | Exclude<Extract<"activeValue", keyof T2>, KE> | Exclude<Extract<"inactiveValue", keyof T2>, KE> | Exclude<Extract<"beforeChange", keyof T2>, KE> : Extract<"size", keyof T2> | Extract<"width", keyof T2> | Extract<"borderColor", keyof T2> | Extract<"disabled", keyof T2> | Extract<"value", keyof T2> | Extract<"id", keyof T2> | Extract<"name", keyof T2> | Extract<"loading", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inlinePrompt", keyof T2> | Extract<"activeIcon", keyof T2> | Extract<"inactiveIcon", keyof T2> | Extract<"activeText", keyof T2> | Extract<"inactiveText", keyof T2> | Extract<"activeColor", keyof T2> | Extract<"inactiveColor", keyof T2> | Extract<"activeValue", keyof T2> | Extract<"inactiveValue", keyof T2> | Extract<"beforeChange", keyof T2>]: { [k in Extract<"size", keyof T2> | Extract<"width", keyof T2> | Extract<"borderColor", keyof T2> | Extract<"disabled", keyof T2> | Extract<"value", keyof T2> | Extract<"id", keyof T2> | Extract<"name", keyof T2> | Extract<"loading", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inlinePrompt", keyof T2> | Extract<"activeIcon", keyof T2> | Extract<"inactiveIcon", keyof T2> | Extract<"activeText", keyof T2> | Extract<"inactiveText", keyof T2> | Extract<"activeColor", keyof T2> | Extract<"inactiveColor", keyof T2> | Extract<"activeValue", keyof T2> | Extract<"inactiveValue", keyof T2> | Extract<"beforeChange", keyof T2>]: T2[k]; }[P]; }>;
22
22
  export declare const createSwitchOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("input" | "change" | "update:modelValue")[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"input", KE> | Exclude<"change", KE> | Exclude<"update:modelValue", KE> : "input" | "change" | "update:modelValue"]: {
23
23
  "update:modelValue": (...e: import("@vunk/core").RestParameters<T2>) => void;
24
24
  change: (...e: import("@vunk/core").RestParameters<T2>) => void;
25
25
  input: (...e: import("@vunk/core").RestParameters<T2>) => void;
26
26
  }[P]; };
27
- export declare const createSelectBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"multiple", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"loading", keyof T2> | Extract<"automaticDropdown", keyof T2> | Extract<"effect", keyof T2> | Extract<"filterable", keyof T2> | Extract<"allowCreate", keyof T2> | Extract<"remote", keyof T2> | Extract<"loadingText", keyof T2> | Extract<"noMatchText", keyof T2> | Extract<"noDataText", keyof T2> | Extract<"remoteMethod", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"multipleLimit", keyof T2> | Extract<"defaultFirstOption", keyof T2> | Extract<"reserveKeyword", keyof T2> | Extract<"valueKey", keyof T2> | Extract<"collapseTags", keyof T2> | Extract<"collapseTagsTooltip", keyof T2> | Extract<"teleported", keyof T2> | Extract<"persistent", keyof T2> | Extract<"fitInputWidth", keyof T2> | Extract<"tagType", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"multiple", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"popperClass", keyof T2>, KE> | Exclude<Extract<"clearable", keyof T2>, KE> | Exclude<Extract<"clearIcon", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"autocomplete", keyof T2>, KE> | Exclude<Extract<"suffixIcon", keyof T2>, KE> | Exclude<Extract<"loading", keyof T2>, KE> | Exclude<Extract<"automaticDropdown", keyof T2>, KE> | Exclude<Extract<"effect", keyof T2>, KE> | Exclude<Extract<"filterable", keyof T2>, KE> | Exclude<Extract<"allowCreate", keyof T2>, KE> | Exclude<Extract<"remote", keyof T2>, KE> | Exclude<Extract<"loadingText", keyof T2>, KE> | Exclude<Extract<"noMatchText", keyof T2>, KE> | Exclude<Extract<"noDataText", keyof T2>, KE> | Exclude<Extract<"remoteMethod", keyof T2>, KE> | Exclude<Extract<"filterMethod", keyof T2>, KE> | Exclude<Extract<"multipleLimit", keyof T2>, KE> | Exclude<Extract<"defaultFirstOption", keyof T2>, KE> | Exclude<Extract<"reserveKeyword", keyof T2>, KE> | Exclude<Extract<"valueKey", keyof T2>, KE> | Exclude<Extract<"collapseTags", keyof T2>, KE> | Exclude<Extract<"collapseTagsTooltip", keyof T2>, KE> | Exclude<Extract<"teleported", keyof T2>, KE> | Exclude<Extract<"persistent", keyof T2>, KE> | Exclude<Extract<"fitInputWidth", keyof T2>, KE> | Exclude<Extract<"tagType", keyof T2>, KE> : Extract<"size", keyof T2> | Extract<"multiple", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"loading", keyof T2> | Extract<"automaticDropdown", keyof T2> | Extract<"effect", keyof T2> | Extract<"filterable", keyof T2> | Extract<"allowCreate", keyof T2> | Extract<"remote", keyof T2> | Extract<"loadingText", keyof T2> | Extract<"noMatchText", keyof T2> | Extract<"noDataText", keyof T2> | Extract<"remoteMethod", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"multipleLimit", keyof T2> | Extract<"defaultFirstOption", keyof T2> | Extract<"reserveKeyword", keyof T2> | Extract<"valueKey", keyof T2> | Extract<"collapseTags", keyof T2> | Extract<"collapseTagsTooltip", keyof T2> | Extract<"teleported", keyof T2> | Extract<"persistent", keyof T2> | Extract<"fitInputWidth", keyof T2> | Extract<"tagType", keyof T2>]: { [k in Extract<"size", keyof T2> | Extract<"multiple", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"loading", keyof T2> | Extract<"automaticDropdown", keyof T2> | Extract<"effect", keyof T2> | Extract<"filterable", keyof T2> | Extract<"allowCreate", keyof T2> | Extract<"remote", keyof T2> | Extract<"loadingText", keyof T2> | Extract<"noMatchText", keyof T2> | Extract<"noDataText", keyof T2> | Extract<"remoteMethod", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"multipleLimit", keyof T2> | Extract<"defaultFirstOption", keyof T2> | Extract<"reserveKeyword", keyof T2> | Extract<"valueKey", keyof T2> | Extract<"collapseTags", keyof T2> | Extract<"collapseTagsTooltip", keyof T2> | Extract<"teleported", keyof T2> | Extract<"persistent", keyof T2> | Extract<"fitInputWidth", keyof T2> | Extract<"tagType", keyof T2>]: T2[k]; }[P]; }>;
27
+ export declare const createSelectBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"multiple", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"name", keyof T2> | Extract<"loading", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"automaticDropdown", keyof T2> | Extract<"effect", keyof T2> | Extract<"filterable", keyof T2> | Extract<"allowCreate", keyof T2> | Extract<"remote", keyof T2> | Extract<"loadingText", keyof T2> | Extract<"noMatchText", keyof T2> | Extract<"noDataText", keyof T2> | Extract<"remoteMethod", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"multipleLimit", keyof T2> | Extract<"defaultFirstOption", keyof T2> | Extract<"reserveKeyword", keyof T2> | Extract<"valueKey", keyof T2> | Extract<"collapseTags", keyof T2> | Extract<"collapseTagsTooltip", keyof T2> | Extract<"teleported", keyof T2> | Extract<"persistent", keyof T2> | Extract<"fitInputWidth", keyof T2> | Extract<"tagType", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"multiple", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"loading", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"popperClass", keyof T2>, KE> | Exclude<Extract<"clearable", keyof T2>, KE> | Exclude<Extract<"clearIcon", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"autocomplete", keyof T2>, KE> | Exclude<Extract<"suffixIcon", keyof T2>, KE> | Exclude<Extract<"automaticDropdown", keyof T2>, KE> | Exclude<Extract<"effect", keyof T2>, KE> | Exclude<Extract<"filterable", keyof T2>, KE> | Exclude<Extract<"allowCreate", keyof T2>, KE> | Exclude<Extract<"remote", keyof T2>, KE> | Exclude<Extract<"loadingText", keyof T2>, KE> | Exclude<Extract<"noMatchText", keyof T2>, KE> | Exclude<Extract<"noDataText", keyof T2>, KE> | Exclude<Extract<"remoteMethod", keyof T2>, KE> | Exclude<Extract<"filterMethod", keyof T2>, KE> | Exclude<Extract<"multipleLimit", keyof T2>, KE> | Exclude<Extract<"defaultFirstOption", keyof T2>, KE> | Exclude<Extract<"reserveKeyword", keyof T2>, KE> | Exclude<Extract<"valueKey", keyof T2>, KE> | Exclude<Extract<"collapseTags", keyof T2>, KE> | Exclude<Extract<"collapseTagsTooltip", keyof T2>, KE> | Exclude<Extract<"teleported", keyof T2>, KE> | Exclude<Extract<"persistent", keyof T2>, KE> | Exclude<Extract<"fitInputWidth", keyof T2>, KE> | Exclude<Extract<"tagType", keyof T2>, KE> : Extract<"size", keyof T2> | Extract<"multiple", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"name", keyof T2> | Extract<"loading", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"automaticDropdown", keyof T2> | Extract<"effect", keyof T2> | Extract<"filterable", keyof T2> | Extract<"allowCreate", keyof T2> | Extract<"remote", keyof T2> | Extract<"loadingText", keyof T2> | Extract<"noMatchText", keyof T2> | Extract<"noDataText", keyof T2> | Extract<"remoteMethod", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"multipleLimit", keyof T2> | Extract<"defaultFirstOption", keyof T2> | Extract<"reserveKeyword", keyof T2> | Extract<"valueKey", keyof T2> | Extract<"collapseTags", keyof T2> | Extract<"collapseTagsTooltip", keyof T2> | Extract<"teleported", keyof T2> | Extract<"persistent", keyof T2> | Extract<"fitInputWidth", keyof T2> | Extract<"tagType", keyof T2>]: { [k in Extract<"size", keyof T2> | Extract<"multiple", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"name", keyof T2> | Extract<"loading", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"automaticDropdown", keyof T2> | Extract<"effect", keyof T2> | Extract<"filterable", keyof T2> | Extract<"allowCreate", keyof T2> | Extract<"remote", keyof T2> | Extract<"loadingText", keyof T2> | Extract<"noMatchText", keyof T2> | Extract<"noDataText", keyof T2> | Extract<"remoteMethod", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"multipleLimit", keyof T2> | Extract<"defaultFirstOption", keyof T2> | Extract<"reserveKeyword", keyof T2> | Extract<"valueKey", keyof T2> | Extract<"collapseTags", keyof T2> | Extract<"collapseTagsTooltip", keyof T2> | Extract<"teleported", keyof T2> | Extract<"persistent", keyof T2> | Extract<"fitInputWidth", keyof T2> | Extract<"tagType", keyof T2>]: T2[k]; }[P]; }>;
28
28
  export declare const createSelectOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("blur" | "change" | "focus" | "clear" | "update:modelValue" | "visible-change" | "remove-tag")[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"blur", KE> | Exclude<"change", KE> | Exclude<"focus", KE> | Exclude<"clear", KE> | Exclude<"update:modelValue", KE> | Exclude<"visible-change", KE> | Exclude<"remove-tag", KE> : "blur" | "change" | "focus" | "clear" | "update:modelValue" | "visible-change" | "remove-tag"]: {
29
29
  'update:modelValue': (...e: import("@vunk/core").RestParameters<T2>) => void;
30
30
  change: (...e: import("@vunk/core").RestParameters<T2>) => void;
@@ -70,3 +70,7 @@ export declare const createColorPickerOnEmits: <T2 extends import("@vunk/core").
70
70
  'active-change': (...e: import("@vunk/core").RestParameters<T2>) => void;
71
71
  'update:modelValue': (...e: import("@vunk/core").RestParameters<T2>) => void;
72
72
  }[P]; };
73
+ export declare const createButtonBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"link", keyof T2> | Extract<"circle", keyof T2> | Extract<"text", keyof T2> | Extract<"color", keyof T2> | Extract<"icon", keyof T2> | Extract<"round", keyof T2> | Extract<"dark", keyof T2> | Extract<"disabled", keyof T2> | Extract<"nativeType", keyof T2> | Extract<"loading", keyof T2> | Extract<"loadingIcon", keyof T2> | Extract<"plain", keyof T2> | Extract<"bg", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"autoInsertSpace", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"link", keyof T2>, KE> | Exclude<Extract<"circle", keyof T2>, KE> | Exclude<Extract<"text", keyof T2>, KE> | Exclude<Extract<"color", keyof T2>, KE> | Exclude<Extract<"icon", keyof T2>, KE> | Exclude<Extract<"round", keyof T2>, KE> | Exclude<Extract<"dark", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"nativeType", keyof T2>, KE> | Exclude<Extract<"loading", keyof T2>, KE> | Exclude<Extract<"loadingIcon", keyof T2>, KE> | Exclude<Extract<"plain", keyof T2>, KE> | Exclude<Extract<"bg", keyof T2>, KE> | Exclude<Extract<"autofocus", keyof T2>, KE> | Exclude<Extract<"autoInsertSpace", keyof T2>, KE> : Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"link", keyof T2> | Extract<"circle", keyof T2> | Extract<"text", keyof T2> | Extract<"color", keyof T2> | Extract<"icon", keyof T2> | Extract<"round", keyof T2> | Extract<"dark", keyof T2> | Extract<"disabled", keyof T2> | Extract<"nativeType", keyof T2> | Extract<"loading", keyof T2> | Extract<"loadingIcon", keyof T2> | Extract<"plain", keyof T2> | Extract<"bg", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"autoInsertSpace", keyof T2>]: { [k in Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"link", keyof T2> | Extract<"circle", keyof T2> | Extract<"text", keyof T2> | Extract<"color", keyof T2> | Extract<"icon", keyof T2> | Extract<"round", keyof T2> | Extract<"dark", keyof T2> | Extract<"disabled", keyof T2> | Extract<"nativeType", keyof T2> | Extract<"loading", keyof T2> | Extract<"loadingIcon", keyof T2> | Extract<"plain", keyof T2> | Extract<"bg", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"autoInsertSpace", keyof T2>]: T2[k]; }[P]; }>;
74
+ export declare const createButtonOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends "click"[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"click", KE> : "click"]: {
75
+ click: (...e: import("@vunk/core").RestParameters<T2>) => void;
76
+ }[P]; };