All Questions
2 questions
1
vote
1
answer
486
views
How to access SFC data properties from the parent not using $refs in Vue v3?
I have this Vue 3 SFC
<template>
<div>
Home component
</div>
</template>
<script>
export default {
name: 'Home',
icon: 'house-icon'
}
</script&...
11
votes
2
answers
21k
views
Vue <script setup>, unable to use defineProps and defineEmits without importing it
As per the official documentation,
defineProps and defineEmits are compiler macros only
usable inside <script setup>. They do not need to be
imported and are compiled away when <script setup&...