Components
BaseFormSection
One section of a BaseForm: its title, description and the grid of fields.
components/ui/form/BaseFormSection.vue
Internal part
This is an internal part of BaseForm. You normally use it through BaseForm, but it is documented so you can customise or reuse it.
API
Props
Name | Type | Default | Description |
|---|---|---|---|
sectionrequired | FormSection | — | The section definition. |
valuesrequired | FormValues | — | All the form values, for visibleIf and disabled predicates. |
fieldsrequired | FormField[] | — | The visible fields of the section. |
field-idrequired | (key: string) => string | — | Builds the input id of each field. |
variant | "plain" | "card" | "plain" | plain or card. |
single-column | boolean | — | Ignores cols and stacks every field. |
status | FormSectionStatus | — | The status of the section, for its header. |
errors | FormErrors | — | The errors per field key. |
disabled | boolean | — | Disables the fields. |
readonly | boolean | — | Makes the fields read-only. |
Events
Name | Payload | Description |
|---|---|---|
@update:field | [key: string, value: unknown] | A field changed: (key, value). |
@blur:field | [key: string] | A field lost focus. |