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
Full TypeScript signature sourced from the util file.
API
Parameters
Input parameters accepted by this util.
- targetrequiredT
- The base exposure object (usually the result of defineExpose or an object literal).
- refsrequiredU
API
Return value
The value returned by this util.
- A Proxy of the target that transparently delegates unknown property accesses to the forwarded refs in order.
Usage
Examples
Ready-to-paste usage snippets.
Forward inner input ref from a field wrapper