From fdbbe38c1af35bd4cd87d93b6ae77978f18e9824 Mon Sep 17 00:00:00 2001 From: cyy Date: Wed, 23 Sep 2020 15:42:15 +0800 Subject: [PATCH] fix:typos --- src/guide/class-and-style.md | 2 +- src/guide/migration/custom-directives.md | 2 +- src/guide/migration/custom-elements-interop.md | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/guide/class-and-style.md b/src/guide/class-and-style.md index 091267930..ff1f1878d 100644 --- a/src/guide/class-and-style.md +++ b/src/guide/class-and-style.md @@ -243,4 +243,4 @@ data() { 这样写只会渲染数组中最后一个被浏览器支持的值。在本例中,如果浏览器支持不带浏览器前缀的 flexbox,那么就只会渲染 `display: flex`。 -**译者注 ** [ 1] truthy 不是 `true`,详见 [MDN](https://cn.vuejs.org/v2/guide/computed.html) 的解释。 \ No newline at end of file +**译者注** [ 1] truthy 不是 `true`,详见 [MDN](https://cn.vuejs.org/v2/guide/computed.html) 的解释。 \ No newline at end of file diff --git a/src/guide/migration/custom-directives.md b/src/guide/migration/custom-directives.md index 129e08265..b9a6d1d89 100644 --- a/src/guide/migration/custom-directives.md +++ b/src/guide/migration/custom-directives.md @@ -49,7 +49,7 @@ Vue.directive('highlight', { - **beforeUpdate**:新的!这是在元素本身更新之前调用的,很像组件生命周期钩子 - update → 移除!有太多的相似之处要更新,所以这是多余的,请改用 `updated` - componentUpdated → **updated** -- **beforeUnmount ** 新的!与组件生命周期钩子类似,它将在卸载元素之前调用。 +- **beforeUnmount** 新的!与组件生命周期钩子类似,它将在卸载元素之前调用。 - unbind -> **unmounted** 最终 API 如下: diff --git a/src/guide/migration/custom-elements-interop.md b/src/guide/migration/custom-elements-interop.md index 9fbc48199..8af2c9030 100644 --- a/src/guide/migration/custom-elements-interop.md +++ b/src/guide/migration/custom-elements-interop.md @@ -7,9 +7,9 @@ badges: ## 概览 -- **BREAKING:**自定义元素白名单现在在模板编译期间执行,应该通过编译器选项而不是运行时配置来配置。 -- **BREAKING:**特定 `is` prop 用法仅限于保留的 `` 标记 -- **NEW:**有了新的 `v-is` 指令来支持 2.x 用例,其中在原生元素上使用了 `v-is` 来处理原生 HTML 解析限制。 +- **BREAKING:** 自定义元素白名单现在在模板编译期间执行,应该通过编译器选项而不是运行时配置来配置。 +- **BREAKING:** 特定 `is` prop 用法仅限于保留的 `` 标记 +- **NEW:** 有了新的 `v-is` 指令来支持 2.x 用例,其中在原生元素上使用了 `v-is` 来处理原生 HTML 解析限制。 ## 自主定制元素