diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-04-18 21:29:19 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-04-18 21:29:19 +0900 |
| commit | 8b92feac7174558ea2e4d2e0c69dffa69c6aac5d (patch) | |
| tree | e232ac25f8be84a39dc7680f6c10b2606ef9f8ad /src/client/app/common/views/components/ui | |
| parent | Fix #4734 (#4745) (diff) | |
| download | misskey-8b92feac7174558ea2e4d2e0c69dffa69c6aac5d.tar.gz misskey-8b92feac7174558ea2e4d2e0c69dffa69c6aac5d.tar.bz2 misskey-8b92feac7174558ea2e4d2e0c69dffa69c6aac5d.zip | |
Resolve #4732
Diffstat (limited to 'src/client/app/common/views/components/ui')
| -rw-r--r-- | src/client/app/common/views/components/ui/input.vue | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/client/app/common/views/components/ui/input.vue b/src/client/app/common/views/components/ui/input.vue index ae9ce249de..bcb87398ba 100644 --- a/src/client/app/common/views/components/ui/input.vue +++ b/src/client/app/common/views/components/ui/input.vue @@ -23,6 +23,7 @@ @focus="focused = true" @blur="focused = false" @keydown="$emit('keydown', $event)" + :list="id" > <input v-else ref="input" :type="type" @@ -37,7 +38,11 @@ @focus="focused = true" @blur="focused = false" @keydown="$emit('keydown', $event)" + :list="id" > + <datalist :id="id" v-if="datalist"> + <option v-for="data in datalist" :value="data"/> + </datalist> </template> <template v-else> <input ref="input" @@ -130,6 +135,10 @@ export default Vue.extend({ required: false, default: false }, + datalist: { + type: Array, + required: false, + }, inline: { type: Boolean, required: false, @@ -147,7 +156,8 @@ export default Vue.extend({ return { v: this.value, focused: false, - passwordStrength: '' + passwordStrength: '', + id: Math.random().toString() }; }, computed: { |