diff options
Diffstat (limited to 'web/html/xui/component')
| -rw-r--r-- | web/html/xui/component/password.html | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/web/html/xui/component/password.html b/web/html/xui/component/password.html index 13dbfb51..37e4c793 100644 --- a/web/html/xui/component/password.html +++ b/web/html/xui/component/password.html @@ -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 { |
