fix(@vben-core/form-ui): restore lock screen form submission (#8195)

* fix(@vben-core/form-ui): avoid stale form context access

* fix(@vben/playground): constrain date range codec fields

* test(@vben-core/form-ui): harden benchmark fixtures

* docs(@vben/docs): document form runtime and benchmarks

* fix(@vben/docs): 明确 getValues/submit 返回值及 submit 参数类型
This commit is contained in:
dream-weave
2026-07-24 10:05:27 +08:00
committed by GitHub
parent 0542b509ca
commit dcdbfe5dfc
13 changed files with 195 additions and 86 deletions

View File

@@ -404,6 +404,11 @@ export class FormApi<
}
}
async setFieldError(fieldName: FormFieldName<TFormValues>, error?: string) {
const form = await this.getForm();
form.setFieldError(fieldName, error);
}
async setFieldValue<TFieldName extends FormFieldName<TFormValues>>(
field: TFieldName,
value: FormFieldValue<TFormValues, NoInfer<TFieldName>>,