Update input.vue
添加对原生 'number' 类型的支持,或者是否可以取消对 type 属性值的过滤,从而可使用其它更多的值?
This commit is contained in:
parent
72653cc906
commit
63017998be
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@
|
||||||
props: {
|
props: {
|
||||||
type: {
|
type: {
|
||||||
validator (value) {
|
validator (value) {
|
||||||
return oneOf(value, ['text', 'textarea', 'password', 'url', 'email', 'date']);
|
return oneOf(value, ['text', 'textarea', 'password', 'url', 'email', 'date', 'number']);
|
||||||
},
|
},
|
||||||
default: 'text'
|
default: 'text'
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue