From b8dffc79856fa19c26acc033ad3c7af0e278e68b Mon Sep 17 00:00:00 2001 From: Phan An Date: Sat, 7 Oct 2017 15:35:14 +0100 Subject: [PATCH 01/18] Replace `true` with truthy (#1196) --- src/v2/guide/class-and-style.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v2/guide/class-and-style.md b/src/v2/guide/class-and-style.md index bda43c59ee..5db43bbab3 100644 --- a/src/v2/guide/class-and-style.md +++ b/src/v2/guide/class-and-style.md @@ -103,7 +103,7 @@ If you would like to also toggle a class in the list conditionally, you can do i
``` -This will always apply `errorClass`, but will only apply `activeClass` when `isActive` is `true`. +This will always apply `errorClass`, but will only apply `activeClass` when `isActive` is truthy. However, this can be a bit verbose if you have multiple conditional classes. That's why it's also possible to use the object syntax inside array syntax: From a74cd3f8d746bb269035a79ef0be430bbc000a9f Mon Sep 17 00:00:00 2001 From: GU Yiling Date: Sat, 7 Oct 2017 23:45:11 +0800 Subject: [PATCH 02/18] Change "Registration" to "Global Registration" (#1192) --- src/v2/guide/components.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v2/guide/components.md b/src/v2/guide/components.md index a7d5d1935a..c15641c655 100644 --- a/src/v2/guide/components.md +++ b/src/v2/guide/components.md @@ -10,7 +10,7 @@ Components are one of the most powerful features of Vue. They help you extend ba ## Using Components -### Registration +### Global Registration We've learned in the previous sections that we can create a new Vue instance with: From ca216eb25230f1090d14bad11e31bf9473a161f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8B=BE=E4=B8=89=E8=82=A1=E5=9B=9B?= Date: Sat, 7 Oct 2017 23:45:34 +0800 Subject: [PATCH 03/18] typos (#1191) --- src/v2/style-guide/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/v2/style-guide/index.md b/src/v2/style-guide/index.md index 2bf87b3430..92b4c63cf0 100644 --- a/src/v2/style-guide/index.md +++ b/src/v2/style-guide/index.md @@ -30,7 +30,7 @@ Where multiple, equally good options exist, an arbitrary choice can be made to e 1. train your brain to more easily parse most of the community code you encounter 2. be able to copy and paste most community code examples without modification -2. often find new hires are already accustomed to your preferred coding style, at least in regards to Vue +3. often find new hires are already accustomed to your preferred coding style, at least in regards to Vue ### Priority D: Use with Caution @@ -352,7 +352,7 @@ Beyond the `scoped` attribute, using unique class names can help ensure that 3rd - +