File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 134
134
如果同一页面上有多个 Vue 应用实例,可以通过 [` app.config.idPrefix ` ](/ api / application #app - config - idprefix ) 为每个应用提供一个 ID 前缀,以避免 ID 冲突。
135
135
136
136
:::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 ,并在计算函数内部引用它。
138
138
:::
Original file line number Diff line number Diff line change @@ -184,8 +184,8 @@ export default {
184
184
tweened: 0
185
185
}
186
186
},
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 数字精度的限制,结果可能不准确。
189
189
watch: {
190
190
number (n ) {
191
191
gsap .to (this , { duration: 0.5 , tweened: Number (n) || 0 })
You can’t perform that action at this time.
0 commit comments