1.1.5 • Published 2 years ago

vue3-code-input v1.1.5

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

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
1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.0.0

4 years ago