feat: migrate Pagination Header and InputOTP with field and event regressions

This commit is contained in:
maoyingjie
2026-10-23 13:49:44 +08:00
parent b2525bb04d
commit 1fa2929a24
72 changed files with 5784 additions and 16 deletions
+40
View File
@@ -0,0 +1,40 @@
<script setup lang="ts">
import {
InputOTP,
InputOTPGroup,
InputOTPSeparator,
InputOTPSlot,
Label,
Link,
Surface,
} from "@heroui-vue/components";
import { useId } from "vue";
const otpLabelId = useId();
</script>
<template>
<Surface class="flex w-full flex-col gap-2 rounded-3xl p-6">
<div class="flex flex-col gap-1">
<Label :id="otpLabelId">验证账户</Label>
<p class="text-sm text-muted">我们已向 a****@gmail.com 发送验证码</p>
</div>
<InputOTP :aria-labelledby="otpLabelId" :max-length="6" variant="secondary">
<InputOTPGroup>
<InputOTPSlot :index="0" />
<InputOTPSlot :index="1" />
<InputOTPSlot :index="2" />
</InputOTPGroup>
<InputOTPSeparator />
<InputOTPGroup>
<InputOTPSlot :index="3" />
<InputOTPSlot :index="4" />
<InputOTPSlot :index="5" />
</InputOTPGroup>
</InputOTP>
<div class="flex items-center gap-[5px] px-1 pt-1">
<p class="text-sm text-muted">没有收到验证码?</p>
<Link class="text-foreground underline" href="#">重新发送</Link>
</div>
</Surface>
</template>