1.0.4 • Published 8 months ago

vue-auth-code-input-with-mobile-support v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

vue-auth-code-input

Authentication code input component in vue

Install

yarn add vue-auth-code-input

Usage

<template>
  <div>
    <vue-auth-code-input @inputChange="handleChange"/>
  </div>
</template>
<script>
import VueAuthCodeInput from 'vue-auth-code-input'
export default {
  components: {
    VueAuthCodeInput
  },
  methods: {
    handleChange(code, index){
      console.log(code)
    }
  }
}
</script>

Attributes

nametypedescriptionrequireddefault
codeLengthNumberset the length of authentication codeNo6

Event

nameparametersdescription
inputChangecodeArray, changedIndexWhen some input value changes
inputCompletecodeArray, changedIndexWhen all input value are not empty
1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago