Skip to content

Commit 1911553

Browse files
authored
docs(guide/components/slots): clarify slot presence phrasing (#2454)
1 parent 3056c7a commit 1911553

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/guide/components/slots.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,12 +298,12 @@ function BaseLayout(slots) {
298298

299299
## 条件付きスロット {#conditional-slots}
300300

301-
スロットが存在するかどうかに基づいて何かをレンダリングしたい場合があります
301+
スロットにコンテンツが渡されたかどうかに基づいて何かをレンダリングしたい場合があります
302302

303303
これを実現するには、[$slots](/api/component-instance.html#slots) プロパティと [v-if](/guide/essentials/conditional.html#v-if) を組み合わせて使用します。
304304

305305
以下の例では、`header`, `footer`, `default` の 3 つの条件付きスロットを持つ Card コンポーネントを定義しています。
306-
そしてヘッダー/フッター/デフォルトが存在する場合に、スタイル追加のためにスロットをラップしています:
306+
そしてヘッダー/フッター/デフォルトのコンテンツが存在する場合に、スタイル追加のためにスロットをラップしています:
307307

308308
```vue-html
309309
<template>

0 commit comments

Comments
 (0)