Commit 63017998be27e8a2782a34a99ee6849d1898a9a4
Committed by
GitHub
1 parent
72653cc9
Update input.vue
添加对原生 'number' 类型的支持,或者是否可以取消对 type 属性值的过滤,从而可使用其它更多的值?
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/components/input/input.vue
... | ... | @@ -85,7 +85,7 @@ |
85 | 85 | props: { |
86 | 86 | type: { |
87 | 87 | validator (value) { |
88 | - return oneOf(value, ['text', 'textarea', 'password', 'url', 'email', 'date']); | |
88 | + return oneOf(value, ['text', 'textarea', 'password', 'url', 'email', 'date', 'number']); | |
89 | 89 | }, |
90 | 90 | default: 'text' |
91 | 91 | }, | ... | ... |