Skip to content

Commit 6d27483

Browse files
Jinjiangkazupon
authored andcommitted
docs(zh): updated (#1263)
1 parent 950763f commit 6d27483

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Diff for: docs/zh/api/wrapper/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Vue Test Utils 是一个基于包裹器的 API。
1818

1919
#### `options.attachedToDocument`
2020

21-
`Boolean` (只读):如果 `attachToDocument` 传递给了 `mount``shallowMount` 则为真
21+
`Boolean` (只读):如果组件在渲染之后被添加到了文档上则为真
2222

2323
#### `options.sync`
2424

Diff for: docs/zh/api/wrapper/trigger.md

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ wrapper.trigger('click', {
2727
button: 0
2828
})
2929

30+
wrapper.trigger('click', {
31+
ctrlKey: true // 用于测试 @click.ctrl 处理函数
32+
})
33+
3034
expect(clickHandler.called).toBe(true)
3135
```
3236

0 commit comments

Comments
 (0)