From 67d2bc0078739da9c80dcd6b86dd4324f21cd85e Mon Sep 17 00:00:00 2001 From: mehm8128 Date: Mon, 17 Oct 2022 22:15:21 +0900 Subject: [PATCH 1/4] add search form component --- src/components/UI/FormSearch.vue | 65 ++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 src/components/UI/FormSearch.vue diff --git a/src/components/UI/FormSearch.vue b/src/components/UI/FormSearch.vue new file mode 100644 index 00000000..848b0148 --- /dev/null +++ b/src/components/UI/FormSearch.vue @@ -0,0 +1,65 @@ + + + + + From cd50ee0b9c457c2451859c02def166e1404ce982 Mon Sep 17 00:00:00 2001 From: mehm8128 Date: Wed, 19 Oct 2022 21:26:30 +0900 Subject: [PATCH 2/4] add icon prop --- src/components/UI/FormInput.vue | 11 ++++--- src/components/UI/FormSearch.vue | 50 +++++--------------------------- 2 files changed, 14 insertions(+), 47 deletions(-) diff --git a/src/components/UI/FormInput.vue b/src/components/UI/FormInput.vue index 5d1ec02a..6e4f2f19 100644 --- a/src/components/UI/FormInput.vue +++ b/src/components/UI/FormInput.vue @@ -6,14 +6,14 @@ interface Props { modelValue: string placeholder?: string limit?: number - hasAtmark?: boolean + icon?: 'magnify' | 'at' hasAnchor?: boolean } const props = withDefaults(defineProps(), { placeholder: '', limit: undefined, - hasAtmark: false, + icon: undefined, hasAnchor: false }) const emit = defineEmits<{ @@ -40,7 +40,9 @@ const handleInput = (event: Event) => {