0.1.3 • Published 3 years ago

captcha-input v0.1.3

Weekly downloads
11
License
-
Repository
-
Last release
3 years ago

captcha-input

插件简介

验证码输入框,暂时只支持vue3

安装依赖

npm i captcha-input

项目使用

全局使用

import CaptchaInput from 'captcha-input'
app.use(CaptchaInput)

局部使用

import { CaptchaInput } from 'captcha-input'
components: { CaptchaInput }

注: 需要引入样式

import 'captcha-input/dist/CaptchaInput.css'

template

<captcha-input v-model:captcha="loginInfo.captcha" :number="6"></captcha-input>

参数说明

参数类型必填说明默认值
captchaString验证码
numberNumber验证按长度6