Closed
Description
Vue version
3.4.15
Link to minimal reproduction
Steps to reproduce
<!-- App.vue -->
<script setup>
import Component from './Component.vue';
</script>
<template>
<Component name="test">
<template #test>
Does not show
</template>
</Component>
</template>
<!-- Component.vue -->
<script setup>
defineProps(['name'])
</script>
<template>
<slot :name /> <!-- works if :name="name" -->
</template>
What is expected?
It should work as if we wrote :name="name"
as of Vue 3.4 which has released this feature with #9451:
https://blog.vuejs.org/posts/vue-3-4#v-bind-same-name-shorthand
What is actually happening?
No slot is shown. No errors in the console.
System Info
No response
Any additional comments?
No response