Skip to content

Commit

Permalink
Update events.md (vuejs-translations#808)
Browse files Browse the repository at this point in the history
  • Loading branch information
6-78 committed Dec 27, 2023
1 parent b29e766 commit d6ef35f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/guide/components/events.md
Expand Up @@ -287,7 +287,8 @@ export default {

## 将事件作为 prop {#events-props}

你也可以通过在大写的事件名称前加上 `on``events` 作为 `props` 声明并传递
你也可以通过在大写的事件名称前加上 `on``events` 作为 `props` 声明并传递。

与使用 `emit('event')` 的行为不同,`props.onEvent` 只会处理基于属性的监听器(`@event``:on-event`

:::warning
Expand Down

0 comments on commit d6ef35f

Please sign in to comment.