From 42f7e8dc3518a1756cc2c171dedf44b8d6e1df85 Mon Sep 17 00:00:00 2001 From: pany <939630029@qq.com> Date: Fri, 30 Aug 2024 21:45:11 +0800 Subject: [PATCH] docs(Form): add 'scrollToErrorPosition' version number (#13090) --- packages/vant/src/form/README.md | 2 +- packages/vant/src/form/README.zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vant/src/form/README.md b/packages/vant/src/form/README.md index ccbad06b1..e150e3948 100644 --- a/packages/vant/src/form/README.md +++ b/packages/vant/src/form/README.md @@ -502,7 +502,7 @@ export default { | required `v4.7.3` | Whether to show required mark | _boolean \| 'auto'_ | `null` | | validate-first | Whether to stop the validation when a rule fails | _boolean_ | `false` | | scroll-to-error | Whether to scroll to the error field when validation failed | _boolean_ | `false` | -| scroll-to-error-position | The position when scrolling to the wrong form item, can be set to `center` \| `end` \| `nearest` \| `start` | _string_ | - | +| scroll-to-error-position `v4.9.2` | The position when scrolling to the wrong form item, can be set to `center` \| `end` \| `nearest` \| `start` | _string_ | - | | show-error | Whether to highlight input when validation failed | _boolean_ | `false` | | show-error-message | Whether to show error message when validation failed | _boolean_ | `true` | | submit-on-enter | Whether to submit form on enter | _boolean_ | `true` | diff --git a/packages/vant/src/form/README.zh-CN.md b/packages/vant/src/form/README.zh-CN.md index 1f323ec18..0e93a3186 100644 --- a/packages/vant/src/form/README.zh-CN.md +++ b/packages/vant/src/form/README.zh-CN.md @@ -534,7 +534,7 @@ export default { | required `v4.7.3` | 是否显示表单必填星号 | _boolean \| 'auto'_ | `null` | | validate-first | 是否在某一项校验不通过时停止校验 | _boolean_ | `false` | | scroll-to-error | 是否在提交表单且校验不通过时滚动至错误的表单项 | _boolean_ | `false` | -| scroll-to-error-position | 滚动至错误的表单项时的位置,可选值为 `center` \| `end` \| `nearest` \| `start` | _string_ | - | +| scroll-to-error-position `v4.9.2` | 滚动至错误的表单项时的位置,可选值为 `center` \| `end` \| `nearest` \| `start` | _string_ | - | | show-error | 是否在校验不通过时标红输入框 | _boolean_ | `false` | | show-error-message | 是否在校验不通过时在输入框下方展示错误提示 | _boolean_ | `true` | | submit-on-enter | 是否在按下回车键时提交表单 | _boolean_ | `true` |