We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 950763f commit 6d27483Copy full SHA for 6d27483
docs/zh/api/wrapper/README.md
@@ -18,7 +18,7 @@ Vue Test Utils 是一个基于包裹器的 API。
18
19
#### `options.attachedToDocument`
20
21
-`Boolean` (只读):如果 `attachToDocument` 传递给了 `mount` 或 `shallowMount` 则为真
+`Boolean` (只读):如果组件在渲染之后被添加到了文档上则为真
22
23
#### `options.sync`
24
docs/zh/api/wrapper/trigger.md
@@ -27,6 +27,10 @@ wrapper.trigger('click', {
27
button: 0
28
})
29
30
+wrapper.trigger('click', {
31
+ ctrlKey: true // 用于测试 @click.ctrl 处理函数
32
+})
33
+
34
expect(clickHandler.called).toBe(true)
35
```
36
0 commit comments