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

Commit 745ad88

Browse files
authored
docs: Update transition-group.md (#724)
1 parent 7b21358 commit 745ad88

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/guide/migration/transition-group.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ badges:
88

99
## 概览
1010

11-
`<transition-group>` 不再默认渲染根元素,但仍然可以用 `tag` prop 创建根元素。
11+
`<transition-group>` 不再默认渲染根元素,但仍然可以用 `tag` attribute 创建根元素。
1212

1313
## 2.x 语法
1414

15-
在 Vue 2 中,`<transition-group>` 像其它自定义组件一样,需要一个根元素。默认的根元素是一个 `<span>`,但可以通过 `tag` prop 定制。
15+
在 Vue 2 中,`<transition-group>` 像其它自定义组件一样,需要一个根元素。默认的根元素是一个 `<span>`,但可以通过 `tag` attribute 定制。
1616

1717
```html
1818
<transition-group tag="ul">
@@ -26,8 +26,8 @@ badges:
2626

2727
在 Vue 3 中,我们有了[片段的支持](/guide/migration/fragments.html),因此组件不再*需要*根节点。所以,`<transition-group>` 默认不再渲染根节点。
2828

29-
- 如果像上面的示例一样,已经在 Vue 2 代码中定义了 `tag` prop,那么一切都会和之前一样
30-
- 如果没有定义 `tag` prop*而且*样式或其它行为依赖于 `<span>` 根元素的存在才能正常工作,那么只需将 `tag="span"` 添加到 `<transition-group>`
29+
- 如果像上面的示例一样,已经在 Vue 2 代码中定义了 `tag` attribute,那么一切都会和之前一样
30+
- 如果没有定义 `tag` attribute*而且*样式或其它行为依赖于 `<span>` 根元素的存在才能正常工作,那么只需将 `tag="span"` 添加到 `<transition-group>`
3131

3232
```html
3333
<transition-group tag="span">

0 commit comments

Comments
 (0)