mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 17:44:35 +08:00
docs: add input.password iconRender (#25635)
This commit is contained in:
parent
8a18a85922
commit
96eec53cae
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user