feat: add scrollToFirstError to the form component

This commit is contained in:
sqchen
2025-07-05 00:19:12 +08:00
parent e6bfbce6cb
commit 243f3a201d
9 changed files with 258 additions and 4 deletions

View File

@@ -15,6 +15,7 @@ const [Form] = useVbenForm({
handleSubmit: onSubmit,
// 垂直布局label和input在不同行值为vertical
// 水平布局label和input在同一行
scrollToFirstError: true,
layout: 'horizontal',
schema: [
{