Skip to content
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

docs(zh): tweak some translations #24

Merged
merged 2 commits into from
Nov 8, 2022
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 .vitepress/locales/zh.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default {
items: [
{ text: '概览', link: '/zh/' },
{ text: '新的推荐', link: '/zh/recommendations' },
{ text: '迁移构建', link: '/zh/migration-build' },
{ text: '用于迁移的构建版本', link: '/zh/migration-build' },
{
text: '非兼容性改变',
link: '/zh/breaking-changes/'
Expand Down
24 changes: 12 additions & 12 deletions src/zh/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Vue 3 迁移指南

本指南主要针对有 Vue 2 经验的用户,他们希望了解 Vue 2 和 Vue 3 之间的变化。**在使用 Vue 3 之前,你不需要从头到尾阅读这篇文章**。学习 Vue 3 的推荐方法是阅读[新的文档](https://cn.vuejs.org)。
本指南主要是为有 Vue 2 经验的、希望了解 Vue 3 的新功能和更改的用户而提供的。**在试用 Vue 3 之前,你不必完整阅读这些内容**。学习 Vue 3 的推荐方法是阅读[新的文档](https://cn.vuejs.org)。

<!-- VueMastery Start -->
<style>
Expand Down Expand Up @@ -94,26 +94,26 @@
Vue 3 中需要关注的一些新特性包括:

- [组合式 API](https://cn.vuejs.org/guide/extras/composition-api-faq.html)<span class="note">\*</span>
- [单文件组件,组合式 API 语法糖 (`<script setup>`)](https://cn.vuejs.org/api/sfc-script-setup.html)<span class="note">\*</span>
- [单文件组件中的组合式 API 语法糖 (`<script setup>`)](https://cn.vuejs.org/api/sfc-script-setup.html)<span class="note">\*</span>
- [Teleport 组件](https://cn.vuejs.org/guide/built-ins/teleport.html)
- [Fragments 片段](./new/fragments.html)
- [Emits 组件选项](https://cn.vuejs.org/api/options-state.html#emits)<span class="note">\*\*</span>
- [`createRenderer` API from `@vue/runtime-core`](https://cn.vuejs.org/api/custom-renderer.html) 用来创建自定义渲染函数
- [单文件组件,状态绑定 CSS 变量(`v-bind` in `<style>`)](https://cn.vuejs.org/api/sfc-css-features.html#v-bind-in-css)<span class="note">\*</span>
- [SFC `<style scoped>` 新增全局规则和针对插槽内容规则](https://github.com/vuejs/rfcs/blob/master/active-rfcs/0023-scoped-styles-changes.md)
- [来自 `@vue/runtime-core` 的 `createRenderer` API](https://cn.vuejs.org/api/custom-renderer.html) 用来创建自定义渲染函数
- [单文件组件中的状态驱动的 CSS 变量 (`<style>` 中的 `v-bind`)](https://cn.vuejs.org/api/sfc-css-features.html#v-bind-in-css)<span class="note">\*</span>
- [SFC `<style scoped>` 新增全局规则和针对插槽内容的规则](https://github.com/vuejs/rfcs/blob/master/active-rfcs/0023-scoped-styles-changes.md)
- [Suspense](https://cn.vuejs.org/guide/built-ins/suspense.html) <sup class="warning">实验性</sup>

<sub class="note"><b>\*</b> 现在也支持在 <a href="https://blog.vuejs.org/posts/vue-2-7-naruto.html" target="_blank">Vue 2.7</a></sub><br>
<sub class="note"><b>\*\*</b> Vue 2.7 中支持, 但仅用于类型推断</sub>
<sub class="note"><b>\*</b> 现在也支持在 <a href="https://blog.vuejs.org/posts/vue-2-7-naruto.html" target="_blank">Vue 2.7</a> 中使用</sub><br>
<sub class="note"><b>\*\*</b> Vue 2.7 中支持但仅用于类型推断</sub>

## 非兼容性改变

列出了 Vue 2 和 Vue 3 之间的非兼容性更改 [这里](./breaking-changes/)。
Vue 2 和 Vue 3 之间的非兼容性更改[在此](./breaking-changes/)列出

## 新的框架级别推荐
## 新的推荐框架

列出了新的框架级建议 [这里](./recommendations)。
新的推荐框架[在此](./recommendations)列出

## 迁移构建
## 用于迁移的构建版本

如果您有一个现有的 Vue 2 项目或库,并打算将其升级到 Vue 3,我们将提供一个 Vue 3 的构建版本,它提供与 Vue 2 兼容的 api。查看 [迁移构建](./migration-build) 页面了解更多细节。
如果您有一个现有的 Vue 2 项目或库,并打算将其升级到 Vue 3,我们将提供一个 Vue 3 的构建版本,它提供与 Vue 2 兼容的 api。查看[用于迁移的构建版本](./migration-build)页面了解更多细节。