0.0.1 • Published 7 years ago

vue-number-picker v0.0.1

Weekly downloads
9
License
MIT
Repository
-
Last release
7 years ago

vue-number-picker License

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

MIT

Copyright (c) 2016 Marcelo Fraga