[Vuejs]-How can i use context with setup script vue composition api

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>

Leave a comment