刘翔宇-旅管家 4 years ago
parent bc6c380c27
commit 05996ec31b

@ -17,7 +17,7 @@
<svg-icon icon-class="user" /> <svg-icon icon-class="user" />
</span> </span>
<el-input ref="username" v-model="loginForm.username" placeholder="请输入登录名" name="username" type="text" <el-input ref="username" v-model="loginForm.username" placeholder="请输入登录名" name="username" type="text"
tabindex="1" auto-complete="on" /> tabindex="1" auto-complete="off" />
</el-form-item> </el-form-item>
<el-form-item prop="password"> <el-form-item prop="password">
@ -25,7 +25,7 @@
<svg-icon icon-class="password" /> <svg-icon icon-class="password" />
</span> </span>
<el-input :key="passwordType" ref="password" v-model="loginForm.password" :type="passwordType" <el-input :key="passwordType" ref="password" v-model="loginForm.password" :type="passwordType"
placeholder="请输入密码" name="password" tabindex="2" auto-complete="on" @keyup.enter.native="handleLogin" /> placeholder="请输入密码" name="password" tabindex="2" auto-complete="off" @keyup.enter.native="handleLogin" />
<span class="show-pwd" @click="showPwd"> <span class="show-pwd" @click="showPwd">
<svg-icon :icon-class="passwordType === 'password' ? 'eye' : 'eye-open'" /> <svg-icon :icon-class="passwordType === 'password' ? 'eye' : 'eye-open'" />
</span> </span>
@ -87,7 +87,7 @@
loading: false, loading: false,
passwordType: 'password', passwordType: 'password',
redirect: undefined, redirect: undefined,
marginTop: 20, marginTop: 80,
formHeight: 100 formHeight: 100
} }
}, },
@ -165,7 +165,7 @@
$bg:#ffffff; $bg:#ffffff;
$light_gray:#55320f; $light_gray:#55320f;
$cursor: #fff; $cursor: #55320f;
@supports (-webkit-mask: none) and (not (cater-color: $cursor)) { @supports (-webkit-mask: none) and (not (cater-color: $cursor)) {
.login-container .el-input input { .login-container .el-input input {
@ -213,8 +213,11 @@
caret-color: $cursor; caret-color: $cursor;
&:-webkit-autofill { &:-webkit-autofill {
box-shadow: 0 0 0px 1000px $bg inset !important; box-shadow: 0 0 0px 1000px transparent inset !important;
-webkit-text-fill-color: $cursor !important; -webkit-text-fill-color: $light_gray !important;
background-color: transparent;
background-image: none;
transition: background-color 50000s ease-in-out 0s;
} }
} }
} }

Loading…
Cancel
Save