feat(material): update entry form
This commit is contained in:
@@ -15,11 +15,12 @@ interface Props {
|
|||||||
schema: z.ZodSchema<any>
|
schema: z.ZodSchema<any>
|
||||||
uoms: any[]
|
uoms: any[]
|
||||||
values: any
|
values: any
|
||||||
|
isLoading?: boolean
|
||||||
isReadonly?: boolean
|
isReadonly?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
const isLoading = ref(false)
|
|
||||||
const props = defineProps<Props>()
|
const props = defineProps<Props>()
|
||||||
|
const isLoading = props.isLoading !== undefined ? props.isLoading : false
|
||||||
const isReadonly = props.isReadonly !== undefined ? props.isReadonly : false
|
const isReadonly = props.isReadonly !== undefined ? props.isReadonly : false
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
submit: [values: MaterialFormData, resetForm: () => void]
|
submit: [values: MaterialFormData, resetForm: () => void]
|
||||||
|
|||||||
@@ -15,11 +15,12 @@ interface Props {
|
|||||||
schema: z.ZodSchema<any>
|
schema: z.ZodSchema<any>
|
||||||
uoms: any[]
|
uoms: any[]
|
||||||
values: any
|
values: any
|
||||||
|
isLoading?: boolean
|
||||||
isReadonly?: boolean
|
isReadonly?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
const isLoading = ref(false)
|
|
||||||
const props = defineProps<Props>()
|
const props = defineProps<Props>()
|
||||||
|
const isLoading = props.isLoading !== undefined ? props.isLoading : false
|
||||||
const isReadonly = props.isReadonly !== undefined ? props.isReadonly : false
|
const isReadonly = props.isReadonly !== undefined ? props.isReadonly : false
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
submit: [values: DeviceFormData, resetForm: () => void]
|
submit: [values: DeviceFormData, resetForm: () => void]
|
||||||
|
|||||||
Reference in New Issue
Block a user