@tmagic/form 1.3.16 → 1.4.0-beta.2

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 (50) hide show
  1. package/dist/style.css +3 -8
  2. package/dist/tmagic-form.js +132 -123
  3. package/dist/tmagic-form.umd.cjs +131 -122
  4. package/package.json +12 -11
  5. package/src/FormBox.vue +48 -34
  6. package/src/containers/Container.vue +3 -3
  7. package/src/containers/Fieldset.vue +2 -2
  8. package/src/fields/Cascader.vue +1 -0
  9. package/src/fields/Checkbox.vue +2 -2
  10. package/src/fields/CheckboxGroup.vue +1 -6
  11. package/src/fields/RadioGroup.vue +3 -7
  12. package/src/schema.ts +6 -2
  13. package/src/theme/form-box.scss +3 -8
  14. package/types/Form.vue.d.ts +12 -12
  15. package/types/FormBox.vue.d.ts +195 -244
  16. package/types/FormDialog.vue.d.ts +191 -241
  17. package/types/FormDrawer.vue.d.ts +192 -242
  18. package/types/containers/Col.vue.d.ts +3 -3
  19. package/types/containers/Container.vue.d.ts +12 -12
  20. package/types/containers/Fieldset.vue.d.ts +11 -11
  21. package/types/containers/GroupList.vue.d.ts +3 -3
  22. package/types/containers/GroupListItem.vue.d.ts +3 -3
  23. package/types/containers/Panel.vue.d.ts +8 -8
  24. package/types/containers/Row.vue.d.ts +3 -3
  25. package/types/containers/Step.vue.d.ts +11 -11
  26. package/types/containers/Table.vue.d.ts +11 -11
  27. package/types/containers/Tabs.vue.d.ts +11 -11
  28. package/types/fields/Cascader.vue.d.ts +3 -3
  29. package/types/fields/Checkbox.vue.d.ts +3 -3
  30. package/types/fields/CheckboxGroup.vue.d.ts +3 -3
  31. package/types/fields/ColorPicker.vue.d.ts +3 -3
  32. package/types/fields/Date.vue.d.ts +3 -3
  33. package/types/fields/DateTime.vue.d.ts +3 -3
  34. package/types/fields/Daterange.vue.d.ts +3 -3
  35. package/types/fields/Display.vue.d.ts +2 -2
  36. package/types/fields/DynamicField.vue.d.ts +3 -3
  37. package/types/fields/Hidden.vue.d.ts +2 -2
  38. package/types/fields/Link.vue.d.ts +3 -3
  39. package/types/fields/Number.vue.d.ts +3 -3
  40. package/types/fields/NumberRange.vue.d.ts +3 -3
  41. package/types/fields/RadioGroup.vue.d.ts +3 -3
  42. package/types/fields/Select.vue.d.ts +3 -3
  43. package/types/fields/SelectOptionGroups.vue.d.ts +3 -3
  44. package/types/fields/SelectOptions.vue.d.ts +3 -3
  45. package/types/fields/Switch.vue.d.ts +3 -3
  46. package/types/fields/Text.vue.d.ts +3 -3
  47. package/types/fields/Textarea.vue.d.ts +3 -3
  48. package/types/fields/Time.vue.d.ts +3 -3
  49. package/types/fields/Timerange.vue.d.ts +3 -3
  50. package/types/schema.d.ts +6 -2
@@ -1,9 +1,10 @@
1
1
  import type { FormConfig } from './schema';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
3
3
  config?: FormConfig | undefined;
4
4
  values?: Object | undefined;
5
5
  parentValues?: Object | undefined;
6
- width?: string | number | undefined;
6
+ width?: number | undefined;
7
+ height?: number | undefined;
7
8
  labelWidth?: string | undefined;
8
9
  disabled?: boolean | undefined;
9
10
  size?: "large" | "default" | "small" | undefined;
@@ -15,233 +16,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
15
16
  values: () => {};
16
17
  confirmText: string;
17
18
  }>, {
18
- form: import("vue").Ref<({
19
- $: import("vue").ComponentInternalInstance;
20
- $data: {};
21
- $props: Partial<{
22
- config: FormConfig;
23
- initValues: Record<string, any>;
24
- lastValues: Record<string, any>;
25
- isCompare: boolean;
26
- keyProp: string;
27
- parentValues: Record<string, any>;
28
- labelWidth: string;
29
- disabled: boolean;
30
- stepActive: string | number;
31
- height: string;
32
- inline: boolean;
33
- labelPosition: string;
34
- }> & Omit<{
35
- readonly config: FormConfig;
36
- readonly initValues: Record<string, any>;
37
- readonly lastValues: Record<string, any>;
38
- readonly isCompare: boolean;
39
- readonly keyProp: string;
40
- readonly parentValues: Record<string, any>;
41
- readonly labelWidth: string;
42
- readonly disabled: boolean;
43
- readonly stepActive: string | number;
44
- readonly height: string;
45
- readonly inline: boolean;
46
- readonly labelPosition: string;
47
- readonly popperClass?: string | undefined;
48
- readonly size?: "large" | "default" | "small" | undefined;
49
- readonly extendState?: ((state: import("./schema").FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
50
- onChange?: ((...args: any[]) => any) | undefined;
51
- onError?: ((...args: any[]) => any) | undefined;
52
- "onField-input"?: ((...args: any[]) => any) | undefined;
53
- "onField-change"?: ((...args: any[]) => any) | undefined;
54
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
55
- config: {
56
- type: import("vue").PropType<FormConfig>;
57
- required: true;
58
- default: () => never[];
59
- };
60
- popperClass: {
61
- type: import("vue").PropType<string>;
62
- };
63
- initValues: {
64
- type: import("vue").PropType<Record<string, any>>;
65
- required: true;
66
- default: () => {};
67
- };
68
- lastValues: {
69
- type: import("vue").PropType<Record<string, any>>;
70
- default: () => {};
71
- };
72
- isCompare: {
73
- type: import("vue").PropType<boolean>;
74
- default: boolean;
75
- };
76
- keyProp: {
77
- type: import("vue").PropType<string>;
78
- default: string;
79
- };
80
- parentValues: {
81
- type: import("vue").PropType<Record<string, any>>;
82
- default: () => {};
83
- };
84
- labelWidth: {
85
- type: import("vue").PropType<string>;
86
- default: string;
87
- };
88
- disabled: {
89
- type: import("vue").PropType<boolean>;
90
- default: boolean;
91
- };
92
- stepActive: {
93
- type: import("vue").PropType<string | number>;
94
- default: number;
95
- };
96
- size: {
97
- type: import("vue").PropType<"large" | "default" | "small">;
98
- };
99
- height: {
100
- type: import("vue").PropType<string>;
101
- default: string;
102
- };
103
- inline: {
104
- type: import("vue").PropType<boolean>;
105
- default: boolean;
106
- };
107
- labelPosition: {
108
- type: import("vue").PropType<string>;
109
- default: string;
110
- };
111
- extendState: {
112
- type: import("vue").PropType<(state: import("./schema").FormState) => Record<string, any> | Promise<Record<string, any>>>;
113
- };
114
- }>> & {
115
- onChange?: ((...args: any[]) => any) | undefined;
116
- onError?: ((...args: any[]) => any) | undefined;
117
- "onField-input"?: ((...args: any[]) => any) | undefined;
118
- "onField-change"?: ((...args: any[]) => any) | undefined;
119
- }, "config" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "labelWidth" | "disabled" | "stepActive" | "height" | "inline" | "labelPosition">;
120
- $attrs: {
121
- [x: string]: unknown;
122
- };
123
- $refs: {
124
- [x: string]: unknown;
125
- };
126
- $slots: Readonly<{
127
- [name: string]: import("vue").Slot<any> | undefined;
128
- }>;
129
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
130
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
131
- $emit: ((event: "change", ...args: any[]) => void) & ((event: "error", ...args: any[]) => void) & ((event: "field-input", ...args: any[]) => void) & ((event: "field-change", ...args: any[]) => void);
132
- $el: any;
133
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
134
- config: {
135
- type: import("vue").PropType<FormConfig>;
136
- required: true;
137
- default: () => never[];
138
- };
139
- popperClass: {
140
- type: import("vue").PropType<string>;
141
- };
142
- initValues: {
143
- type: import("vue").PropType<Record<string, any>>;
144
- required: true;
145
- default: () => {};
146
- };
147
- lastValues: {
148
- type: import("vue").PropType<Record<string, any>>;
149
- default: () => {};
150
- };
151
- isCompare: {
152
- type: import("vue").PropType<boolean>;
153
- default: boolean;
154
- };
155
- keyProp: {
156
- type: import("vue").PropType<string>;
157
- default: string;
158
- };
159
- parentValues: {
160
- type: import("vue").PropType<Record<string, any>>;
161
- default: () => {};
162
- };
163
- labelWidth: {
164
- type: import("vue").PropType<string>;
165
- default: string;
166
- };
167
- disabled: {
168
- type: import("vue").PropType<boolean>;
169
- default: boolean;
170
- };
171
- stepActive: {
172
- type: import("vue").PropType<string | number>;
173
- default: number;
174
- };
175
- size: {
176
- type: import("vue").PropType<"large" | "default" | "small">;
177
- };
178
- height: {
179
- type: import("vue").PropType<string>;
180
- default: string;
181
- };
182
- inline: {
183
- type: import("vue").PropType<boolean>;
184
- default: boolean;
185
- };
186
- labelPosition: {
187
- type: import("vue").PropType<string>;
188
- default: string;
189
- };
190
- extendState: {
191
- type: import("vue").PropType<(state: import("./schema").FormState) => Record<string, any> | Promise<Record<string, any>>>;
192
- };
193
- }>> & {
194
- onChange?: ((...args: any[]) => any) | undefined;
195
- onError?: ((...args: any[]) => any) | undefined;
196
- "onField-input"?: ((...args: any[]) => any) | undefined;
197
- "onField-change"?: ((...args: any[]) => any) | undefined;
198
- }, {
199
- values: import("vue").Ref<import("./schema").FormValue>;
200
- lastValuesProcessed: import("vue").Ref<import("./schema").FormValue>;
201
- formState: import("./schema").FormState;
202
- initialized: import("vue").Ref<boolean>;
203
- changeHandler: () => void;
204
- resetForm: () => any;
205
- submitForm: (native?: boolean | undefined) => Promise<any>;
206
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
207
- change: (...args: any[]) => void;
208
- error: (...args: any[]) => void;
209
- "field-input": (...args: any[]) => void;
210
- "field-change": (...args: any[]) => void;
211
- }, string, {
212
- config: FormConfig;
213
- initValues: Record<string, any>;
214
- lastValues: Record<string, any>;
215
- isCompare: boolean;
216
- keyProp: string;
217
- parentValues: Record<string, any>;
218
- labelWidth: string;
219
- disabled: boolean;
220
- stepActive: string | number;
221
- height: string;
222
- inline: boolean;
223
- labelPosition: string;
224
- }, {}, string, {}> & {
225
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
226
- created?: ((() => void) | (() => void)[]) | undefined;
227
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
228
- mounted?: ((() => void) | (() => void)[]) | undefined;
229
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
230
- updated?: ((() => void) | (() => void)[]) | undefined;
231
- activated?: ((() => void) | (() => void)[]) | undefined;
232
- deactivated?: ((() => void) | (() => void)[]) | undefined;
233
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
234
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
235
- destroyed?: ((() => void) | (() => void)[]) | undefined;
236
- unmounted?: ((() => void) | (() => void)[]) | undefined;
237
- renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
238
- renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
239
- errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
240
- };
241
- $forceUpdate: () => void;
242
- $nextTick: typeof import("vue").nextTick;
243
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
244
- } & Readonly<import("vue").ExtractPropTypes<{
19
+ form: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
245
20
  config: {
246
21
  type: import("vue").PropType<FormConfig>;
247
22
  required: true;
@@ -279,6 +54,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
279
54
  type: import("vue").PropType<boolean>;
280
55
  default: boolean;
281
56
  };
57
+ height: {
58
+ type: import("vue").PropType<string>;
59
+ default: string;
60
+ };
282
61
  stepActive: {
283
62
  type: import("vue").PropType<string | number>;
284
63
  default: number;
@@ -286,10 +65,84 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
286
65
  size: {
287
66
  type: import("vue").PropType<"large" | "default" | "small">;
288
67
  };
68
+ inline: {
69
+ type: import("vue").PropType<boolean>;
70
+ default: boolean;
71
+ };
72
+ labelPosition: {
73
+ type: import("vue").PropType<string>;
74
+ default: string;
75
+ };
76
+ extendState: {
77
+ type: import("vue").PropType<(state: import("./schema").FormState) => Record<string, any> | Promise<Record<string, any>>>;
78
+ };
79
+ }>> & {
80
+ onChange?: ((...args: any[]) => any) | undefined;
81
+ onError?: ((...args: any[]) => any) | undefined;
82
+ "onField-input"?: ((...args: any[]) => any) | undefined;
83
+ "onField-change"?: ((...args: any[]) => any) | undefined;
84
+ }, {
85
+ values: import("vue").Ref<import("./schema").FormValue>;
86
+ lastValuesProcessed: import("vue").Ref<import("./schema").FormValue>;
87
+ formState: import("./schema").FormState;
88
+ initialized: import("vue").Ref<boolean>;
89
+ changeHandler: () => void;
90
+ resetForm: () => any;
91
+ submitForm: (native?: boolean | undefined) => Promise<any>;
92
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
93
+ change: (...args: any[]) => void;
94
+ error: (...args: any[]) => void;
95
+ "field-input": (...args: any[]) => void;
96
+ "field-change": (...args: any[]) => void;
97
+ }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
98
+ config: {
99
+ type: import("vue").PropType<FormConfig>;
100
+ required: true;
101
+ default: () => never[];
102
+ };
103
+ popperClass: {
104
+ type: import("vue").PropType<string>;
105
+ };
106
+ initValues: {
107
+ type: import("vue").PropType<Record<string, any>>;
108
+ required: true;
109
+ default: () => {};
110
+ };
111
+ lastValues: {
112
+ type: import("vue").PropType<Record<string, any>>;
113
+ default: () => {};
114
+ };
115
+ isCompare: {
116
+ type: import("vue").PropType<boolean>;
117
+ default: boolean;
118
+ };
119
+ keyProp: {
120
+ type: import("vue").PropType<string>;
121
+ default: string;
122
+ };
123
+ parentValues: {
124
+ type: import("vue").PropType<Record<string, any>>;
125
+ default: () => {};
126
+ };
127
+ labelWidth: {
128
+ type: import("vue").PropType<string>;
129
+ default: string;
130
+ };
131
+ disabled: {
132
+ type: import("vue").PropType<boolean>;
133
+ default: boolean;
134
+ };
289
135
  height: {
290
136
  type: import("vue").PropType<string>;
291
137
  default: string;
292
138
  };
139
+ stepActive: {
140
+ type: import("vue").PropType<string | number>;
141
+ default: number;
142
+ };
143
+ size: {
144
+ type: import("vue").PropType<"large" | "default" | "small">;
145
+ };
293
146
  inline: {
294
147
  type: import("vue").PropType<boolean>;
295
148
  default: boolean;
@@ -306,7 +159,92 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
306
159
  onError?: ((...args: any[]) => any) | undefined;
307
160
  "onField-input"?: ((...args: any[]) => any) | undefined;
308
161
  "onField-change"?: ((...args: any[]) => any) | undefined;
309
- } & import("vue").ShallowUnwrapRef<{
162
+ }, {
163
+ config: FormConfig;
164
+ initValues: Record<string, any>;
165
+ lastValues: Record<string, any>;
166
+ isCompare: boolean;
167
+ keyProp: string;
168
+ parentValues: Record<string, any>;
169
+ labelWidth: string;
170
+ disabled: boolean;
171
+ height: string;
172
+ stepActive: string | number;
173
+ inline: boolean;
174
+ labelPosition: string;
175
+ }, true, {}, {}, {
176
+ P: {};
177
+ B: {};
178
+ D: {};
179
+ C: {};
180
+ M: {};
181
+ Defaults: {};
182
+ }, Readonly<import("vue").ExtractPropTypes<{
183
+ config: {
184
+ type: import("vue").PropType<FormConfig>;
185
+ required: true;
186
+ default: () => never[];
187
+ };
188
+ popperClass: {
189
+ type: import("vue").PropType<string>;
190
+ };
191
+ initValues: {
192
+ type: import("vue").PropType<Record<string, any>>;
193
+ required: true;
194
+ default: () => {};
195
+ };
196
+ lastValues: {
197
+ type: import("vue").PropType<Record<string, any>>;
198
+ default: () => {};
199
+ };
200
+ isCompare: {
201
+ type: import("vue").PropType<boolean>;
202
+ default: boolean;
203
+ };
204
+ keyProp: {
205
+ type: import("vue").PropType<string>;
206
+ default: string;
207
+ };
208
+ parentValues: {
209
+ type: import("vue").PropType<Record<string, any>>;
210
+ default: () => {};
211
+ };
212
+ labelWidth: {
213
+ type: import("vue").PropType<string>;
214
+ default: string;
215
+ };
216
+ disabled: {
217
+ type: import("vue").PropType<boolean>;
218
+ default: boolean;
219
+ };
220
+ height: {
221
+ type: import("vue").PropType<string>;
222
+ default: string;
223
+ };
224
+ stepActive: {
225
+ type: import("vue").PropType<string | number>;
226
+ default: number;
227
+ };
228
+ size: {
229
+ type: import("vue").PropType<"large" | "default" | "small">;
230
+ };
231
+ inline: {
232
+ type: import("vue").PropType<boolean>;
233
+ default: boolean;
234
+ };
235
+ labelPosition: {
236
+ type: import("vue").PropType<string>;
237
+ default: string;
238
+ };
239
+ extendState: {
240
+ type: import("vue").PropType<(state: import("./schema").FormState) => Record<string, any> | Promise<Record<string, any>>>;
241
+ };
242
+ }>> & {
243
+ onChange?: ((...args: any[]) => any) | undefined;
244
+ onError?: ((...args: any[]) => any) | undefined;
245
+ "onField-input"?: ((...args: any[]) => any) | undefined;
246
+ "onField-change"?: ((...args: any[]) => any) | undefined;
247
+ }, {
310
248
  values: import("vue").Ref<import("./schema").FormValue>;
311
249
  lastValuesProcessed: import("vue").Ref<import("./schema").FormValue>;
312
250
  formState: import("./schema").FormState;
@@ -314,20 +252,33 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
314
252
  changeHandler: () => void;
315
253
  resetForm: () => any;
316
254
  submitForm: (native?: boolean | undefined) => Promise<any>;
317
- }> & {} & import("vue").ComponentCustomProperties & {}) | undefined>;
255
+ }, {}, {}, {}, {
256
+ config: FormConfig;
257
+ initValues: Record<string, any>;
258
+ lastValues: Record<string, any>;
259
+ isCompare: boolean;
260
+ keyProp: string;
261
+ parentValues: Record<string, any>;
262
+ labelWidth: string;
263
+ disabled: boolean;
264
+ height: string;
265
+ stepActive: string | number;
266
+ inline: boolean;
267
+ labelPosition: string;
268
+ }> | undefined>;
318
269
  saveFetch: import("vue").Ref<boolean>;
319
- bodyHeight: import("vue").Ref<number>;
320
270
  show: () => void;
321
271
  hide: () => void;
322
272
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
323
273
  change: (...args: any[]) => void;
324
274
  error: (...args: any[]) => void;
325
275
  submit: (...args: any[]) => void;
326
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
276
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
327
277
  config?: FormConfig | undefined;
328
278
  values?: Object | undefined;
329
279
  parentValues?: Object | undefined;
330
- width?: string | number | undefined;
280
+ width?: number | undefined;
281
+ height?: number | undefined;
331
282
  labelWidth?: string | undefined;
332
283
  disabled?: boolean | undefined;
333
284
  size?: "large" | "default" | "small" | undefined;
@@ -340,8 +291,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
340
291
  confirmText: string;
341
292
  }>>> & {
342
293
  onChange?: ((...args: any[]) => any) | undefined;
343
- onSubmit?: ((...args: any[]) => any) | undefined;
344
294
  onError?: ((...args: any[]) => any) | undefined;
295
+ onSubmit?: ((...args: any[]) => any) | undefined;
345
296
  }, {
346
297
  config: FormConfig;
347
298
  values: Object;
@@ -352,15 +303,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
352
303
  footer?(_: {}): any;
353
304
  }>;
354
305
  export default _default;
355
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
356
- type __VLS_TypePropsToRuntimeProps<T> = {
357
- [K in keyof T]-?: {} extends Pick<T, K> ? {
358
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
359
- } : {
360
- type: import('vue').PropType<T[K]>;
361
- required: true;
362
- };
363
- };
364
306
  type __VLS_WithDefaults<P, D> = {
365
307
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
366
308
  default: D[K];
@@ -374,3 +316,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
374
316
  $slots: S;
375
317
  };
376
318
  };
319
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
320
+ type __VLS_TypePropsToOption<T> = {
321
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
322
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
323
+ } : {
324
+ type: import('vue').PropType<T[K]>;
325
+ required: true;
326
+ };
327
+ };