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
@@ -478,7 +478,7 @@ export default {
|------|------|------|
| message | 错误提示文案 | *string* |
| required | 是否为必选字段 | *boolean* |
| validator | 通过函数进行校验 | *() => boolean \| Promise* |
| validator | 通过函数进行校验 | *(value, rule) => boolean \| Promise* |
| pattern `v2.5.3` | 通过正则表达式进行校验 | *RegExp* |
| trigger `v2.5.2` | 本项规则的触发时机,可选值为`onChange``onBlur` | *string* |