Merge pull request #5381 from getive/patch-2

添加对原生 'number' 类型的支持
This commit is contained in:
Aresn 2019-03-08 15:16:31 +08:00 committed by GitHub
commit fbf462b440
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'
},