vue-number-custom
v1.0.3
Published
Number input only allows integer and decimal values
Downloads
6
Readme
vue-number-custom
Works with Vue 2.*
Installation
$ npm install vue-number-custom --save
Install as Component
import Vue from 'vue'
export default {
name: 'App',
components: {
VueNumber
}
}
Install as Plugin
import Vue from 'vue'
import VueNumberCustom from 'vue-number-custom'
Vue.use(VueNumberCustom)
Usage
Quick example
<template>
<vue-number-custom v-model="price"></vue-number-custom>
</template>
<script>
import VueNumberCustom from 'vue-number-custom'
export default {
name: 'App',
components: {
VueNumberCustom
},
data: () => ({
price: 100
}),
}
</script>
License
vue-number is open-sourced software licensed under the MIT license