commit
7d4f295f45
|
@ -213,7 +213,8 @@ export interface FormSlots {
|
||||||
* Default content slot.
|
* Default content slot.
|
||||||
* @param {Object} scope - default slot's params.
|
* @param {Object} scope - default slot's params.
|
||||||
*/
|
*/
|
||||||
default: (scope: {
|
default: (
|
||||||
|
scope: {
|
||||||
/**
|
/**
|
||||||
* Registers a form field for validation and tracking.
|
* Registers a form field for validation and tracking.
|
||||||
* @param field - The name of the form field to register.
|
* @param field - The name of the form field to register.
|
||||||
|
@ -229,11 +230,12 @@ export interface FormSlots {
|
||||||
* Indicates whether the form is valid, returning `true` if all fields pass validation.
|
* Indicates whether the form is valid, returning `true` if all fields pass validation.
|
||||||
*/
|
*/
|
||||||
valid: boolean;
|
valid: boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stores the state of each form field, with the field name as the key and its state as the value.
|
* Index signature for dynamically added form fields.
|
||||||
*/
|
*/
|
||||||
states: Record<string, FormFieldState>;
|
} & Record<string, FormFieldState>
|
||||||
}) => VNode[];
|
) => VNode[];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue