Update input.vue

添加对原生 'number' 类型的支持,或者是否可以取消对 type 属性值的过滤,从而可使用其它更多的值?
This commit is contained in:
getive 2019-03-06 19:07:13 +08:00 committed by GitHub
parent 72653cc906
commit 63017998be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,7 +85,7 @@
props: {
type: {
validator (value) {
return oneOf(value, ['text', 'textarea', 'password', 'url', 'email', 'date']);
return oneOf(value, ['text', 'textarea', 'password', 'url', 'email', 'date', 'number']);
},
default: 'text'
},