From 827cb26a3269286d9a5373e270eeecf98e734f63 Mon Sep 17 00:00:00 2001 From: janryWang Date: Tue, 2 Jul 2019 10:31:44 +0800 Subject: [PATCH] docs(Field_React): fix rule description --- docs/API/Field_React.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/API/Field_React.md b/docs/API/Field_React.md index ab96aebe3b2..c113fc1cfd6 100644 --- a/docs/API/Field_React.md +++ b/docs/API/Field_React.md @@ -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 | DefaultPatternRule | IRuleDescrip +type Rule = Validator | Array | DefaultPatternRule | IRuleDescription //该回调函数直接return错误文案字符串代表响应错误,如果返回Promise对象, //代表是异步校验,resolve错误文案的时候代表错误响应,resolve为空的时候代表正确响应