You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
---
|
|
|
|
order: 10
|
|
|
|
title:
|
|
|
|
zh-CN: 密码框
|
|
|
|
en-US: Password box
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
密码框。
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
Input type of password.
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
import { Input, Space } from 'antd';
|
|
|
|
import { EyeInvisibleOutlined, EyeTwoTone } from '@ant-design/icons';
|
|
|
|
|
|
|
|
ReactDOM.render(
|
|
|
|
<Space direction="vertical">
|
|
|
|
<Input.Password placeholder="input password" />
|
|
|
|
<Input.Password
|
|
|
|
placeholder="input password"
|
|
|
|
iconRender={visible => (visible ? <EyeTwoTone /> : <EyeInvisibleOutlined />)}
|
|
|
|
/>
|
|
|
|
</Space>,
|
|
|
|
mountNode,
|
|
|
|
);
|
|
|
|
```
|