Skip to content

Commit 3e50827

Browse files
Jinjiangeddyerburgh
authored andcommitted
docs: synced sync option (#474) (#482)
1 parent 1440620 commit 3e50827

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

docs/en/api/options.md

+2
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ Pass properties for components to use in injection. See [provide/inject](https:/
172172
- type: `boolean`
173173
- default: `true`
174174

175+
Sets all watchers to run synchronously.
176+
175177
When `sync` is `true`, the Vue component is rendered synchronously.
176178
When `sync` is `false`, the Vue component is rendered asynchronously.
177179

docs/zh-cn/api/options.md

+8
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- [`attrs`](#attrs)
1414
- [`listeners`](#listeners)
1515
- [`provide`](#provide)
16+
- [`sync`](#sync)
1617

1718
### `context`
1819

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

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

170+
### `sync`
171+
172+
- 类型:`boolean`
173+
- 默认值:`true`
174+
175+
将所有的侦听器都设置为同步执行。
176+
169177
## 其它选项
170178

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

0 commit comments

Comments
 (0)