-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Closed
Labels
has PRA pull request has already been submitted to solve the issueA pull request has already been submitted to solve the issuescope: compiler🔩 p2-edge-case
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
HighLiuk
Metadata
Metadata
Assignees
Labels
has PRA pull request has already been submitted to solve the issueA pull request has already been submitted to solve the issuescope: compiler🔩 p2-edge-case