0👍
You can use defineProps
for props and useAttrs
if you really need those :
<script setup>
import { useAttrs } from 'vue';
const attrs = useAttrs();
console.log(attrs);
</script>
- [Vuejs]-How can I register external component dynamically without any modification of parent(main) Project in vue3?
- [Vuejs]-Vue Allow Parent's Click Event to be Triggered on Child
Source:stackexchange.com