Skip to content

Commit 4aa01c1

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

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/views/user/Register.vue

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,21 @@
2626
</div>
2727
</template>
2828
<a-form-item>
29-
<a-input
29+
<a-input-password
3030
size="large"
31-
type="password"
3231
@click="handlePasswordInputClick"
33-
autocomplete="false"
3432
placeholder="至少6位密码,区分大小写"
3533
v-decorator="['password', {rules: [{ required: true, message: '至少6位密码,区分大小写'}, { validator: this.handlePasswordLevel }], validateTrigger: ['change', 'blur']}]"
36-
></a-input>
34+
></a-input-password>
3735
</a-form-item>
3836
</a-popover>
3937

4038
<a-form-item>
41-
<a-input
39+
<a-input-password
4240
size="large"
43-
type="password"
44-
autocomplete="false"
4541
placeholder="确认密码"
4642
v-decorator="['password2', {rules: [{ required: true, message: '至少6位密码,区分大小写' }, { validator: this.handlePasswordCheck }], validateTrigger: ['change', 'blur']}]"
47-
></a-input>
43+
></a-input-password>
4844
</a-form-item>
4945

5046
<a-form-item>

0 commit comments

Comments
 (0)