optimiz: eye icon style for login form
This commit is contained in:
parent
ac8eddf3d7
commit
057b401481
|
@ -0,0 +1 @@
|
|||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1548210723781" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2002" xmlns:xlink="http://www.w3.org/1999/xlink" width="260" height="260"><defs><style type="text/css"></style></defs><path d="M950.857143 548.571429q-86.857143-134.857143-217.714286-201.714286 34.857143 59.428571 34.857143 128.571429 0 105.714286-75.142857 180.857143t-180.857143 75.142857-180.857143-75.142857-75.142857-180.857143q0-69.142857 34.857143-128.571429-130.857143 66.857143-217.714286 201.714286 76 117.142857 190.571429 186.571429t248.285714 69.428571 248.285714-69.428571 190.571429-186.571429zm-411.428571-219.428571q0-11.428571-8-19.428571t-19.428571-8q-71.428571 0-122.571429 51.142857t-51.142857 122.571429q0 11.428571 8 19.428571t19.428571 8 19.428571-8 8-19.428571q0-49.142857 34.857143-84t84-34.857143q11.428571 0 19.428571-8t8-19.428571zm484.571429 219.428571q0 19.428571-11.428571 39.428571-80 131.428571-215.142857 210.571429t-285.428571 79.142857-285.428571-79.428571-215.142857-210.285714q-11.428571-20-11.428571-39.428571t11.428571-39.428571q80-130.857143 215.142857-210.285714t285.428571-79.428571 285.428571 79.428571 215.142857 210.285714q11.428571 20 11.428571 39.428571z" p-id="2003"></path></svg>
|
After Width: | Height: | Size: 1.4 KiB |
|
@ -1,11 +1,11 @@
|
|||
<template>
|
||||
<div class="login-container">
|
||||
|
||||
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form" auto-complete="on" label-position="left">
|
||||
|
||||
<div class="title-container">
|
||||
<h3 class="title">{{ $t('login.title') }}</h3>
|
||||
<lang-select class="set-language"/>
|
||||
<h3 class="title">
|
||||
{{ $t('login.title') }}
|
||||
</h3>
|
||||
<lang-select class="set-language" />
|
||||
</div>
|
||||
|
||||
<el-form-item prop="username">
|
||||
|
@ -26,18 +26,21 @@
|
|||
<svg-icon icon-class="password" />
|
||||
</span>
|
||||
<el-input
|
||||
:type="passwordType"
|
||||
v-model="loginForm.password"
|
||||
:type="passwordType"
|
||||
:placeholder="$t('login.password')"
|
||||
name="password"
|
||||
auto-complete="on"
|
||||
@keyup.enter.native="handleLogin" />
|
||||
@keyup.enter.native="handleLogin"
|
||||
/>
|
||||
<span class="show-pwd" @click="showPwd">
|
||||
<svg-icon icon-class="eye" />
|
||||
<svg-icon :icon-class="passwordType === 'password' ? 'eye' : 'eye-open'" />
|
||||
</span>
|
||||
</el-form-item>
|
||||
|
||||
<el-button :loading="loading" type="primary" style="width:100%;margin-bottom:30px;" @click.native.prevent="handleLogin">{{ $t('login.logIn') }}</el-button>
|
||||
<el-button :loading="loading" type="primary" style="width:100%;margin-bottom:30px;" @click.native.prevent="handleLogin">
|
||||
{{ $t('login.logIn') }}
|
||||
</el-button>
|
||||
|
||||
<div style="position:relative">
|
||||
<div class="tips">
|
||||
|
@ -45,11 +48,15 @@
|
|||
<span>{{ $t('login.password') }} : {{ $t('login.any') }}</span>
|
||||
</div>
|
||||
<div class="tips">
|
||||
<span style="margin-right:18px;">{{ $t('login.username') }} : editor</span>
|
||||
<span style="margin-right:18px;">
|
||||
{{ $t('login.username') }} : editor
|
||||
</span>
|
||||
<span>{{ $t('login.password') }} : {{ $t('login.any') }}</span>
|
||||
</div>
|
||||
|
||||
<el-button class="thirdparty-button" type="primary" @click="showDialog=true">{{ $t('login.thirdparty') }}</el-button>
|
||||
<el-button class="thirdparty-button" type="primary" @click="showDialog=true">
|
||||
{{ $t('login.thirdparty') }}
|
||||
</el-button>
|
||||
</div>
|
||||
</el-form>
|
||||
|
||||
|
@ -60,7 +67,6 @@
|
|||
<br>
|
||||
<social-sign />
|
||||
</el-dialog>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
Loading…
Reference in New Issue