In my investigation, I found that maxLength pertains only to text types. Curious about min & max support, I conducted a test and it turns out they are supported. Here's an example for your reference:
new Vue({
el: '#app',
methods: {
onSubmit(evt) {
evt.preventDefault()
console.log(evt)
}
}
})
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js"></script>
<script src="https://unpkg.com/bootstrap-vue@latest/dist/bootstrap-vue.min.js"></script>
<div id="app">
<b-form @submit="onSubmit">
<b-form-input type="number" max="20" min="10"><min="10" required></b-form-input>
<b-button type="submit" variant="primary">Submit</b-button>
</b-form>
</div>
It's important to note that min & max constraints are validated upon form submission, with the required parameter in place.
EDIT: included form & submit in the snippet
EDIT 2:
Submission without form
new Vue({
el: '#app',
methods: {
onSubmit(evt) {
evt.preventDefault()
console.log(evt)
}
},
data() {
return{
inputValue: 15
}
},
watch: {
inputValue(val){
if(val < 10)
this.inputValue = 10;
else if(val > 20)
this.inputValue = 20;
}
}
})
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js"></script>
<script src="https://unpkg.com/bootstrap-vue@latest/dist/bootstrap-vue.min.js"></script>
<div id="app">
<b-form-input v-model="inputValue" type="number" max="20" min="10" required></b-form-input>
</div>