vue-input-formatter

Demo
305
Install
npm install vue-input-formatter
Latest Version:2.0.8
Vue:3
Last Updated:Feb 22, 2023
Links: GitHub  ·  npm
Maintainer: salihy

Vue Input Formatter

Demo

Installation

Using npm:

$ npm i vue-input-formatter

Usage

<script setup lang="ts">
import { VueInputFormatter } from "vue-input-formatter";
import { ref } from "vue";

const testModel = ref<number>(0);

function increase() {
  testModel.value += 1;
}
</script>

<template>
  <VueNumberInput v-model="testModel" />
  <div>{{ testModel }}</div>
  <div>
    <button @click="testModel = 1000">Set to 1000</button>
    <button @click="increase">Increase</button>
  </div>
</template>

Version History

Version Released Vue License
2.0.8 ^3.2.37
2.0.7 ^3.2.37
2.0.6 ^3.2.37
2.0.5 ^3.2.37
2.0.4 ^3.2.37