Skip to content

Commit dcc3167

Browse files
Jinjiangeddyerburgh
authored andcommitted
docs: typos (#444)
1 parent 07e698b commit dcc3167

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/zh-cn/api/config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Vue Test Utils 包含了一个定义其选项的配置对象。
1313
}`
1414

1515
存储在 `config.stubs` 中的存根会被默认使用。
16-
用到的组件存根。它们会被传入挂载选项的 `stubs` 复写
16+
用到的组件存根。它们会被传入挂载选项的 `stubs` 覆写
1717

1818
当把 `stubs` 作为一个数组传入挂载选项时,`config.stubs` 会被转换为一个数组,然后用只返回一个 `<!---->` 的基础组件进行存根。
1919

docs/zh-cn/api/options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ expect(wrapper.vm.$route).toBeInstanceOf(Object)
168168

169169
## 其它选项
170170

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

173173
```js
174174
const Component = {

docs/zh-cn/guides/using-with-vue-router.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ shallow(Component, {
2020
})
2121
```
2222

23-
> **注意:**在一个 `localVue` 上安装 Vue Router 时也会将 `$route``$router` 作为两个只读属性添加给该 `localVue`。这意味着如果你使用安装了 Vue Router 的 `localVue`,则不能在挂在一个组件时使用 `mocks` 选项来复写 `$route``$router`
23+
> **注意:**在一个 `localVue` 上安装 Vue Router 时也会将 `$route``$router` 作为两个只读属性添加给该 `localVue`。这意味着如果你使用安装了 Vue Router 的 `localVue`,则不能在挂在一个组件时使用 `mocks` 选项来覆写 `$route``$router`
2424
2525
## 测试使用了 `router-link``router-view` 的组件
2626

0 commit comments

Comments
 (0)