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) {