Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions docs/en/api/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ Pass properties for components to use in injection. See [provide/inject](https:/
- type: `boolean`
- default: `true`

Sets all watchers to run synchronously.

When `sync` is `true`, the Vue component is rendered synchronously.
When `sync` is `false`, the Vue component is rendered asynchronously.

Expand Down
8 changes: 8 additions & 0 deletions docs/zh-cn/api/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- [`attrs`](#attrs)
- [`listeners`](#listeners)
- [`provide`](#provide)
- [`sync`](#sync)

### `context`

Expand Down Expand Up @@ -166,6 +167,13 @@ expect(wrapper.vm.$route).toBeInstanceOf(Object)

为组件传递用于注入的属性。可查阅 [provie/inject](https://cn.vuejs.org/v2/api/#provide-inject) 了解更多。

### `sync`

- 类型:`boolean`
- 默认值:`true`

将所有的侦听器都设置为同步执行。

## 其它选项

当 `mount` 和 `shallow` 的选项包含了挂载选项之外的选项时,则会将它们通过[扩展](https://vuejs.org/v2/api/#extends)覆写到其组件选项。
Expand Down