From 2855499148b5a551e385453b8d92695a27dad8fe Mon Sep 17 00:00:00 2001 From: jorgep Date: Thu, 16 May 2024 12:07:47 +0200 Subject: [PATCH] fix: refs #6891 hide across only on disable --- src/components/common/VnInput.vue | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/src/components/common/VnInput.vue b/src/components/common/VnInput.vue index 9d5849b68..8358cd6e6 100644 --- a/src/components/common/VnInput.vue +++ b/src/components/common/VnInput.vue @@ -37,14 +37,6 @@ const styleAttrs = computed(() => { : {}; }); -const onEnterPress = () => { - emit('keyup.enter'); -}; - -const handleValue = (val = null) => { - value.value = val; -}; - const focus = () => { vnInputRef.value.focus(); }; @@ -73,7 +65,7 @@ const inputRules = [ v-bind="{ ...$attrs, ...styleAttrs }" :type="$attrs.type" :class="{ required: $attrs.required }" - @keyup.enter="onEnterPress()" + @keyup.enter="emit('keyup.enter')" :clearable="false" :rules="inputRules" :lazy-rules="true" @@ -82,14 +74,14 @@ const inputRules = [ - -