Coder Social home page Coder Social logo

ls1231 / vue-security-code Goto Github PK

View Code? Open in Web Editor NEW
33.0 33.0 15.0 483 KB

An security-code input implement by vue 2.0

Home Page: https://ls1231.github.io/vue-security-code/

License: MIT License

JavaScript 80.59% HTML 1.37% Vue 18.04%
code input vue2

vue-security-code's People

Contributors

ls1231 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vue-security-code's Issues

error when implementation in vue cli

This dependency was not found:

  • !!vue-style-loader!css-loader?{"sourceMap":true}!../../../../vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-004e7632","scoped":true,"hasInlineConfig":false}!less-loader?{"sourceMap":true}!../../../../vue-loader/lib/selector?type=styles&index=0!./index.vue in ./node_modules/vue-security-code/src/components/security-code/index.vue

To install it, you can run: npm install --save !!vue-style-loader!css-loader?{"sourceMap":true}!../../../../vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-004e7632","scoped":true,"hasInlineConfig":false}!less-loader?{"sourceMap":true}!../../../../vue-loader/lib/selector?type=styles&index=0!./index.vue

光标闪烁

怎么可以让此组件在触发输入框的时候 有一个光标 闪烁 ,并自动下跳,
感谢 做出如此简易/好用的验证码 组件

Is it possible to configure input type?

Currently its hardcoded type="tel", it doesnt matter for desktop but on mobile it will only enable telephone keyboard making it impossible to use for alphanumeric pin codes.

Is it possible to configure it? I could provide a pull request if it's not supported.

ios 短信验证码自动填充问题

ios 短信验证码自动填充后,监听不到 value 值的变化
解决方案:

<input ref="input" class="input-code" @input="handleInput($event)" v-model="value"
           :id="`code-${uuid}`" :name="`code-${uuid}`" type="tel" :maxlength="length"
           autocorrect="off" autocomplete="off" autocapitalize="off">

@keyup 改成 @input 事件监听即可

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.