需求:连续输入的4位验证码
<template>
<div class="container">
<div class="inputBox">
<div class="text">输入验证码</div>
<div>
<input
v-for="(item, index) in captchas"
:key="index"
v-model="item.num"
:id="'captcha' + index"
@input="inputFinish(index)"
@focus="adjust(index)"
@keydown="inputDirection(index, $event)"
class="auth-b"
type="tel"
maxlength="1"
/>
</div>
</div>
</div>
</template>
<script>
export default {
name: "Ho