Skip to content

Commit 8d86dc4

Browse files
authored
docs(computed): sync English doc (#1095)
1 parent 183262d commit 8d86dc4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/guide/essentials/computed.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,13 @@ const fullName = computed({
255255

256256
- 仅 3.4+ 支持
257257

258+
<p class="options-api">
259+
如果需要,可以通过访问计算属性的 getter 的第二个参数来获取计算属性返回的上一个值:
260+
</p>
261+
262+
<p class="composition-api">
258263
如果需要,可以通过访问计算属性的 getter 的第一个参数来获取计算属性返回的上一个值:
264+
</p>
259265

260266
<div class="options-api">
261267

@@ -317,7 +323,7 @@ export default {
317323
},
318324
computed: {
319325
alwaysSmall: {
320-
get(previous) {
326+
get(_, previous) {
321327
if (this.count <= 3) {
322328
return this.count
323329
}

0 commit comments

Comments
 (0)