Skip to content

Commit

Permalink
Merge pull request #937 from vuejs-translations/sync
Browse files Browse the repository at this point in the history
Sync #35e8da8b
  • Loading branch information
Justineo committed May 13, 2024
2 parents 21a6598 + 14cf051 commit 84ccdcc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .vitepress/headerMdPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ export interface AugmentedHeader extends Header {
}

export const headerPlugin = (md: MarkdownIt) => {
md.core.ruler.enable('text_join')

md.renderer.rules.heading_open = (tokens, i, options, env, self) => {
for (const child of tokens[i + 1].children!) {
if (child.type === 'text' && child.content.endsWith('*')) {
Expand Down
2 changes: 1 addition & 1 deletion src/api/reactivity-core.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

## computed() {#computed}

接受一个 [getter 函数](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Functions/set#description),返回一个只读的响应式 [ref](#ref) 对象。该 ref 通过 `.value` 暴露 getter 函数的返回值。它也可以接受一个带有 `get``set` 函数的对象来创建一个可写的 ref 对象。
接受一个 [getter 函数](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Functions/get#description),返回一个只读的响应式 [ref](#ref) 对象。该 ref 通过 `.value` 暴露 getter 函数的返回值。它也可以接受一个带有 `get``set` 函数的对象来创建一个可写的 ref 对象。

- **类型**

Expand Down
12 changes: 6 additions & 6 deletions src/guide/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ import { VTCodeGroup, VTCodeGroupTab } from '@vue/theme'
</script>
```

[Codepen 示例](https://codepen.io/vuejs-examples/pen/QWJwJLp)
[CodePen 示例 >](https://codepen.io/vuejs-examples/pen/QWJwJLp)

</div>

Expand All @@ -221,7 +221,7 @@ import { VTCodeGroup, VTCodeGroupTab } from '@vue/theme'
</script>
```

[Codepen 示例](https://codepen.io/vuejs-examples/pen/eYQpQEG)
[CodePen 示例 >](https://codepen.io/vuejs-examples/pen/eYQpQEG)

:::tip
本指南中许多关于组合式 API 的例子将使用 `<script setup>` 语法,这需要构建工具。如果你打算在没有构建步骤的情况下使用组合式 API,请参考 [`setup()` 选项](/api/composition-api-setup)的用法。
Expand Down Expand Up @@ -278,12 +278,12 @@ import { VTCodeGroup, VTCodeGroupTab } from '@vue/theme'

<div class="options-api">

[Codepen 示例](https://codepen.io/vuejs-examples/pen/VwVYVZO)
[CodePen 示例 >](https://codepen.io/vuejs-examples/pen/VwVYVZO)

</div>
<div class="composition-api">

[Codepen 示例](https://codepen.io/vuejs-examples/pen/MWzazEv)
[CodePen 示例 >](https://codepen.io/vuejs-examples/pen/MWzazEv)

</div>

Expand Down Expand Up @@ -323,7 +323,7 @@ import { createApp } from 'vue'
</script>
```

[Codepen 示例](https://codepen.io/vuejs-examples/pen/wvQKQyM)
[CodePen 示例 >](https://codepen.io/vuejs-examples/pen/wvQKQyM)

</div>

Expand Down Expand Up @@ -354,7 +354,7 @@ import { createApp } from 'vue'
</script>
```

[Codepen demo](https://codepen.io/vuejs-examples/pen/YzRyRYM)
[CodePen 示例 >](https://codepen.io/vuejs-examples/pen/YzRyRYM)

</div>

Expand Down

0 comments on commit 84ccdcc

Please sign in to comment.