Skip to content

Commit

Permalink
docs(zh-cn): [event-handling.md] split comment into two lines to main…
Browse files Browse the repository at this point in the history
…tain syntax highlighting
  • Loading branch information
DDDDD12138 committed Jan 22, 2025
1 parent ba0a7ef commit d4d8f20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/zh/guide/essentials/event-handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ test('emits an event with count when clicked', () => {
wrapper.find('button').trigger('click')
wrapper.find('button').trigger('click')

// `emitted()` 接受一个参数。它返回一个包含所有 `this.$emit('increment')` 发生情况的数组。
// `emitted()` 接受一个参数。
// 它返回一个包含所有 `this.$emit('increment')` 发生情况的数组。
const incrementEvent = wrapper.emitted('increment')

// 我们“点击”了两次,所以 `increment` 的数组应该有两个值。
Expand Down

0 comments on commit d4d8f20

Please sign in to comment.