Skip to content

Commit 2048af6

Browse files
Jinjiangyyx990803
authored andcommitted
docs(zh): typos in vuejs#2016 (vuejs#2089) [ci skip]
1 parent fb4b570 commit 2048af6

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

docs/zh/config/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ module.exports = {
130130

131131
### lintOnSave
132132

133-
- Type: `boolean` | `error`
133+
- Type: `boolean` | `'error'`
134134
- Default: `true`
135135

136136
是否在开发环境下通过 [eslint-loader](https://github.com/webpack-contrib/eslint-loader) 在每次保存时 lint 代码。这个值会在 [`@vue/cli-plugin-eslint`](https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-eslint) 被安装之后生效。

docs/zh/dev-guide/plugin-dev.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ export default {
234234
<%# END_REPLACE %>
235235
```
236236

237-
#### 文件名都极端情况
237+
#### 文件名的极端情况
238238

239239
如果你想要渲染一个以点开头的模板文件 (例如 `.env`),则需要遵循一个特殊的命名约定,因为以点开头的文件会在插件发布到 npm 的时候被忽略:
240240

docs/zh/guide/build-targets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Web Components 模式不支持 IE11 及更低版本。[更多细节](https://git
7676
vue-cli-service build --target wc --name my-element [entry]
7777
```
7878

79-
注意这里的入口应该是一个 `*.vue` 文件。Vue CLI 将会把这个组件自动包裹并注册为 Web Components 组件,无需在 `main.js` 里做这件事。你也完全可以在开发时以一个 demo app 使用 `main.js`
79+
注意这里的入口应该是一个 `*.vue` 文件。Vue CLI 将会把这个组件自动包裹并注册为 Web Components 组件,无需在 `main.js` 里自行注册。也可以在开发时把 `main.js` 作为 demo app 单独使用
8080

8181
该构建将会产生一个单独的 JavaScript 文件 (及其压缩后的版本) 将所有的东西都内联起来。当这个脚本被引入网页时,会注册自定义组件 `<my-element>`,其使用 `@vue/web-component-wrapper` 包裹了目标的 Vue 组件。这个包裹器会自动代理属性、特性、事件和插槽。请查阅 [`@vue/web-component-wrapper` 的文档](https://github.com/vuejs/vue-docs-zh-cn/blob/master/vue-web-component-wrapper/README.md)了解更多细节。
8282

docs/zh/guide/cli-service.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ npx vue-cli-service serve
3333
你可以通过 `vue ui` 命令使用 GUI 运行更多的特性脚本。
3434
:::
3535

36-
这里有一个 GUI 的 Webpack Analyzer:
36+
这里有一个 GUI 的 webpack Analyzer:
3737

38-
![UI Webpack Analyzer](/ui-analyzer.png)
38+
![UI webpack Analyzer](/ui-analyzer.png)
3939

4040
## vue-cli-service serve
4141

docs/zh/guide/css.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ $color = red;
2727

2828
### 自动化导入
2929

30-
如果你想自动化导入文件 (用于颜色、变量、mixin……),你可以使用 [style-resources-loader](https://github.com/yenshih/style-resources-loader)。这里有一个关于 stylus 的在每个单文件组件和 stylus 文件中导入 `./src/styles/imports.styl` 的例子:
30+
如果你想自动化导入文件 (用于颜色、变量、mixin……),你可以使用 [style-resources-loader](https://github.com/yenshih/style-resources-loader)。这里有一个关于 Stylus 的在每个单文件组件和 Stylus 文件中导入 `./src/styles/imports.styl` 的例子:
3131

3232
```js
3333
// vue.config.js

docs/zh/guide/mode-and-env.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ console.log(process.env.VUE_APP_SECRET)
8282
所有解析出来的环境变量都可以在 `public/index.html` 中以 [HTML 插值](./html-and-static-assets.md#插值)中介绍的方式使用。
8383

8484
::: tip 提示
85-
你可以在 `vue.config.js` 文件中计算环境变量。它们仍然需要以 `VUE_APP_` 前缀开头。这可以用于版本信息 `process.env.VUE_APP_VERSION = require('./package.json').version`
85+
你可以在 `vue.config.js` 文件中计算环境变量。它们仍然需要以 `VUE_APP_` 前缀开头。这可以用于版本信息 `process.env.VUE_APP_VERSION = require('./package.json').version`
8686
:::
8787

8888
## 只在本地有效的变量

docs/zh/guide/plugins-and-presets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ vue add vuex
8787
}
8888
```
8989

90-
每个文件都需要暴露一个函数,将插件 API 作为第一个参数携带。关于插件 API 的更多信息可以查阅[插件开发指南](../dev-guide/plugin-dev.md)
90+
每个文件都需要暴露一个函数,接受插件 API 作为第一个参数。关于插件 API 的更多信息可以查阅[插件开发指南](../dev-guide/plugin-dev.md)
9191

9292
你也可以通过 `vuePlugins.ui` 选项添加像 UI 插件一样工作的文件:
9393

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy