fix: Error in the build of the auto form with Vite and TypeScript #870
This commit is contained in:
parent
b7ef4653f7
commit
90062cf027
|
|
@ -1,3 +1,4 @@
|
|||
import type { InputComponents } from './interface'
|
||||
import AutoFormFieldArray from './AutoFormFieldArray.vue'
|
||||
import AutoFormFieldBoolean from './AutoFormFieldBoolean.vue'
|
||||
import AutoFormFieldDate from './AutoFormFieldDate.vue'
|
||||
|
|
@ -7,7 +8,7 @@ import AutoFormFieldInput from './AutoFormFieldInput.vue'
|
|||
import AutoFormFieldNumber from './AutoFormFieldNumber.vue'
|
||||
import AutoFormFieldObject from './AutoFormFieldObject.vue'
|
||||
|
||||
export const INPUT_COMPONENTS = {
|
||||
export const INPUT_COMPONENTS: InputComponents = {
|
||||
date: AutoFormFieldDate,
|
||||
select: AutoFormFieldEnum,
|
||||
radio: AutoFormFieldEnum,
|
||||
|
|
|
|||
|
|
@ -18,6 +18,20 @@ export interface Shape {
|
|||
schema?: ZodAny
|
||||
}
|
||||
|
||||
export interface InputComponents {
|
||||
date: Component;
|
||||
select: Component;
|
||||
radio: Component;
|
||||
checkbox: Component;
|
||||
switch: Component;
|
||||
textarea: Component;
|
||||
number: Component;
|
||||
string: Component;
|
||||
file: Component;
|
||||
array: Component;
|
||||
object: Component;
|
||||
};
|
||||
|
||||
export interface ConfigItem {
|
||||
/** Value for the `FormLabel` */
|
||||
label?: string
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user