Commit fbf462b4402a3d1f0772baed4dc95a2adde559ae

Authored by Aresn
Committed by GitHub
2 parents 26b2cfa0 63017998

Merge pull request #5381 from getive/patch-2

添加对原生 'number' 类型的支持
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 },
... ...