diff --git a/src/components/common/VnInput.vue b/src/components/common/VnInput.vue index e2d5641da..4c2aef065 100644 --- a/src/components/common/VnInput.vue +++ b/src/components/common/VnInput.vue @@ -41,8 +41,8 @@ const onEnterPress = () => { emit('keyup.enter'); }; -const focus = () => { - vnInputRef.value.focus(); +const handleValue = (val = null) => { + value.value = val; }; defineExpose({ @@ -63,7 +63,7 @@ defineExpose({ :type="$attrs.type" :class="{ required: $attrs.required }" @keyup.enter="onEnterPress()" - :clearable="focus" + :clearable="false" >