1.0.4 • Published 5 years ago
@trungnam/vue-currency-input v1.0.4
vue-currency-input
Project setup
yarn installCompiles and hot-reloads for development
yarn serveCompiles and minifies for production
yarn buildLints and fixes files
yarn lintCustomize configuration
How to use
main.js
import Vue from 'vue'
import VueCurrencyInput from '@trungnam/vue-currency-input';
Vue.use(VueCurrencyInput.VueCurrencyInput);template
<vue-currency-input />Events
| key | description | params |
|---|---|---|
change | triggers only when the input box loses focus | value: String |
focus | triggers when Input focuses | e: Event |
blur | triggers when Input blurs | e: Event |
Attributes
| key | description | type | default |
|---|---|---|---|
| disabled | whether Input is disabled | Boolean | false |
| placeholder | the placeholder of Input | String | "" |
| maxValue | the maximum value of Input | Number | undefined |