master
yutent 2023-03-20 19:29:55 +08:00
parent dd77738f6c
commit 2458a0f18f
1 changed files with 3 additions and 2 deletions

View File

@ -97,7 +97,7 @@ class Passwd extends Component {
}
/* ----- */
.icon {
--size: 18px;
--size: 16px;
margin: 0 8px 0 4px;
color: var(--color-grey-2);
cursor: pointer;
@ -223,6 +223,7 @@ class Passwd extends Component {
]
mounted() {
console.log(this.$refs)
if (this.autofocus) {
this.$refs.input.setAttribute('autofocus', '')
// 需要focus()才能聚焦成功
@ -257,7 +258,7 @@ class Passwd extends Component {
<wc-icon
class="icon"
@click=${this.iconClick}
:is=${this._type === 'password' ? 'eye-off' : 'eye'}
:is=${this._type === 'password' ? 'eye' : 'eye-off'}
></wc-icon>
</div>
`