From 5936eef341f8c0c62b36d80ad2007b36c10602ee Mon Sep 17 00:00:00 2001 From: "@beer" <47961062+iiio2@users.noreply.github.com> Date: Tue, 26 Nov 2024 00:31:07 +0600 Subject: [PATCH] docs(computed): remove semicolons (#3117) --- src/guide/essentials/computed.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/guide/essentials/computed.md b/src/guide/essentials/computed.md index f5c28d2289..ba51483216 100644 --- a/src/guide/essentials/computed.md +++ b/src/guide/essentials/computed.md @@ -281,10 +281,10 @@ export default { // instead until count is less or equal to 3 alwaysSmall(previous) { if (this.count <= 3) { - return this.count; + return this.count } - return previous; + return previous } } } @@ -304,10 +304,10 @@ const count = ref(2) // instead until count is less or equal to 3 const alwaysSmall = computed((previous) => { if (count.value <= 3) { - return count.value; + return count.value } - return previous; + return previous }) ``` @@ -328,13 +328,13 @@ export default { alwaysSmall: { get(previous) { if (this.count <= 3) { - return this.count; + return this.count } return previous; }, set(newValue) { - this.count = newValue * 2; + this.count = newValue * 2 } } } @@ -353,13 +353,13 @@ const count = ref(2) const alwaysSmall = computed({ get(previous) { if (count.value <= 3) { - return count.value; + return count.value } - return previous; + return previous }, set(newValue) { - count.value = newValue * 2; + count.value = newValue * 2 } })