Skip to content
This repository was archived by the owner on Aug 8, 2022. It is now read-only.

Commit f618b60

Browse files
authored
style: Unified style (#203)
* style: Unified style * style: Synchronize English documents * fix: Strong font is not displayed correctly * fix: Delete error code * fix: Modified according to the amendment * update: src/guide/migration/custom-directives.md
1 parent 7157f10 commit f618b60

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/guide/migration/custom-directives.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ Vue.directive('highlight', {
4646

4747
- bind → **beforeMount**
4848
- inserted → **mounted**
49-
- **beforeUpdate**:<sup style="color:green">新的!</sup>这是在元素本身更新之前调用的,很像组件生命周期钩子
50-
- update → <sup style="color:red">移除!</sup>有太多的相似之处要更新,所以这是多余的,请改用 `updated`
49+
- **beforeUpdate**新的!这是在元素本身更新之前调用的,很像组件生命周期钩子
50+
- update → 移除!有太多的相似之处要更新,所以这是多余的,请改用 `updated`
5151
- componentUpdated → **updated**
52-
- **beforeUnmount** <sup style="color:green">新的!</sup>与组件生命周期钩子类似,它将在卸载元素之前调用。
52+
- **beforeUnmount**新的!与组件生命周期钩子类似,它将在卸载元素之前调用。
5353
- unbind -> **unmounted**
5454

5555
最终 API 如下:
@@ -107,7 +107,7 @@ mounted(el, binding, vnode) {
107107

108108
## 实施细节
109109

110-
在 Vue 3 中,我们现在支持片段,这允许我们为每个组件返回多个 DOM 节点。你可以想象,对于具有多个 lis 的组件或一个表的子元素这样的组件有多方便:
110+
在 Vue 3 中,我们现在支持片段,这允许我们为每个组件返回多个 DOM 节点。你可以想象,对于具有多个 `<li>` 的组件或一个表的子元素这样的组件有多方便:
111111

112112
```html
113113
<template>
@@ -127,4 +127,4 @@ mounted(el, binding, vnode) {
127127
<div @vnodeMounted="myHook" />
128128
```
129129

130-
这与属性 fallthrough 行为是一致的,因此,当子组件在内部元素上使用 `v-bind="$attrs"` 时,它也将应用对其使用的任何自定义指令。
130+
这与属性 fallthrough 行为是一致的,因此,当子组件在内部元素上使用 `v-bind="$attrs"` 时,它也将应用对其使用的任何自定义指令。

src/guide/migration/custom-elements-interop.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ badges:
77

88
## 概览
99

10-
- **BREAKING:**自定义元素白名单现在在模板编译期间执行,应该通过编译器选项而不是运行时配置来配置。
11-
- **BREAKING:**特定 `is` prop 用法仅限于保留的 `<component>` 标记
12-
- **NEW:**有了新的 `v-is` 指令来支持 2.x 用例,其中在原生元素上使用了 `v-is` 来处理原生 HTML 解析限制。
10+
- **非兼容**自定义元素白名单现在在模板编译期间执行,应该通过编译器选项而不是运行时配置来配置。
11+
- **非兼容**特定 `is` prop 用法仅限于保留的 `<component>` 标记
12+
- ****有了新的 `v-is` 指令来支持 2.x 用例,其中在原生元素上使用了 `v-is` 来处理原生 HTML 解析限制。
1313

1414
## 自主定制元素
1515

src/guide/migration/fragments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ badges:
2525
</template>
2626
```
2727

28-
## 3.x Synta 语法 x
28+
## 3.x 语法
2929

3030
在 3.x 中,组件现在可以有多个根节点!但是,这确实要求开发者明确定义属性应该分布在哪里。
3131

0 commit comments

Comments
 (0)