diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 000000000..3945b1110 --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,14 @@ + diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 000000000..3945b1110 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,14 @@ + diff --git a/README.md b/README.md index 9d1851c39..13153a826 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,8 @@ $ hexo server * 发 issue 讨论译法或书写格式 * 发 issue 讨论部署或协作流程上的问题 +有劳在翻译之前移步 [wiki](https://github.com/vuejs/cn.vuejs.org/wiki) 了解相关注意事项。 + **注意:** 1. 原则上这里只进行英文版对应的翻译工作,如果觉得原文有改进之处,或任何不仅针对中文版,而受益所有语言版本的想法,建议直接在英文版仓库讨论。 diff --git a/src/v2/guide/class-and-style.md b/src/v2/guide/class-and-style.md index 7fe5958c1..318729ef4 100644 --- a/src/v2/guide/class-and-style.md +++ b/src/v2/guide/class-and-style.md @@ -15,7 +15,7 @@ order: 6 ``` html
``` -上面的语法表示 `active` 这个 class 存在与否将取决于数据属性 `isActive` 是否为 [truthy](https://developer.mozilla.org/zh-CN/docs/Glossary/Truthy)。 +上面的语法表示 `active` 这个 class 存在与否将取决于数据属性 `isActive` 的 [truthiness](https://developer.mozilla.org/zh-CN/docs/Glossary/Truthy)。 你可以在对象中传入更多属性来动态切换多个 class。此外,`v-bind:class` 指令也可以与普通的 class 属性共存。当有如下模板: @@ -105,7 +105,7 @@ data: { ``` -这样写将始终添加 `errorClass`,但是只有在 `isActive` 是 [truthy](https://developer.mozilla.org/zh-CN/docs/Glossary/Truthy) 时才添加 `activeClass`。 +这样写将始终添加 `errorClass`,但是只有在 `isActive` 是 truthy[[1]](#译者注) 时才添加 `activeClass`。 不过,当有多个条件 class 时这样写有些繁琐。所以在数组语法中也可以使用对象语法: @@ -145,7 +145,7 @@ HTML 将被渲染为: