1.0.0 • Published 3 years ago
vue-format-input v1.0.0
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
option | type | default | description |
---|---|---|---|
min | Number | - | required |
max | Number | - | required |
precision | Number | 0 | - |
empty | Boolean | true | - |
License
MIT
1.0.0
3 years ago