Skip to content

Commit 9d8478d

Browse files
committed
docs: fix template syntax
resolves #1979
1 parent e46309f commit 9d8478d

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

docs/content/4.api/1.components/2.content-list.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ An explicit `path`{lang=ts} can be given to the component.
4040
<template>
4141
<main>
4242
<ContentList path="/articles">
43-
<template v-slot="{ list }">
43+
<template #default="{ list }">
4444
<!-- ...default slot -->
4545
</template>
4646
<template #not-found>

docs/content/4.api/1.components/4.content-query.md

+8-6
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,14 @@ The `not-found`{lang=ts} slot can be used to display a default content before re
6262
```html [pages/about.vue]
6363
<template>
6464
<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>
7173
<template #not-found>
7274
<p>No authors found.</p>
7375
</template>

0 commit comments

Comments
 (0)