<script setup>
Also written: script setup
The compact way to write a component's script: it runs once when the component is created, and its top-level variables, functions and imports are available in the template.
Also written: script setup
The compact way to write a component's script: it runs once when the component is created, and its top-level variables, functions and imports are available in the template.