vue-captcha
Component (es6) Captcha for Vue.js
Version
- npm v1.0.2 (latest) HERE
Demo
The demo page is HERE.
Requirements
- Vue.js
^2.0.0
- uuid
^4.7.0
- font-awesome
^3.1.0
Instllation
npm
$ npm install --save vue-captcha
Usage
Default Submit Change: color Change: color / resolve (only text) Change: color / resolve (only digit) Change: color / mode (math) Change: color / mode (math) / resolve (only text) Change: color / mode (math) / resolve (only digit)
API
-
callSuccess
- call Function when Captcha is successful
type: Functionrequired: true
-
color
- apply color to different components in the Captcha
type: Stringreuired: falsedefault: '#1D9D74'
-
mode
- change the way in the option to question
type: Stringrequired: falsedefault: 'text' // 'text' -> alphanumeric | 'math' -> operations math
-
resolve
- change the way the solve
type: Stringrequired: falsedefault: 'all' // 'all' -> written and digit | 'text' -> only written | 'digit' -> only digit
prop (Function CallBack -success- )
{ console}
License
Copyright (c) 2017-present, Rafael Briceño @rafaelbm91