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

Commit ef2569d

Browse files
wxsmsJinjiang
andauthored
update slots-unification.md (#739)
* update slots-unification.md * Apply suggestions from code review Co-authored-by: Jinjiang <zhaojinjiang@me.com>
1 parent 8528b66 commit ef2569d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/guide/migration/slots-unification.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ badges:
1818

1919
## 2.x 语法
2020

21-
当使用渲染函数时,即 `h`,2.x 用于在内容节点上定义 `slot` 数据 property。
21+
当使用渲染函数,即 `h`,2.x 曾经在内容节点上定义 `slot` 数据 property。
2222

2323
```js
2424
// 2.x 语法
@@ -28,7 +28,7 @@ h(LayoutComponent, [
2828
])
2929
```
3030

31-
此外,在引用作用域插槽时,可以使用以下方法引用它们
31+
此外,可以使用以下语法引用作用域插槽
3232

3333
```js
3434
// 2.x 语法
@@ -37,7 +37,7 @@ this.$scopedSlots.header
3737

3838
## 3.x 语法
3939

40-
在 3.x 中,将插槽定义为当前节点的子对象
40+
在 3.x 中,插槽以对象的形式定义为当前节点的子节点
4141

4242
```js
4343
// 3.x Syntax
@@ -47,7 +47,7 @@ h(LayoutComponent, {}, {
4747
})
4848
```
4949

50-
当你需要以编程方式引用作用域插槽时,它们现在被统一到 `$slots` 选项中
50+
当你需要以编程方式引用作用域插槽时,它们现在被统一到 `$slots` 选项中了
5151

5252
```js
5353
// 2.x 语法

0 commit comments

Comments
 (0)