File tree 2 files changed +9
-7
lines changed
docs/content/4.api/1.components
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ An explicit `path`{lang=ts} can be given to the component.
40
40
<template >
41
41
<main >
42
42
<ContentList path =" /articles" >
43
- <template v-slot =" { list }" >
43
+ <template #default =" { list }" >
44
44
<!-- ...default slot -->
45
45
</template >
46
46
<template #not-found >
Original file line number Diff line number Diff line change @@ -62,12 +62,14 @@ The `not-found`{lang=ts} slot can be used to display a default content before re
62
62
``` html [pages/about.vue]
63
63
<template >
64
64
<main >
65
- <ContentQuery path =" /about/authors" :where =" { type: 'csv' }" v-slot =" { data }" >
66
- <ul >
67
- <li v-for =" author of data" :key =" author.name" >
68
- {{ author.name }}
69
- </li >
70
- </ul >
65
+ <ContentQuery path =" /about/authors" :where =" { type: 'csv' }" >
66
+ <template #default =" { data }" >
67
+ <ul >
68
+ <li v-for =" author of data" :key =" author.name" >
69
+ {{ author.name }}
70
+ </li >
71
+ </ul >
72
+ </template >
71
73
<template #not-found >
72
74
<p >No authors found.</p >
73
75
</template >
You can’t perform that action at this time.
0 commit comments