Skip to content

[docs][zh-cn] typos (复写 -> 覆写) #444

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 1 commit into from
Mar 22, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
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/zh-cn/api/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}`

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

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

Expand Down
2 changes: 1 addition & 1 deletion docs/zh-cn/api/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ expect(wrapper.vm.$route).toBeInstanceOf(Object)

## 其它选项

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

```js
const Component = {
Expand Down
2 changes: 1 addition & 1 deletion docs/zh-cn/guides/using-with-vue-router.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ shallow(Component, {
})
```

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

## 测试使用了 `router-link` 或 `router-view` 的组件

Expand Down