Add Contact standard object, related lists, meilisearch, pagination, search, AI assistant
This commit is contained in:
@@ -159,6 +159,13 @@ const updateFieldValue = (apiName: string, value: any) => {
|
||||
delete errors.value[apiName]
|
||||
}
|
||||
}
|
||||
|
||||
const handleRelatedFieldsUpdate = (values: Record<string, any>) => {
|
||||
formData.value = {
|
||||
...formData.value,
|
||||
...values,
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -223,7 +230,9 @@ const updateFieldValue = (apiName: string, value: any) => {
|
||||
:field="field"
|
||||
:model-value="formData[field.apiName]"
|
||||
:mode="ViewMode.EDIT"
|
||||
:record-data="formData"
|
||||
@update:model-value="updateFieldValue(field.apiName, $event)"
|
||||
@update:related-fields="handleRelatedFieldsUpdate"
|
||||
/>
|
||||
<p v-if="errors[field.apiName]" class="text-sm text-destructive">
|
||||
{{ errors[field.apiName] }}
|
||||
@@ -252,7 +261,9 @@ const updateFieldValue = (apiName: string, value: any) => {
|
||||
:field="field"
|
||||
:model-value="formData[field.apiName]"
|
||||
:mode="ViewMode.EDIT"
|
||||
:record-data="formData"
|
||||
@update:model-value="updateFieldValue(field.apiName, $event)"
|
||||
@update:related-fields="handleRelatedFieldsUpdate"
|
||||
/>
|
||||
<p v-if="errors[field.apiName]" class="text-sm text-destructive">
|
||||
{{ errors[field.apiName] }}
|
||||
|
||||
Reference in New Issue
Block a user