Skip to content

Commit

Permalink
feat(input): input增加pattern, inputmode的透传
Browse files Browse the repository at this point in the history
  • Loading branch information
LoopZhou committed Nov 22, 2023
1 parent 10e38b1 commit 7a6c93c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/input/input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
:placeholder="placeholder"
:readonly="readonly"
:maxlength="maxlength || -1"
:pattern="pattern"
:inputmode="inputmode"

Check failure on line 27 in src/input/input.vue

View workflow job for this annotation

GitHub Actions / call-test-build / test

Type 'string' is not assignable to type '"search" | "text" | "none" | "url" | "tel" | "email" | "numeric" | "decimal"'.
@focus="handleFocus"
@blur="handleBlur"
@input="handleInput"
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 7a6c93c

Please sign in to comment.