feat(Form): add scroll-to-error prop (#5680)

This commit is contained in:
陈嘉涵
2020-02-20 20:15:29 +08:00
parent a83082f599
commit b8818cef8c
4 changed files with 29 additions and 5 deletions
+3 -2
View File
@@ -409,9 +409,10 @@ export default {
| label-align | Field label align, can be set to `center` `right` | *string* | `left` |
| input-align | Field input align, can be set to `center` `right` | *string* | `left` |
| error-message-align | Error message align, can be set to `center` `right` | *string* | `left` |
| colon | Whether to display `:` after label | *boolean* | *false* |
| validate-first | Whether to stop the validation when a rule fails | *boolean* | `false` |
| validate-trigger `v2.5.2` | When to validate the formcan be set to `onChange``onSubmit` | *string* | `onBlur` |
| colon | Whether to display `:` after label | *boolean* | `false` |
| validate-first | Whether to stop the validation when a rule fails | *boolean* | `false` |
| scroll-to-error `v2.5.2` | Whether to scroll to the error field when submit failed | *boolean* | `false` |
### Data Structure of Rule