0.1.3 • Published 5 years ago

vue-input-limit v0.1.3

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

vue-input-limit

Vue input limit directive.

Installation

yarn add vue-input-limit
or
$ npm install vue-input-limit -S

Example

<template>
  <input type="text" v-model="value" v-input-limit="/[^\d.]/">
  
  <input type="text" v-model="carnum" v-input-limit="toUpperCase">
</template>

<script>
import inputLimit from 'vue-input-limit';

export default {
    directives: {
        inputLimit,
    },
    data () {
        return {
            value: '',
            carnum: '',
        };
    },
    methods:{
        toUpperCase: v=> v.toUpperCase(),
    },
};
</script>

Support

  • element-ui
  • vue-beauty
0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago