Giter VIP home page Giter VIP logo

vue-app-verify's Introduction

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 验证码长度 Number 4
enableWord 是否允许输入字母 Boolean false

events - 事件

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

vue-app-verify's People

Contributors

70hnxx avatar

Stargazers

 avatar lorsque avatar LuFei avatar  avatar WMZ avatar 芹菜 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.