-
Notifications
You must be signed in to change notification settings - Fork 3.4k
add style guide blockquote in v-if with v-for #1794
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/v2/guide/conditional.md
Outdated
@@ -196,4 +196,6 @@ Generally speaking, `v-if` has higher toggle costs while `v-show` has higher ini | |||
|
|||
## `v-if` with `v-for` | |||
|
|||
> Use v-if and v-for together is **not recommended**. See the style guide for futher infomation [Avoid v-if with v-for](https://vuejs.org/v2/style-guide/#Avoid-v-if-with-v-for-essential) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd suggest something like this instead:
> Use v-if and v-for together is **not recommended**. See the [style guide](/v2/style-guide/#Avoid-v-if-with-v-for-essential) for further information.
Notice the wording changes and the two spelling mistake corrections.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for your change and correcting, your version is much better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry for didn't get your point, and I push a new commit use p.tip instead. |
does anybody here? |
@CeceWall Thanks for the ping. One extra little change and I think we're good to go :) |
thanks, and i have finished that |
src/v2/guide/conditional.md
Outdated
@@ -196,4 +196,6 @@ Generally speaking, `v-if` has higher toggle costs while `v-show` has higher ini | |||
|
|||
## `v-if` with `v-for` | |||
|
|||
<p class="tip">Use `v-if` and `v-for` together is **not recommended**. See the [style guide](/v2/style-guide/#Avoid-v-if-with-v-for-essential) for further information.</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, but I miss this earlier 😅: It's "Using," not "Use."
Thanks! |
in the vue style guide, it's an essential rule to avoid use v-if and v-for together, i thought beginners should know this.