File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 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:/
172172- type: ` boolean `
173173- default: ` true `
174174
175+ Sets all watchers to run synchronously.
176+
175177When ` sync ` is ` true ` , the Vue component is rendered synchronously.
176178When ` sync ` is ` false ` , the Vue component is rendered asynchronously.
177179
Original file line number Diff line number Diff line change 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 ) 覆写到其组件选项。
You can’t perform that action at this time.
0 commit comments