Skip to content

Commit 5c01475

Browse files
author
xujianhua
committed
登录页优化
1 parent 4af3cda commit 5c01475

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

src/views/Login.vue

+19-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!--
22
* @Author: your name
33
* @Date: 2021-01-11 11:14:26
4-
* @LastEditTime: 2021-04-28 17:39:05
4+
* @LastEditTime: 2021-04-29 16:37:27
55
* @LastEditors: Please set LastEditors
66
* @Description: In User Settings Edit
77
* @FilePath: \vue3-element-admin\src\views\Login.vue
@@ -25,13 +25,23 @@
2525
<el-input
2626
v-model.trim="userName"
2727
placeholder="用户名"
28+
><template #prepend
29+
><i
30+
style="font-size:20px;"
31+
class="el-icon-user"
32+
></i></template
2833
></el-input>
2934
</el-form-item>
3035
<el-form-item prop="pwd">
3136
<el-input
3237
v-model.trim="pwd"
3338
show-password
3439
placeholder="密码"
40+
><template #prepend
41+
><i
42+
style="font-size:20px;"
43+
class="el-icon-key"
44+
></i></template
3545
></el-input>
3646
</el-form-item>
3747
<el-form-item>
@@ -112,21 +122,22 @@ export default {
112122
top: 50%;
113123
left: 100px;
114124
transform: translateY(-50%);
125+
transition: all 1s;
115126
min-height: 273px;
116127
text-align: center;
117128
h1 {
118-
font-size: 36px;
119-
-webkit-transition-duration: 1s;
120-
transition-duration: 1s;
121-
-webkit-transition-timing-function: ease-in-put;
122-
transition-timing-function: ease-in-put;
123-
font-weight: 400;
124-
margin-top: 12px;
129+
font-size: 24px;
130+
transition: all 1s;
131+
font-weight: bold;
132+
margin-bottom: 36px;
125133
}
126134
.ve_form {
127135
.ve_submit {
128136
width: 100%;
129137
}
138+
:deep(.el-input-group__prepend) {
139+
padding: 0 10px;
140+
}
130141
}
131142
}
132143
</style>

0 commit comments

Comments
 (0)