File tree 4 files changed +32
-2
lines changed
apps/www/src/lib/registry
4 files changed +32
-2
lines changed Original file line number Diff line number Diff line change
1
+ import type { InputComponents } from './interface'
1
2
import AutoFormFieldArray from './AutoFormFieldArray.vue'
2
3
import AutoFormFieldBoolean from './AutoFormFieldBoolean.vue'
3
4
import AutoFormFieldDate from './AutoFormFieldDate.vue'
@@ -7,7 +8,7 @@ import AutoFormFieldInput from './AutoFormFieldInput.vue'
7
8
import AutoFormFieldNumber from './AutoFormFieldNumber.vue'
8
9
import AutoFormFieldObject from './AutoFormFieldObject.vue'
9
10
10
- export const INPUT_COMPONENTS = {
11
+ export const INPUT_COMPONENTS : InputComponents = {
11
12
date : AutoFormFieldDate ,
12
13
select : AutoFormFieldEnum ,
13
14
radio : AutoFormFieldEnum ,
Original file line number Diff line number Diff line change @@ -18,6 +18,20 @@ export interface Shape {
18
18
schema ?: ZodAny
19
19
}
20
20
21
+ export interface InputComponents {
22
+ date : Component ;
23
+ select : Component ;
24
+ radio : Component ;
25
+ checkbox : Component ;
26
+ switch : Component ;
27
+ textarea : Component ;
28
+ number : Component ;
29
+ string : Component ;
30
+ file : Component ;
31
+ array : Component ;
32
+ object : Component ;
33
+ } ;
34
+
21
35
export interface ConfigItem {
22
36
/** Value for the `FormLabel` */
23
37
label ?: string
Original file line number Diff line number Diff line change
1
+ import type { InputComponents } from './interface'
1
2
import AutoFormFieldArray from './AutoFormFieldArray.vue'
2
3
import AutoFormFieldBoolean from './AutoFormFieldBoolean.vue'
3
4
import AutoFormFieldDate from './AutoFormFieldDate.vue'
@@ -7,7 +8,7 @@ import AutoFormFieldInput from './AutoFormFieldInput.vue'
7
8
import AutoFormFieldNumber from './AutoFormFieldNumber.vue'
8
9
import AutoFormFieldObject from './AutoFormFieldObject.vue'
9
10
10
- export const INPUT_COMPONENTS = {
11
+ export const INPUT_COMPONENTS : InputComponents = {
11
12
date : AutoFormFieldDate ,
12
13
select : AutoFormFieldEnum ,
13
14
radio : AutoFormFieldEnum ,
Original file line number Diff line number Diff line change @@ -18,6 +18,20 @@ export interface Shape {
18
18
schema ?: ZodAny
19
19
}
20
20
21
+ export interface InputComponents {
22
+ date : Component ;
23
+ select : Component ;
24
+ radio : Component ;
25
+ checkbox : Component ;
26
+ switch : Component ;
27
+ textarea : Component ;
28
+ number : Component ;
29
+ string : Component ;
30
+ file : Component ;
31
+ array : Component ;
32
+ object : Component ;
33
+ } ;
34
+
21
35
export interface ConfigItem {
22
36
/** Value for the `FormLabel` */
23
37
label ?: string
You can’t perform that action at this time.
0 commit comments