1.0.0 • Published 3 years ago

vue-format-input v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

vue-format-input

install

npm install -D vue-format-input

Usage

<template>
  <div calss="">
    <input
      type="text"
      v-model="value"
      v-demo="{ min: 1, max: 10, precision: 2 }"
    />
  </div>
</template>
<script>
import { FormatInput } from 'vue-format-input;

export default {
  directives: {
    'format-input': FormatInput,
  },
  data() {
    return {
      value: ''
    },
  },
};
</script>

Options

optiontypedefaultdescription
minNumber-required
maxNumber-required
precisionNumber0-
emptyBooleantrue-

License

MIT