feat(Form): rule validator add rule param (#5704)

This commit is contained in:
陈嘉涵
2020-02-21 20:51:28 +08:00
parent 529e117096
commit 1b3bcf27ee
4 changed files with 10 additions and 6 deletions
+1 -1
View File
@@ -439,7 +439,7 @@ export default {
|------|------|------|
| message | Error message | *string* |
| required | Whether to be a required field | *boolean* |
| validator | Custom validator | *() => boolean \| Promise* |
| validator | Custom validator | *(value, rule) => boolean \| Promise* |
| pattern `v2.5.3` | Regex pattern | *RegExp* |
| trigger `v2.5.2` | When to validate the formcan be set to `onChange``onBlur` | *string* |