forwardRefs

Commons
stable

Merge one or more Vue template refs into a target exposure object so their public properties are transparently forwarded. Used by compound components (e.g. Field containing Input) to expose the inner element's methods on the outer `ref`.

API

Signature

Signature TypeScript complète, extraite du fichier util.

typescript

API

Paramètres

Paramètres d'entrée acceptés par cet util.

target
requis
T
The base exposure object (usually the result of defineExpose or an object literal).
refs
requis
U

API

Valeur de retour

La valeur retournée par cet util.

A Proxy of the target that transparently delegates unknown property accesses to the forwarded refs in order.

Usage

Exemples

Extraits de code prêts à coller.

Forward inner input ref from a field wrapper

typescript