docs: add input.password iconRender (#25635)

This commit is contained in:
xrk 2020-07-15 16:53:26 +08:00 committed by GitHub
parent 8a18a85922
commit 96eec53cae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 6 deletions

View File

@ -76,9 +76,10 @@ Supports all props of `Input`.
#### Input.Password
| Property | Description | Type | Default |
| ---------------- | -------------------------- | ------- | ------- |
| visibilityToggle | Whether show toggle button | boolean | true |
| Property | Description | Type | Default | Version |
| --- | --- | --- | --- | --- |
| visibilityToggle | Whether show toggle button | boolean | true | |
| iconRender | Custom toggle button | (visible) => ReactNode | (visible) => (visible ? <EyeOutlined /> : <EyeInvisibleOutlined />) | 4.3.0 |
## FAQ

View File

@ -77,9 +77,10 @@ Input 的其他属性和 React 自带的 [input](https://facebook.github.io/reac
#### Input.Password
| 参数 | 说明 | 类型 | 默认值 |
| ---------------- | ---------------- | ------- | ------ |
| visibilityToggle | 是否显示切换按钮 | boolean | true |
| 参数 | 说明 | 类型 | 默认值 | 版本 |
| --- | --- | --- | --- | --- |
| visibilityToggle | 是否显示切换按钮 | boolean | true | |
| iconRender | 自定义切换按钮 | (visible) => ReactNode | (visible) => (visible ? <EyeOutlined /> : <EyeInvisibleOutlined />) | 4.3.0 |
## FAQ