🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

vue3-code-input

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue3-code-input

vue3 验证码输入框

latest
Source
npmnpm
Version
1.1.5
Version published
Weekly downloads
16
33.33%
Maintainers
1
Weekly downloads
 
Created
Source

vue3-code-input

vue3 验证码输入框

image

使用

<script setup>
import { VerificationInput } from 'vue3-code-input';

function handleChange(code: string) {
  console.log(code);
}
</script>
<template>
  <VerificationInput @change="handleChange"></VerificationInput>
</template>

样式可以自由覆盖。

参数

propsdesctypedefaultrequired
step验证码个数number6-
autofocus原生属性booleanfalse-
disabled是否禁用booleanfalse-
inputFormatter格式化输入值(t: string) => string仅允许数字和字母-

事件

eventsdesctype
change输入内容改变(value: string) => void

Keywords

vue

FAQs

Package last updated on 03 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts