better autocomplete for password and token inputs (#2505)

This commit is contained in:
Rizvan Nukhtarov
2024-08-30 10:16:34 +03:00
committed by GitHub
parent c0b88fe736
commit 5d7de0858c
2 changed files with 8 additions and 6 deletions

View File

@@ -1,8 +1,10 @@
{{define "component/passwordInput"}}
<template>
<a-input :value="value" :type="showPassword ? 'text' : 'password'"
:placeholder="placeholder"
@input="$emit('input', $event.target.value)">
:placeholder="placeholder"
:autocomplete="autocomplete"
:name="name"
@input="$emit('input', $event.target.value)">
<template v-if="icon" #prefix>
<a-icon :type="icon" style="font-size: 16px;" />
</template>
@@ -18,7 +20,7 @@
{{define "component/password"}}
<script>
Vue.component('password-input', {
props: ["title", "value", "placeholder", "icon"],
props: ["title", "value", "placeholder", "icon", "autocomplete", "name"],
template: `{{template "component/passwordInput"}}`,
data() {
return {