<el-input :type="inputType" @focus="clickFocus()" @input="changeInput()" @blur="clickBlur()"
v-model="userForm.password" auto-complete="new-password" placeholder="请输入登录密码"></el-input>
</el-form-item>
inputType: '',
clickFocus: function () {
if (this.inputType == 'text') {
this.inputType = 'text'
} else {
this.inputType = 'password'
}
},
changeInput: function () {
this.inputType = 'password';
},
clickBlur: function () {
if (this.inputType == 'text') {
this.inputType = 'text'
} else {
this.inputType = 'password'
}
},