Adds maxlength attribute support
This commit is contained in:
parent
33442c291f
commit
a012b120ba
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
@ -187,6 +187,14 @@ export default {
|
|||||||
type: [String, Number, Boolean],
|
type: [String, Number, Boolean],
|
||||||
default: () => false
|
default: () => false
|
||||||
},
|
},
|
||||||
|
maxlength: {
|
||||||
|
type: [String, Number, Boolean],
|
||||||
|
default: () => false
|
||||||
|
},
|
||||||
|
minlength: {
|
||||||
|
type: [String, Number, Boolean],
|
||||||
|
default: () => false
|
||||||
|
},
|
||||||
placeholder: {
|
placeholder: {
|
||||||
type: [String, Number, Boolean],
|
type: [String, Number, Boolean],
|
||||||
default: () => false
|
default: () => false
|
||||||
@ -320,7 +328,7 @@ export default {
|
|||||||
return show
|
return show
|
||||||
},
|
},
|
||||||
attributes () {
|
attributes () {
|
||||||
return ['min', 'max', 'placeholder', 'id', 'multiple']
|
return ['min', 'max', 'minlength', 'maxlength', 'placeholder', 'id', 'multiple']
|
||||||
.filter(prop => this[prop] !== false)
|
.filter(prop => this[prop] !== false)
|
||||||
.reduce((attributes, attr) => {
|
.reduce((attributes, attr) => {
|
||||||
attributes[attr] = this[attr]
|
attributes[attr] = this[attr]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user