|
@@ -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 {
|