update
parent
dd77738f6c
commit
2458a0f18f
|
@ -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>
|
||||
`
|
||||
|
|
Loading…
Reference in New Issue