From 7a6c93cc122aeec57cc897da543785b4d70be107 Mon Sep 17 00:00:00 2001 From: loopzhou <363415642@qq.com> Date: Wed, 22 Nov 2023 11:10:17 +0800 Subject: [PATCH] =?UTF-8?q?feat(input):=20input=E5=A2=9E=E5=8A=A0pattern,?= =?UTF-8?q?=20inputmode=E7=9A=84=E9=80=8F=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/input/input.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/input/input.vue b/src/input/input.vue index bc69a983a..cf7013b8b 100644 --- a/src/input/input.vue +++ b/src/input/input.vue @@ -23,6 +23,8 @@ :placeholder="placeholder" :readonly="readonly" :maxlength="maxlength || -1" + :pattern="pattern" + :inputmode="inputmode" @focus="handleFocus" @blur="handleBlur" @input="handleInput" @@ -74,6 +76,12 @@ export default defineComponent({ type: String, default: 'top', }, + pattern: { + type: String, + }, + inputmode: { + type: String, + }, }, emits: ['update:value', 'update:modelValue', 'click-icon', 'focus', 'blur', 'change', 'clear'], setup(props, context) {