Skip to content

Commit d155409

Browse files
noookskirtles-code
andauthored
Update src/guide/components/slots.md
Co-authored-by: skirtle <[email protected]>
1 parent d53959b commit d155409

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/guide/components/slots.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,7 @@ Note the `name` of a slot won't be included in the props because it is reserved
415415
If you are mixing named slots with the default scoped slot, you need to use an explicit `<template>` tag for the default slot. Attempting to place the `v-slot` directive directly on the component will result in a compilation error. This is to avoid any ambiguity about the scope of the props of the default slot. For example:
416416

417417
```vue-html
418+
<!-- This template won't compile -->
418419
<template>
419420
<MyComponent v-slot="{ message }">
420421
<p>{{ message }}</p>

0 commit comments

Comments
 (0)