Skip to content

[docs][zh-cn] synced sync option (#474) #482

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

Merged
merged 2 commits into from
Mar 30, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
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: 1 addition & 1 deletion docs/en/api/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ Pass properties for components to use in injection. See [provide/inject](https:/
- type: `boolean`
- default: `true`

Sets all watchers to run synchronously.
Sets all watchers to run synchronously.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and also removed the trailing space by the way :-) @eddyerburgh


## Other options

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