Fixed #6723 - Cannot read $form form field states with TypeScript

pull/7055/head
Mert Sincan 2025-01-06 14:52:13 +00:00
parent 4c4996fb72
commit 580a88455b
1 changed files with 4 additions and 3 deletions

View File

@ -240,11 +240,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;
} & {
/** /**
* Index signature for dynamically added form fields. * Stores the state of each form field, with the field name as the key and its state as the value.
*/ */
} & Record<string, FormFieldState> [key: string]: FormFieldState;
}
) => VNode[]; ) => VNode[];
} }