Skip to content

Commit

Permalink
review zh
Browse files Browse the repository at this point in the history
  • Loading branch information
wxsms committed Nov 11, 2022
1 parent 4c195fd commit 706e1c5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/recommendations.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Also see [Tooling chapter in new docs](https://vuejs.org/guide/scaling-up/toolin

### Vue Router

Vue Router 4.0 provides Vue 3 support and has a number of breaking changes of its own. Check out its [migration guide](https://router.vuejs.org/) for full details.
Vue Router 4.0 provides Vue 3 support and has a number of breaking changes of its own. Check out its [migration guide](https://router.vuejs.org/guide/migration/index.html) for full details.

- [Documentation](https://router.vuejs.org/)
- [GitHub](https://github.com/vuejs/router)
Expand Down
22 changes: 7 additions & 15 deletions src/zh/recommendations.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
Vue 3 的支持库进行了重大更新。以下是新的默认建议的摘要:

- 新版本的 Router, Devtools & test utils 来支持 Vue 3
- 构建工具链: Vue CLI -> [Vite](https://vitejs.dev/)
- 状态管理: Vuex -> [Pinia](https://pinia.vuejs.org/)
- 构建工具链: Vue CLI -> [Vite](https://cn.vitejs.dev/)
- 状态管理: Vuex -> [Pinia](https://pinia.vuejs.org/zh/index.html)
- IDE 支持: Vetur -> [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)
- 新的 TypeScript 命令行工具: [vue-tsc](https://github.com/johnsoncodehk/volar/tree/master/vue-language-tools/vue-tsc)
- 静态网站生成: VuePress -> [VitePress](https://vitepress.vuejs.org/)
Expand All @@ -14,7 +14,7 @@ Vue 3 的支持库进行了重大更新。以下是新的默认建议的摘要:

### 构建工具链

我们现在推荐 Vite 作为 Vue 3 项目的新的构建工具链。 Vite 是一个新的构建工具,提供极快的服务器启动和热更新性能。它最初由 Vue 团队创建,但现在是一个跨框架工具。详细了解我们[为何推荐 Vite](https://cn.vitejs.dev/guide/why.html)
我们现在推荐 [Vite](https://cn.vitejs.dev/) 作为 Vue 3 项目的新的构建工具链。 Vite 是一个新的构建工具,提供极快的服务器启动和热更新性能。它最初由 Vue 团队创建,但现在是一个跨框架工具。详细了解我们[为何推荐 Vite](https://cn.vitejs.dev/guide/why.html)

您可以通过我们新的脚手架工具 [`create-vue`](https://github.com/vuejs/create-vue) 创建一个由 vite 驱动的 Vue 3 项目:

Expand All @@ -39,22 +39,19 @@ Vue Router 4.0 提供了对 Vue 3 的支持,并且自身也有许多重大的

### 状态管理

Pinia 是我们新推荐的大规模状态管理的解决方案。 Pinia 是作为 Vuex 5 的雏形而创建的,现已实现了 Vuex 5 中计划实际实现的大部分功能。考虑到核心团队成员Eduardo投入的工作量,我们决定保留其原始名称。
[Pinia](https://pinia.vuejs.org/zh/index.html) 是我们新推荐的大规模状态管理的解决方案。 Pinia 是作为 Vuex 5 的雏形而创建的,现已实现了 Vuex 5 中计划实际实现的大部分功能。考虑到核心团队成员 [Eduardo](https://github.com/posva) 投入的工作量,我们决定保留其原始名称。

- [文档](https://pinia.vuejs.org/zh/index.html)
- [GitHub](https://github.com/vuejs/pinia)
- [Vue 新文档中状态管理章节](https://cn.vuejs.org/guide/scaling-up/state-management.html)

Vuex 4.0 还提供对于 Vue 3 的支持,其 API 与 3.x 大致相同,如果您有需要迁移到 Vue 3 的应用了 Vuex store 的项目,仍然可以使用 Vuex 4.0。唯一的重大变化是[插件的安装方式](https://vuex.vuejs.org/zh/guide/migrating-to-4-0-from-3-x.html#%E5%AE%89%E8%A3%85%E8%BF%87%E7%A8%8B)



### IDE 支持

[Volar](https://github.com/johnsoncodehk/volar) 现在是新的官方 VSCode 扩展,大大改进了对 Vue SFC 的 TypeScript 支持,包括在模板表达式中提供完整的类型推断。
如果您以前安装过 Vetur,请确保将其禁用以避免与 Volar 冲突。


如果您以前安装过 Vetur,请确保将其禁用以避免与 Volar 冲突。

### Devtools Extension

Expand All @@ -63,21 +60,16 @@ Devtools 扩展已得到了重大更新(作为 v6 发布)以同时支持 Vue
- [文档](https://devtools.vuejs.org/guide/installation.html)
- [GitHub](https://github.com/vuejs/devtools)



### TypeScript 支持

您现在可以使用 [vue-tsc](https://github.com/johnsoncodehk/volar/tree/master/vue-language-tools/vue-tsc) 从命令行对 Vue SFC 进行类型检查和生成定义文件。
或者您也可以参阅 [新文档中的 TypeScript 指南](https://cn.vuejs.org/guide/typescript/overview.html)


或者您也可以参阅 [新文档中的 TypeScript 指南](https://cn.vuejs.org/guide/typescript/overview.html)

### 静态站点生成器

[VitePress](https://vitepress.vuejs.org/) 是 VuePress 的精神继承者,建立在 Vue 3 + Vite 的基础之上。它提供了卓越的开发体验,还可以生成更快的站点。



### JSX

现在通过 [`@vue/babel-plugin-jsx`](https://github.com/vuejs/babel-plugin-jsx) 提供对于Vue3 中 JSX 的支持。
现在通过 [`@vue/babel-plugin-jsx`](https://github.com/vuejs/babel-plugin-jsx) 提供对于 Vue3 中 JSX 的支持。

0 comments on commit 706e1c5

Please sign in to comment.