diff --git a/src/components/Login/index.en-US.md b/src/components/Login/index.en-US.md index 42b5b2199a72ccdfc95766a63f65cd0ea5f44738..a091b0e2838b591374d7ad0427f77c82cbbcb5f3 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 2ae84cebbedca6872ec10ee09a4138df9cae9d09..333ecb784be892a1a5ce1b9752de5547218a2144 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 相同。