Skip to content

Commit 3aa473b

Browse files
phamtien9819sendya
authored andcommitted
Update Login.vue
Use `a-input-password` instead of `a-input` for password field.
1 parent 5638640 commit 3aa473b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/views/user/Login.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,16 @@
2929
</a-form-item>
3030

3131
<a-form-item>
32-
<a-input
32+
<a-input-password
3333
size="large"
34-
type="password"
35-
autocomplete="false"
3634
placeholder="密码: admin or ant.design"
3735
v-decorator="[
3836
'password',
3937
{rules: [{ required: true, message: '请输入密码' }], validateTrigger: 'blur'}
4038
]"
4139
>
4240
<a-icon slot="prefix" type="lock" :style="{ color: 'rgba(0,0,0,.25)' }"/>
43-
</a-input>
41+
</a-input-password>
4442
</a-form-item>
4543
</a-tab-pane>
4644
<a-tab-pane key="tab2" tab="手机号登录">

0 commit comments

Comments
 (0)