1.0.9 • Published 10 months ago

@robin-rossow/vue-input-number v1.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Vue Input Number

Input field component to display a formatted number value. It is meant to be used with Vue 3.

This is rewrite based on vue-numeric written in TypeScript.

Installation

Install via NPM

$ npm install @robin-rossow/vue-input-number --save

Use globally

import VueInputNumberPlugin from '@robin-rossow/vue-input-number'

import { createApp } from 'vue'
import App from './App.vue'

createApp(App)
    .use(VueInputNumberPlugin)
    .mount('#app')

Load in component

import { VueInputNumber } from '@robin-rossow/vue-input-number'

Usage

Load in template

<VueInputNumber v-model="ourModel"/>

Props

PropsRequiredTypeDefault
v-modelstring | number | undefined-
outputType'Number' | 'String''Number'
minnumberNumber.MIN_SAFE_INTEGER
maxnumberNumber.MAX_SAFE_INTEGER
precisionnumber0
thousandSeparatorstring | undefined','
decimalSeparatorstring | undefined','
currencystring''
currencySymbolPosition'prefix' |' suffix''prefix'
emptyValuenumber | ''''

License

vue-number-input is open-sourced software licensed under the MIT license

1.0.9

10 months ago

1.0.8

10 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago

0.0.5

12 months ago

0.0.4

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago