From 77ce0fdf1ad3397d7bf453194f2bd38a13270b02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Sun, 5 Aug 2018 12:04:02 +0800 Subject: [PATCH] doc:Modify the error of the document --- src/components/Login/index.en-US.md | 2 +- src/components/Login/index.zh-CN.md | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/Login/index.en-US.md b/src/components/Login/index.en-US.md index 42b5b219..a091b0e2 100644 --- a/src/components/Login/index.en-US.md +++ b/src/components/Login/index.en-US.md @@ -39,7 +39,7 @@ Apart from the above properties, Login.Username also support all properties of a Property | Description | Type | Default ----|------|-----|------ onGetCaptcha | callback on getting a new Captcha | () => void | - -buttonText | text on getting a new Captcha | ReactNode | - +buttonText | text on getting a new Captcha | ReactNode | '获取验证码' Apart from the above properties, _Login.Captcha_ support the same properties with _Login.UserName_. diff --git a/src/components/Login/index.zh-CN.md b/src/components/Login/index.zh-CN.md index 2ae84ceb..333ecb78 100644 --- a/src/components/Login/index.zh-CN.md +++ b/src/components/Login/index.zh-CN.md @@ -32,15 +32,14 @@ name | 控件标记,提交数据中同样以此为 key | String | - rules | 校验规则,同 Form getFieldDecorator(id, options) 中 [option.rules 的规则](getFieldDecorator(id, options)) | object[] | - 除上述属性以外,Login.UserName 还支持 antd.Input 的所有属性,并且自带默认的基础配置,包括 `placeholder` `size` `prefix` 等,这些基础配置均可被覆盖。 - -### Login.Password、Login.Mobile 同 Login.UserName +## Login.Password、Login.Mobile 同 Login.UserName ### Login.Captcha 参数 | 说明 | 类型 | 默认值 ----|------|-----|------ onGetCaptcha | 点击获取校验码的回调 | () => void | - -buttonText | 点击获取校验码的说明文字 | ReactNode | - +buttonText | 点击获取校验码的说明文字 | ReactNode | '获取验证码' 除上述属性以外,Login.Captcha 支持的属性与 Login.UserName 相同。 -- GitLab