File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -172,6 +172,8 @@ Pass properties for components to use in injection. See [provide/inject](https:/
172
172
- type: ` boolean `
173
173
- default: ` true `
174
174
175
+ Sets all watchers to run synchronously.
176
+
175
177
When ` sync ` is ` true ` , the Vue component is rendered synchronously.
176
178
When ` sync ` is ` false ` , the Vue component is rendered asynchronously.
177
179
Original file line number Diff line number Diff line change 13
13
- [ ` attrs ` ] ( #attrs )
14
14
- [ ` listeners ` ] ( #listeners )
15
15
- [ ` provide ` ] ( #provide )
16
+ - [ ` sync ` ] ( #sync )
16
17
17
18
### ` context `
18
19
@@ -166,6 +167,13 @@ expect(wrapper.vm.$route).toBeInstanceOf(Object)
166
167
167
168
为组件传递用于注入的属性。可查阅 [ provie/inject] ( https://cn.vuejs.org/v2/api/#provide-inject ) 了解更多。
168
169
170
+ ### ` sync `
171
+
172
+ - 类型:` boolean `
173
+ - 默认值:` true `
174
+
175
+ 将所有的侦听器都设置为同步执行。
176
+
169
177
## 其它选项
170
178
171
179
当 ` mount ` 和 ` shallow ` 的选项包含了挂载选项之外的选项时,则会将它们通过[ 扩展] ( https://vuejs.org/v2/api/#extends ) 覆写到其组件选项。
You can’t perform that action at this time.
0 commit comments