Skip to content

Commit

Permalink
docs(Field_React): fix rule description
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed Jul 2, 2019
1 parent b98c056 commit 827cb26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/API/Field_React.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ type Validator = (value: any, rule: IRuleDescription, values: any, name: string)

type DefaultPatternRule = 'url' | 'email' | 'ipv6' | 'ipv4' | 'number' | 'integer' | 'qq' | 'phone' | 'idcard' | 'taodomain' | 'money' | 'zh' | 'date' | 'zip'

type Rule = Validator | Array<Validator | IRuleDescription | DefaultPatternRule> | DefaultPatternRule | IRuleDescrip
type Rule = Validator | Array<Validator | IRuleDescription | DefaultPatternRule> | DefaultPatternRule | IRuleDescription

//该回调函数直接return错误文案字符串代表响应错误,如果返回Promise对象,
//代表是异步校验,resolve错误文案的时候代表错误响应,resolve为空的时候代表正确响应
Expand Down

0 comments on commit 827cb26

Please sign in to comment.