Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading