Skip to content

Commit ae464cf

Browse files
committed
fix: translate comments in animation.md and composition-api-helpers.md
1 parent 2403db4 commit ae464cf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/api/composition-api-helpers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,5 +134,5 @@
134134
如果同一页面上有多个 Vue 应用实例,可以通过 [`app.config.idPrefix`](/api/application#app-config-idprefix) 为每个应用提供一个 ID 前缀,以避免 ID 冲突。
135135

136136
:::warning Caution
137-
`useId()` should be not be called inside a `computed()` property as it may cause instance conflicts. Instead, declare the ID outside of `computed()` and reference it within the computed function.
137+
`useId()` 不应在 `computed()` 属性内部调用,因为这可能导致实例冲突。相反,应在 `computed()` 外部声明 ID,并在计算函数内部引用它。
138138
:::

src/guide/extras/animation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ export default {
184184
tweened: 0
185185
}
186186
},
187-
// Note: For inputs greater than Number.MAX_SAFE_INTEGER (9007199254740991),
188-
// the result may be inaccurate due to limitations in JavaScript number precision.
187+
// 注意:对于大于 Number.MAX_SAFE_INTEGER (9007199254740991) 的输入值,
188+
// 由于 JavaScript 数字精度的限制,结果可能不准确。
189189
watch: {
190190
number(n) {
191191
gsap.to(this, { duration: 0.5, tweened: Number(n) || 0 })

0 commit comments

Comments
 (0)