-
-
Notifications
You must be signed in to change notification settings - Fork 487
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Volar shows "1 reference" (correct) in this scenario:
Child.vue:
<template>
<div>
<slot></slot>
</div>
<template>
Parent.vue:
<Child>
<template #default>
Some code
</template>
</Child>
But it shows "0 references" (incorrect) in this scenario:
Child.vue:
<template>
<div>
<slot></slot>
</div>
<template>
Parent.vue:
<Child>
Some code
</Child>
This is not right.
Default slot is used once in both of the above scenarios.
Here is the only scenario when default slot is not used:
Child.vue:
<template>
<div>
<slot></slot>
</div>
<template>
Parent.vue:
<Child />
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working