docs: Translate | Essentials > Conditional Rendering #86
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
resolve #7
Vue2の文章とほぼ変わらなかったので、ほとんどVue2の文章を引用しています。
Vue2の翻訳からの変更点
↓の部分で
テンプレート
ではなく、<template>
としています。lang-ja...noliaki:translate-conditional_rendering#diff-05d26db877d00579eaa2b28cb102443fR18
Vue2のドキュメント: https://jp.vuejs.org/v2/guide/conditional.html#%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC%E3%83%BC%E3%83%88%E3%81%A7%E3%81%AE-v-if-%E3%81%AB%E3%82%88%E3%82%8B%E6%9D%A1%E4%BB%B6%E3%82%B0%E3%83%AB%E3%83%BC%E3%83%97
疑問点
v-if
withv-for
の部分で、以下のドキュメントではv-for
はv-if
よりも優先度が高いとの旨が記載されていると思うのですが、以下のマイグレーションガイドだと、
v-if
は常にv-for
よりも優先されるといった旨が記載されています。これはリスト1つ1つに対してのことではなく、例えば以下のようなリスト全体を非表示にしたい場合に
v-if
はv-for
よりも先に評価され、リストそのものをレンダリングしない、という意味でしょうか?すみません、本来であればVue3のソースコードを追えば良いものの、追えきれずでして…
レビューお願いいたします🙇♂️