ElemeFE / ElemeFE/element

[Feature Request] el-input: password box should have a closed-eye when password is not revealed

Open
#21,378 2 comments 0 reactions 0 assignees View on GitHub
component: input type: bug
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Existing Component
yes

### Component Name
el-input

### Description
when password is revealed in password box, el-input should have open-eye icon, and when password is hidden, icon should be closed
right now el-input where always show a open-eye icon, which is a little strange compare to other ui library such as antdv.
[element](https://element.eleme.io/#/en-US/component/input#password-box):
![image](https://user-images.githubusercontent.com/7448223/136724986-5e47551e-ebff-4d35-a077-e263715ebd6c.png)
![image](https://user-images.githubusercontent.com/7448223/136725026-45e5e678-5da4-43b3-8afb-7b41a3dcdc44.png)
and i also notice that Element doesn't have a closed-eye icon, really hope this feature can be added.

[antdv](https://www.antdv.com/components/input/#API):
![image](https://user-images.githubusercontent.com/7448223/136724700-5186f2e6-873b-4eae-b2a9-275fdf597849.png)
![image](https://user-images.githubusercontent.com/7448223/136724734-36254d6f-7fec-4e0c-ab2a-4d8e9c1b671f.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.