1.2.2 • Published 6 years ago

vue2-input-mask v1.2.2

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

Vue Input Mask

<template>
    <vue-input-mask :options="{
            creditCard: true,
            onCreditCardTypeChanged: onCreditCardTypeChanged
        }"
        v-model="number"
        id="ccnumber"
        name="ccnumber"
        autocomplete="cc-number"
        type="tel"
    ></vue-input-mask>
</template>

<script>
import vueInputMask from 'vue2-input-mask';

export default {
    components: {
        VueInputMask,
    },
    data() {
        return {
            number: '',
        }
    },
    methods: {
        onCreditCardTypeChanged: (type) => {
            this.type = type;
        }
    }
</script>
1.2.2

6 years ago

1.2.1

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago