@tmagic/form 1.3.15 → 1.4.0-beta.1

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