Vue Cleave component is based on cleave.js for Vue

Related tags

Masked Input cleave
Overview

Cleave

Cleave component is based on cleave.js for Vue Bulma.

Installation

$ npm install vue-cleave --save

Examples

">
<template>
  <cleave placeholder="Enter your credit card number" :options="{ creditCard: true }">cleave>
template>

<script>
import Cleave from 'vue-cleave'

export default {
  components: {
    Cleave
  }
}
script>

Badges


fundon.me  ·  GitHub @fundon  ·  Twitter @_fundon

Comments
  • Making this component compatible with Vue 2.0 and parent v-model

    Making this component compatible with Vue 2.0 and parent v-model

    I was having trouble syncing the input value from this child component with the v-model of the parent. This was the solution to make it work for me with Vue 2.0.

    <input :type="type" :value="value" @input="$emit('input', $event.target.value)" />

    opened by Ataraxy 4
  • Problem with v-model

    Problem with v-model

    I thought this issue had been closed, but cleave no longer works when using v-model. I'm using vue@^2.3.3 and vue-cleave@^1.2.0.

    Here is the typical cleave component. When adding the v-model field, the cleave formatting no longer works and without the v-model field, it does.

    <cleave v-model="date" placeholder="Delivery Date" :options="{ date: true, datePattern: [ 'm', 'd', 'Y'] }"></cleave>

    opened by alexandrasmith00 3
  • Having problem using v-model with this componement

    Having problem using v-model with this componement

    After upgrade to version 1.2.0. The auto format from cleave.js stopped working if I add an v-model attribute.

    Here's the code I use.

                <cleave
                       class="input"
                       v-model="code.forwardPhoneNumber"
                       placeholder="Enter phone number"
                       :options="{ blocks: [0, 3, 3, 4],
                       numericOnly: true,
                       delimiters: ['(', ') ', '-'] }">
                </cleave>
    

    Tested on both firefox & chrome & safari in macOs. I think this should be a major issue.

    opened by gongdao123 3
  • Rebuild cleave on options change

    Rebuild cleave on options change

    Could we add a deep watch to the options object to rebuild if the options change?

    For example, if I am using this for a phone number input that is dependent on their country setting, the option object may change.

    opened by BrockReece 1
  • Add support for Vue 2.0 v-model

    Add support for Vue 2.0 v-model

    Now you can do something like the following and it will work as expected:

    <cleave placeholder="Enter your credit card number" :options="{ creditCard: true }" v-model="card"></cleave>
    
    opened by goldfire 1
  • Handle external changes to value

    Handle external changes to value

    Sometimes the value of a field is initialised or calculated externally and thus filled in automatically, not by an input event. External changes of the value are now also passed to cleave to make sure they are masked properly.

    #19

    opened by NeleR 0
  • Way of passing through events

    Way of passing through events

    Hey, me again

    This PR will allow you to pass event listeners through a prop object in the following format

    { 
      blur() {
        console.log('on blur')
      }
    }
    

    I think this is a lot cleaner than passing events through as separate props

    opened by BrockReece 0
  • Handle external changes to value

    Handle external changes to value

    Sometimes the value of a field is initialised or calculated externally and thus filled in automatically, not by an input event. External changes of the value are now also passed to cleave to make sure they are masked properly.

    #19

    opened by NeleR 0
  • Dynamic masking based on input length

    Dynamic masking based on input length

    I need to have a text input so that the user can type the company brazillian CNPJ number (14 digits) or a brazillian CPF (11 digits) with a dynamic mask according to the length of the text, as the example below:

    CNPJ: 12.345.789/1011-12 CPF: 123.456.789-01

    Is there are way to do this using vue-bulma/cleave ? If not, that'd be a really great feature to be implemented in the next release. Thanks a lot.

    opened by felipesilvati 0
  • Handle value being changed externally (not through input)

    Handle value being changed externally (not through input)

    In our setup, we have some fields that are 'calculated' and thus are filled in automatically, not by an input event. We need masks on those fields as well. However, it seems like external changes of the value are not passed to cleave at the moment and thus are not masked properly.

    opened by NeleR 0
  • Need a fresh cleave.js 1.0.1

    Need a fresh cleave.js 1.0.1

    1.0.1 exposed last days brings a lot of bug fix (https://github.com/nosir/cleave.js/pull/161 & https://github.com/nosir/cleave.js/pull/150 for me)

    vue-cleave should update cleave.js dependency version (if compatible...)

    opened by xGouley 2
Owner
Vue Bulma UI Components
null
Vue Fake input is a Vue.js based component to create custom inputs for individual characters.

Vue Fake Input Vue Fake input is a Vue.js based component to create custom inputs for individual characters. Table of Contents Installation Usage Lice

Cláudio Luiz Castro 84 Jul 26, 2022
Input field component to display a formatted currency value based on Vue.js

vue-numeric Input field component to display a formatted currency value based on Vue. Live Demo Works with Vue 2.* Installation Install via CDN <scrip

Kevin Ongko 428 Dec 29, 2022
A pattern-placeholder for Vue that changes based on input text.

This plugin provides a placeholder component for Vue.js. It uses canvas to render patterns from input string like URL.

Victor 6 Apr 19, 2022
Input mask library for vue.js based on credit-card-input-mask

vue-restricted-input Input mask for vue.js based on credit-card-input-mask Why ? credit-card-input-mask perfect work with carriage position, fast. Ins

Ivan Demidov 11 Nov 21, 2021
Click to show input text box Vue Component ... inspired by Trello. This is my first time publishing Vue Component via npm package and let me know if you encounter any issues, bugs, or improvement. Thanks!

label-edit Click to show input text box Vue Component ... inspired by Trello. This is my first time publishing Vue Component via npm package and let m

Myo Kyaw Htun 22 Dec 18, 2022
A fully customizable, OTP (one-time-password) input component built with Vue 3.x and Vue Composition API.

vue-otp-input A fully customizable, OTP (one-time-password) input component built with Vue 3.x and Vue Composition API. Installation To install the la

Ejiro Asiuwhu 41 Nov 4, 2022
Masked input component for Vue.js

Vue Masked Input Dead simple masked input component for Vue.js 2.X. Based on inputmask-core. Live Demo Install npm npm install vue-masked-input --save

null 451 Dec 27, 2022
A Vue.js component that wraps the awesome autoNumeric input formatter library

vue-autoNumeric A Vue.js component that wraps the awesome AutoNumeric input formatter library Get in touch on vue-autoNumeric wraps the awesome AutoNu

AutoNumeric 86 Nov 13, 2022
A custom input number component for Vue.js 2

vue-input-number A custom input number component for Vue.js 2. Install Yarn yarn add vue-input-number --dev NPM npm install vue-input-number --save-de

Jose Quintana 13 Nov 24, 2022
Vue.js component for jQuery mask plugin

Vue jQuery Mask Component Vue.js component for jQuery Mask Plugin Demo on JSFiddle Version matrix Vue.js version Package version Branch 2.x 1.x 1.x 3.

Ankur Kumar 19 Mar 4, 2022
A versetile tag input component built with Vue 3 Composition API

A versetile tag input component built with Vue 3 Composition API

Mayank 12 Oct 12, 2022
Split Input Component for Vue 3.x

Split Input Component for Vue 3.x Used for otps, transaction pin, passwords etc Install NPM npm i vue-split-input --save Yarn yarn add vue-split-inpu

Anjorin Damilare 7 Dec 14, 2022
A Vue.js (>= 3.2) web component that wraps around an html input of type 'range' with label and styling options.

range-comp range-comp is Vue.js (>= 3.2) web component that wraps around an html input of type 'range' with label and styling options. range-comp can

null 0 May 9, 2022
Yet another Vue component for input masking

vue-input-mask Yet another Vue component for input masking. Based on react-input-mask. Demo Install yarn add vue-input-mask or npm i -S vue-input-mask

null 18 Jun 15, 2022
Vue Currency Input component allows an easy input of currency formatted numbers

Vue Currency Input The Vue Currency Input component allows an easy input of currency formatted numbers. It provides both standalone component (<curren

WeblineIndia 1 May 25, 2022
Vue-money-format: A lightweight display component for localized currency display

This is a lightweight display component for localized currency display. It has no dependencies other than Vue. It supports both float and integer input, and can adjust for values stored as decimal-based subunits, such as cents, dirham, groszy, etc. Storing currency values in terms of the subunit allows you to store integers, rather than floating numbers, which ensures accuracy.

null 15 Sep 22, 2022
A tags input component for Vue 3 with autocompletion, custom validation, templating and much more

vue-tags-input A tags input component for Vue 3 with autocompletion, custom validation, templating and much more Forked from @johmun/vue-tags-input, w

Sinclair Chen 18 Nov 14, 2022
base on vue2.0+ verification code input component. (基于Vue2.0+的移动端验证码输入组件)

vue-input-code 基于Vue2.0+的移动端验证码输入组件. 功能预览 输入时回调 结果回调 自定义错误处理 自定义验证码个数 样式可控 这里是可爱的Demo 支持 支持 Vue.js 2.0+. 安装和使用 npm install vue-input-code --save 作为全局组

Obeta 66 Jan 10, 2022
A vue2 component for manual data masking

A vue2 component for manual data masking

HC 5 Aug 2, 2022