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

Commit a53b358

Browse files
authored
Apply suggestions from code review
1 parent 7842f21 commit a53b358

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/guide/migration/v-on-native-modifier-removed.md

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

1313
## 2.x 语法
1414

15-
默认情况下,传递给组件带有 `v-on` 的事件监听器只有通过 `this.$emit` 才能触发。要将原生 DOM 监听器添加到子组件的根元素中,可以使用 `.native` 修饰符:
15+
默认情况下,传递给带有 `v-on` 的组件的事件监听器只有通过 `this.$emit` 才能触发。要将原生 DOM 监听器添加到子组件的根元素中,可以使用 `.native` 修饰符:
1616

1717
```html
1818
<my-component
@@ -23,9 +23,9 @@ badges:
2323

2424
## 3.x 语法
2525

26-
`v-on``.native` 修饰符已被移除。同时,[新增的 `emits` 选项](./emits-option.md)允许 child 定义真正触发的事件
26+
`v-on``.native` 修饰符已被移除。同时,[新增的 `emits` 选项](./emits-option.md)允许子组件定义真正会被触发的事件
2727

28-
因此,对于 child 中**定义为组件-触发事件的所有事件监听器,Vue 现在将把他们作为原生事件监听器添加到 child 的根元素中(除非在 child 的选项中设置了 `inheritAttrs: false`)。
28+
因此,对于子组件中**被定义为组件触发的所有事件监听器,Vue 现在将把它们作为原生事件监听器添加到子组件的根元素中 (除非在子组件的选项中设置了 `inheritAttrs: false`)。
2929

3030
```html
3131
<my-component

0 commit comments

Comments
 (0)