Vue <script setup> compiler macro for declaring a component's exposed
instance properties when it is accessed by a parent component via template
refs.
<script setup> components are closed by default - i.e. variables inside
the <script setup> scope is not exposed to parent unless explicitly exposed
via defineExpose.
This is only usable inside <script setup>, is compiled away in the
output and should not be actually called at runtime.
Vue
<script setup>
compiler macro for declaring a component's exposed instance properties when it is accessed by a parent component via template refs.<script setup>
components are closed by default - i.e. variables inside the<script setup>
scope is not exposed to parent unless explicitly exposed viadefineExpose
.This is only usable inside
<script setup>
, is compiled away in the output and should not be actually called at runtime.