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.
API
Paramètres
Paramètres d'entrée acceptés par cet util.
- targetrequisT
- The base exposure object (usually the result of defineExpose or an object literal).
- refsrequisU
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