From 0456670dac1153340220603c8c116e3b71f72ae7 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Fri, 28 Mar 2025 18:52:39 +0100 Subject: [PATCH] feat(PinInput): add `autofocus` / `autofocus-delay` props Resolves #3717 --- docs/content/3.components/pin-input.md | 6 ++++++ src/runtime/components/PinInput.vue | 27 ++++++++++++++++++++++++-- 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/docs/content/3.components/pin-input.md b/docs/content/3.components/pin-input.md index 2618ca93..cd33de16 100644 --- a/docs/content/3.components/pin-input.md +++ b/docs/content/3.components/pin-input.md @@ -177,6 +177,12 @@ props: :component-emits +When accessing the component via a template ref, you can use the following: + +| Name | Type | +| ---- | ---- | +| `inputsRef`{lang="ts-type"} | `Ref`{lang="ts-type"} | + ## Theme :component-theme diff --git a/src/runtime/components/PinInput.vue b/src/runtime/components/PinInput.vue index 01416e03..415a400a 100644 --- a/src/runtime/components/PinInput.vue +++ b/src/runtime/components/PinInput.vue @@ -37,6 +37,8 @@ export interface PinInputProps extends Pick @@ -50,7 +52,8 @@ export type PinInputEmits = PinInputRootEmits & {