Skip to content

Commit d53959b

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/components/slots.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ Passing props to a named slot:
412412

413413
Note the `name` of a slot won't be included in the props because it is reserved - so the resulting `headerProps` would be `{ message: 'hello' }`.
414414

415-
Also note that if you are mixing named scoped slots with the default scoped slot, you need to explicitly define the default template. Otherwise, it would hint that the data of the default scoped slot would be available in the other slots scopes.
415+
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
418418
<template>

0 commit comments

Comments
 (0)