Skip to content

Commit 166305f

Browse files
authored
Update components.md
此处翻译不当,原翻译的意思为子组件使用v-on来触发事件,显然错误,容易产生误导。
1 parent 9e916ef commit 166305f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ Vue.component('example', {
428428
- 使用 `$on(eventName)` 监听事件
429429
- 使用 `$emit(eventName)` 触发事件
430430

431-
另外,父组件可以在模版中监听子组件直接使用 `v-on` 发出的事件
431+
另外,父组件可以在使用子组件的地方直接用 `v-on` 来监听子组件触发的事件
432432

433433
下面是一个例子:
434434

0 commit comments

Comments
 (0)