Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(zh-cn): [event-handling.md] split comment into two lines to maintain syntax highlighting #2603

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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