diff --git a/src/components/common/VnInput.vue b/src/components/common/VnInput.vue index c5dc869ec8..06654081a7 100644 --- a/src/components/common/VnInput.vue +++ b/src/components/common/VnInput.vue @@ -52,7 +52,7 @@ const onEnterPress = () => { ref="vnInputRef" v-model="value" v-bind="{ ...$attrs, ...styleAttrs }" - type="text" + :type="$attrs.type" :class="{ required: $attrs.required }" @keyup.enter="onEnterPress()" > @@ -60,8 +60,8 @@ const onEnterPress = () => { -