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