Skip to content

Commit

Permalink
fix: fix zhlint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Justineo committed Mar 11, 2024
1 parent d631a00 commit 96246c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/guide/extras/render-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ MyComponent.inheritAttrs = false

### 为函数式组件标注类型<sup class="vt-badge ts" /> {#typing-functional-components}

函数式组件可以根据它们是否有命名来标注类型。在单文件组件模板中,[Vue - Official 扩展](https://github.com/vuejs/language-tools) 还支持对正确类型化的函数式组件进行类型检查。
函数式组件可以根据它们是否有命名来标注类型。在单文件组件模板中,[Vue - Official 扩展](https://github.com/vuejs/language-tools)还支持对正确类型化的函数式组件进行类型检查。

**具名函数式组件**

Expand Down
2 changes: 1 addition & 1 deletion src/guide/scaling-up/tooling.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Vue 的浏览器开发者插件使我们可以浏览一个 Vue 应用的组件

具体细节请参考章节:[配合 TypeScript 使用 Vue](/guide/typescript/overview)

- [Vue - Official 扩展](https://github.com/vuejs/language-tools) 能够为 `<script lang="ts">` 块提供类型检查,也能对模板内表达式和组件之间 props 提供自动补全和类型验证。
- [Vue - Official 扩展](https://github.com/vuejs/language-tools)能够为 `<script lang="ts">` 块提供类型检查,也能对模板内表达式和组件之间 props 提供自动补全和类型验证。

- 使用 [`vue-tsc`](https://github.com/vuejs/language-tools/tree/master/packages/tsc) 可以在命令行中执行相同的类型检查,通常用来生成单文件组件的 `d.ts` 文件。

Expand Down
2 changes: 1 addition & 1 deletion src/guide/typescript/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Vue 本身就是用 TypeScript 编写的,并对 TypeScript 提供了一等公

- 强烈推荐 [Visual Studio Code](https://code.visualstudio.com/) (VSCode),因为它对 TypeScript 有着很好的内置支持。

- [Vue - Official](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (之前是 Volar)是官方的 VSCode 扩展,提供了 Vue 单文件组件中的 TypeScript 支持,还伴随着一些其他非常棒的特性。
- [Vue - Official](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (之前是 Volar) 是官方的 VSCode 扩展,提供了 Vue 单文件组件中的 TypeScript 支持,还伴随着一些其他非常棒的特性。

:::tip
Vue - Official 扩展取代了我们之前为 Vue 2 提供的官方 VSCode 扩展 [Vetur](https://marketplace.visualstudio.com/items?itemName=octref.vetur)。如果你之前已经安装了 Vetur,请确保在 Vue 3 的项目中禁用它。
Expand Down

0 comments on commit 96246c7

Please sign in to comment.