0.2.1 • Published 2 years ago

vue3-captcha-canvas v0.2.1

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

vue3-captcha-canvas

for vue3 use

img.png

install

yarn add vue3-captcha-canvas

usage

<script setup>
import { CaptchaImage } from "vue3-captcha-canvas";

const captchaRef = ref();

const verify = () => {
    captchaRef.value.verify("1234")
}
</script>

<template>
    <CaptchaImage ref="captchaRef"/>
</template>

props

NameTypeDefaultDesp
codeLengthNumber4length of verification code
codeTypeString[]"A", "a", "0"type of verification code A A-Z / a a-z / 0 0-9
contentWidthNumber120captcha width
contentHeightNumber40captcha height
fontSizeMinNumber24minimum font size
fontSizeMaxNumber36maximum font size
textColorMinNumber50minimum text color
textColorMaxNumber160maximum text color
textDegMinNumber-30minimum text rotation
textDegMaxNumber30maximum text rotation
backgroundColorMinNumber200minimum background color
backgroundColorMaxNumber220maximum background color
dotCountNumber30interference dot count
dotColorMinNumber0minimum dot color
dotColorMaxNumber255maximum dot color
lineCountNumber4interference line count
lineColorMinNumber40minimum line color
lineColorMaxNumber180maximum line color
0.2.1

2 years ago

0.2.0

2 years ago

0.1.6-beta

2 years ago

0.1.6

2 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago