vue-number-picker
v0.0.1
Published
Number picker component for vue.js
Downloads
19
Readme
vue-number-picker
Number picker component for vue.js
Install & basic usage
npm install vue-number-picker
<template>
<div>
<number-picker
:value="quantity"
:min="1"
:max="10"
@update="updateQuantity">
</number-picker>
</div>
</template>
import NumberPicker from 'vue-number-picker'
export default {
components: { NumberPicker },
data () {
return {
quantity: 3
}
},
methods: {
updateQuantity (newQuantity) {
this.quantity = newQuantity
}
}
}
Contributing
# serve with hot reload at localhost:8080
npm run dev
# distribution build with minification
npm run build
# run unit tests
npm run unit
# run all tests
npm test
For detailed explanation on how things work, checkout the guide and docs for vue-loader.
License
Copyright (c) 2016 Marcelo Fraga