From 9b44d98a7cacfa8736dff58b7b1659b559160267 Mon Sep 17 00:00:00 2001 From: CeceWall Date: Wed, 12 Sep 2018 15:26:02 +0800 Subject: [PATCH 1/6] add style guide blockquote in v-if with v-for --- src/v2/guide/conditional.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/v2/guide/conditional.md b/src/v2/guide/conditional.md index 18d9459f87..f4b69b101d 100644 --- a/src/v2/guide/conditional.md +++ b/src/v2/guide/conditional.md @@ -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 toghter 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) + When used together with `v-if`, `v-for` has a higher priority than `v-if`. See the list rendering guide for details. From c776ba4d3d1938e284e2c207dae2f6a774d45feb Mon Sep 17 00:00:00 2001 From: CeceWall Date: Wed, 12 Sep 2018 15:35:37 +0800 Subject: [PATCH 2/6] fix typo in v-if with v-for --- src/v2/guide/conditional.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v2/guide/conditional.md b/src/v2/guide/conditional.md index f4b69b101d..93774473a0 100644 --- a/src/v2/guide/conditional.md +++ b/src/v2/guide/conditional.md @@ -196,6 +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 toghter 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) +> 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) When used together with `v-if`, `v-for` has a higher priority than `v-if`. See the list rendering guide for details. From 6811c04e7c46010856a1998cb0e3003926a3bcad Mon Sep 17 00:00:00 2001 From: CeceWall Date: Wed, 19 Sep 2018 16:16:48 +0800 Subject: [PATCH 3/6] change style guide link and fix typo --- src/v2/guide/conditional.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v2/guide/conditional.md b/src/v2/guide/conditional.md index 93774473a0..3ec5ece2cf 100644 --- a/src/v2/guide/conditional.md +++ b/src/v2/guide/conditional.md @@ -196,6 +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) +> 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. When used together with `v-if`, `v-for` has a higher priority than `v-if`. See the list rendering guide for details. From 7f1605f1d62a60e89c106eb2c3f9bf1f894dd7f4 Mon Sep 17 00:00:00 2001 From: CeceWall Date: Thu, 20 Sep 2018 10:35:39 +0800 Subject: [PATCH 4/6] use p.tip instead --- src/v2/guide/conditional.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v2/guide/conditional.md b/src/v2/guide/conditional.md index 3ec5ece2cf..9fed73be51 100644 --- a/src/v2/guide/conditional.md +++ b/src/v2/guide/conditional.md @@ -196,6 +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](/v2/style-guide/#Avoid-v-if-with-v-for-essential) for further information. +

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.

When used together with `v-if`, `v-for` has a higher priority than `v-if`. See the list rendering guide for details. From fddd78f98cbcf50b10aabbdf6cebde1a65309d0b Mon Sep 17 00:00:00 2001 From: CeceWall Date: Thu, 27 Sep 2018 20:34:51 +0800 Subject: [PATCH 5/6] enclose v-if and v-for in backticks --- src/v2/guide/conditional.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v2/guide/conditional.md b/src/v2/guide/conditional.md index 9fed73be51..855594a003 100644 --- a/src/v2/guide/conditional.md +++ b/src/v2/guide/conditional.md @@ -196,6 +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](/v2/style-guide/#Avoid-v-if-with-v-for-essential) for further information.

+

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.

When used together with `v-if`, `v-for` has a higher priority than `v-if`. See the list rendering guide for details. From 032e7333c0d4f25811f93064716d6d54c0f3a1fe Mon Sep 17 00:00:00 2001 From: CeceWall Date: Fri, 28 Sep 2018 09:00:24 +0800 Subject: [PATCH 6/6] fix grammar --- src/v2/guide/conditional.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v2/guide/conditional.md b/src/v2/guide/conditional.md index 855594a003..4e1fdfe1fd 100644 --- a/src/v2/guide/conditional.md +++ b/src/v2/guide/conditional.md @@ -196,6 +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](/v2/style-guide/#Avoid-v-if-with-v-for-essential) for further information.

+

Using `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.

When used together with `v-if`, `v-for` has a higher priority than `v-if`. See the list rendering guide for details.