feat: migrate Pagination Header and InputOTP with field and event regressions
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<script setup lang="ts">
|
||||
import {
|
||||
InputOTP,
|
||||
InputOTPGroup,
|
||||
InputOTPSlot,
|
||||
Label,
|
||||
} from "@heroui-vue/components";
|
||||
|
||||
import { useId } from "vue";
|
||||
const otpLabelId = useId();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="flex w-[280px] flex-col gap-2">
|
||||
<Label :id="otpLabelId">输入 PIN</Label>
|
||||
<InputOTP :aria-labelledby="otpLabelId" :max-length="4">
|
||||
<InputOTPGroup>
|
||||
<InputOTPSlot :index="0" />
|
||||
<InputOTPSlot :index="1" />
|
||||
<InputOTPSlot :index="2" />
|
||||
<InputOTPSlot :index="3" />
|
||||
</InputOTPGroup>
|
||||
</InputOTP>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user