Skip to content

Commit

Permalink
docs: synced sync option (#474) (#482)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinjiang authored and eddyerburgh committed Mar 30, 2018
1 parent 1440620 commit 3e50827
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
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

0 comments on commit 3e50827

Please sign in to comment.