diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2020-01-10 16:23:58 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2020-01-10 16:23:58 +0900 |
| commit | d09d06e4cb86ce90a391cbe96a59df633c809fd4 (patch) | |
| tree | 9d4a29b7b02a318d1ffae129d5ee1b0fb5589bfe /src | |
| parent | Remove needless await (diff) | |
| download | sharkey-d09d06e4cb86ce90a391cbe96a59df633c809fd4.tar.gz sharkey-d09d06e4cb86ce90a391cbe96a59df633c809fd4.tar.bz2 sharkey-d09d06e4cb86ce90a391cbe96a59df633c809fd4.zip | |
Refactor
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/app/common/views/components/autocomplete.vue | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/src/client/app/common/views/components/autocomplete.vue b/src/client/app/common/views/components/autocomplete.vue index 40f2534714..bbfb7896ae 100644 --- a/src/client/app/common/views/components/autocomplete.vue +++ b/src/client/app/common/views/components/autocomplete.vue @@ -73,7 +73,42 @@ for (const x of lib) { emjdb.sort((a, b) => a.name.length - b.name.length); export default Vue.extend({ - props: ['type', 'q', 'textarea', 'complete', 'close', 'x', 'y'], + props: { + type: { + type: String, + required: true, + }, + + q: { + type: String, + required: true, + }, + + textarea: { + type: Object, + required: true, + }, + + complete: { + type: Function, + required: true, + }, + + close: { + type: Function, + required: true, + }, + + x: { + type: Number, + required: true, + }, + + y: { + type: Number, + required: true, + }, + }, data() { return { |