From d09d06e4cb86ce90a391cbe96a59df633c809fd4 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 10 Jan 2020 16:23:58 +0900 Subject: [PATCH] Refactor --- .../common/views/components/autocomplete.vue | 37 ++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/src/client/app/common/views/components/autocomplete.vue b/src/client/app/common/views/components/autocomplete.vue index 40f253471..bbfb7896a 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 {