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 = [
-
-
-
+
+
+