From 9e36f80da77330d29426a27385a3dfe7315f3728 Mon Sep 17 00:00:00 2001 From: Hakadao Date: Wed, 16 Aug 2023 23:02:25 +0800 Subject: [PATCH] feat(Input): adjust style & add enter event --- src/components/Input.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/Input.vue b/src/components/Input.vue index ce8fdbd0..a8937113 100644 --- a/src/components/Input.vue +++ b/src/components/Input.vue @@ -6,7 +6,7 @@ interface Props { } const props = withDefaults(defineProps(), { size: 'medium' }) -defineEmits(['update:modelValue']) +defineEmits(['update:modelValue', 'enter']) const modelValue = ref('') @@ -18,11 +18,12 @@ onMounted(() => {