@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 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;
@@ -15,233 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
15
15
  values: () => {};
16
16
  confirmText: string;
17
17
  }>, {
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<{
18
+ form: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
245
19
  config: {
246
20
  type: import("vue").PropType<FormConfig>;
247
21
  required: true;
@@ -279,6 +53,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
279
53
  type: import("vue").PropType<boolean>;
280
54
  default: boolean;
281
55
  };
56
+ height: {
57
+ type: import("vue").PropType<string>;
58
+ default: string;
59
+ };
282
60
  stepActive: {
283
61
  type: import("vue").PropType<string | number>;
284
62
  default: number;
@@ -286,10 +64,84 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
286
64
  size: {
287
65
  type: import("vue").PropType<"large" | "default" | "small">;
288
66
  };
67
+ inline: {
68
+ type: import("vue").PropType<boolean>;
69
+ default: boolean;
70
+ };
71
+ labelPosition: {
72
+ type: import("vue").PropType<string>;
73
+ default: string;
74
+ };
75
+ extendState: {
76
+ type: import("vue").PropType<(state: import("./schema").FormState) => Record<string, any> | Promise<Record<string, any>>>;
77
+ };
78
+ }>> & {
79
+ onChange?: ((...args: any[]) => any) | undefined;
80
+ onError?: ((...args: any[]) => any) | undefined;
81
+ "onField-input"?: ((...args: any[]) => any) | undefined;
82
+ "onField-change"?: ((...args: any[]) => any) | undefined;
83
+ }, {
84
+ values: import("vue").Ref<import("./schema").FormValue>;
85
+ lastValuesProcessed: import("vue").Ref<import("./schema").FormValue>;
86
+ formState: import("./schema").FormState;
87
+ initialized: import("vue").Ref<boolean>;
88
+ changeHandler: () => void;
89
+ resetForm: () => any;
90
+ submitForm: (native?: boolean | undefined) => Promise<any>;
91
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
92
+ change: (...args: any[]) => void;
93
+ error: (...args: any[]) => void;
94
+ "field-input": (...args: any[]) => void;
95
+ "field-change": (...args: any[]) => void;
96
+ }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
97
+ config: {
98
+ type: import("vue").PropType<FormConfig>;
99
+ required: true;
100
+ default: () => never[];
101
+ };
102
+ popperClass: {
103
+ type: import("vue").PropType<string>;
104
+ };
105
+ initValues: {
106
+ type: import("vue").PropType<Record<string, any>>;
107
+ required: true;
108
+ default: () => {};
109
+ };
110
+ lastValues: {
111
+ type: import("vue").PropType<Record<string, any>>;
112
+ default: () => {};
113
+ };
114
+ isCompare: {
115
+ type: import("vue").PropType<boolean>;
116
+ default: boolean;
117
+ };
118
+ keyProp: {
119
+ type: import("vue").PropType<string>;
120
+ default: string;
121
+ };
122
+ parentValues: {
123
+ type: import("vue").PropType<Record<string, any>>;
124
+ default: () => {};
125
+ };
126
+ labelWidth: {
127
+ type: import("vue").PropType<string>;
128
+ default: string;
129
+ };
130
+ disabled: {
131
+ type: import("vue").PropType<boolean>;
132
+ default: boolean;
133
+ };
289
134
  height: {
290
135
  type: import("vue").PropType<string>;
291
136
  default: string;
292
137
  };
138
+ stepActive: {
139
+ type: import("vue").PropType<string | number>;
140
+ default: number;
141
+ };
142
+ size: {
143
+ type: import("vue").PropType<"large" | "default" | "small">;
144
+ };
293
145
  inline: {
294
146
  type: import("vue").PropType<boolean>;
295
147
  default: boolean;
@@ -306,7 +158,92 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
306
158
  onError?: ((...args: any[]) => any) | undefined;
307
159
  "onField-input"?: ((...args: any[]) => any) | undefined;
308
160
  "onField-change"?: ((...args: any[]) => any) | undefined;
309
- } & import("vue").ShallowUnwrapRef<{
161
+ }, {
162
+ config: FormConfig;
163
+ initValues: Record<string, any>;
164
+ lastValues: Record<string, any>;
165
+ isCompare: boolean;
166
+ keyProp: string;
167
+ parentValues: Record<string, any>;
168
+ labelWidth: string;
169
+ disabled: boolean;
170
+ height: string;
171
+ stepActive: string | number;
172
+ inline: boolean;
173
+ labelPosition: string;
174
+ }, true, {}, {}, {
175
+ P: {};
176
+ B: {};
177
+ D: {};
178
+ C: {};
179
+ M: {};
180
+ Defaults: {};
181
+ }, Readonly<import("vue").ExtractPropTypes<{
182
+ config: {
183
+ type: import("vue").PropType<FormConfig>;
184
+ required: true;
185
+ default: () => never[];
186
+ };
187
+ popperClass: {
188
+ type: import("vue").PropType<string>;
189
+ };
190
+ initValues: {
191
+ type: import("vue").PropType<Record<string, any>>;
192
+ required: true;
193
+ default: () => {};
194
+ };
195
+ lastValues: {
196
+ type: import("vue").PropType<Record<string, any>>;
197
+ default: () => {};
198
+ };
199
+ isCompare: {
200
+ type: import("vue").PropType<boolean>;
201
+ default: boolean;
202
+ };
203
+ keyProp: {
204
+ type: import("vue").PropType<string>;
205
+ default: string;
206
+ };
207
+ parentValues: {
208
+ type: import("vue").PropType<Record<string, any>>;
209
+ default: () => {};
210
+ };
211
+ labelWidth: {
212
+ type: import("vue").PropType<string>;
213
+ default: string;
214
+ };
215
+ disabled: {
216
+ type: import("vue").PropType<boolean>;
217
+ default: boolean;
218
+ };
219
+ height: {
220
+ type: import("vue").PropType<string>;
221
+ default: string;
222
+ };
223
+ stepActive: {
224
+ type: import("vue").PropType<string | number>;
225
+ default: number;
226
+ };
227
+ size: {
228
+ type: import("vue").PropType<"large" | "default" | "small">;
229
+ };
230
+ inline: {
231
+ type: import("vue").PropType<boolean>;
232
+ default: boolean;
233
+ };
234
+ labelPosition: {
235
+ type: import("vue").PropType<string>;
236
+ default: string;
237
+ };
238
+ extendState: {
239
+ type: import("vue").PropType<(state: import("./schema").FormState) => Record<string, any> | Promise<Record<string, any>>>;
240
+ };
241
+ }>> & {
242
+ onChange?: ((...args: any[]) => any) | undefined;
243
+ onError?: ((...args: any[]) => any) | undefined;
244
+ "onField-input"?: ((...args: any[]) => any) | undefined;
245
+ "onField-change"?: ((...args: any[]) => any) | undefined;
246
+ }, {
310
247
  values: import("vue").Ref<import("./schema").FormValue>;
311
248
  lastValuesProcessed: import("vue").Ref<import("./schema").FormValue>;
312
249
  formState: import("./schema").FormState;
@@ -314,7 +251,20 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
314
251
  changeHandler: () => void;
315
252
  resetForm: () => any;
316
253
  submitForm: (native?: boolean | undefined) => Promise<any>;
317
- }> & {} & import("vue").ComponentCustomProperties & {}) | undefined>;
254
+ }, {}, {}, {}, {
255
+ config: FormConfig;
256
+ initValues: Record<string, any>;
257
+ lastValues: Record<string, any>;
258
+ isCompare: boolean;
259
+ keyProp: string;
260
+ parentValues: Record<string, any>;
261
+ labelWidth: string;
262
+ disabled: boolean;
263
+ height: string;
264
+ stepActive: string | number;
265
+ inline: boolean;
266
+ labelPosition: string;
267
+ }> | undefined>;
318
268
  saveFetch: import("vue").Ref<boolean>;
319
269
  bodyHeight: import("vue").Ref<number>;
320
270
  show: () => void;
@@ -323,7 +273,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
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;
@@ -340,8 +290,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
340
290
  confirmText: string;
341
291
  }>>> & {
342
292
  onChange?: ((...args: any[]) => any) | undefined;
343
- onSubmit?: ((...args: any[]) => any) | undefined;
344
293
  onError?: ((...args: any[]) => any) | undefined;
294
+ onSubmit?: ((...args: any[]) => any) | undefined;
345
295
  }, {
346
296
  config: FormConfig;
347
297
  values: Object;
@@ -352,15 +302,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
352
302
  footer?(_: {}): any;
353
303
  }>;
354
304
  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
305
  type __VLS_WithDefaults<P, D> = {
365
306
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
366
307
  default: D[K];
@@ -374,3 +315,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
374
315
  $slots: S;
375
316
  };
376
317
  };
318
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
319
+ type __VLS_TypePropsToOption<T> = {
320
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
321
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
322
+ } : {
323
+ type: import('vue').PropType<T[K]>;
324
+ required: true;
325
+ };
326
+ };