1.0.7 • Published 4 years ago

vue-app-verify v1.0.7

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

vue-app-verify

仿app输入验证码效果的vue组件

example

github

有意见和建议,欢迎到我的gihub项目vue-app-verify提issue

开发计划

  • 可选的前端验证功能.配置一个验证码,前端校验验证码是否正确

Installation - 安装

yarn add vue-app-verify 或者,如果你使用npm的话 npm i vue-app-verify -S

Usage - 用法

全局引入:

1.main.js:

import vueAppVerify from 'vue-app-verify'
Vue.use(vueAppVerify)

2.组件中:

<template>
  <div id="app">
    <vueAppVerify @completed="completed"/>
  </div>
</template>

按需引入

组件中:

<template>
  <div id="app">
    <vueAppVerify @completed="completed"/>
  </div>
</template>

<script>
import vueAppVerify from 'vue-app-verify'
export default {
  ...
  components: {
    vueAppVerify
  },
  ...
}
</script>

Props - 属性

参数说明类型默认值
length验证码长度Number4
enableWord是否允许输入字母Booleanfalse

events - 事件

事件名称说明回调参数
completed完成输入验证码(字符串)
1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago