From: 三咲智子 Kevin Deng Date: Sat, 27 Jan 2024 17:54:26 +0000 (+0800) Subject: refactor(playground): replace v-show with v-if X-Git-Tag: v3.6.0-alpha.1~16^2~650 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61bec8a71dd3a6902b7e16bc3c524eb2a13e4640;p=thirdparty%2Fvuejs%2Fcore.git refactor(playground): replace v-show with v-if --- diff --git a/playground/src/todo-mvc.vue b/playground/src/todo-mvc.vue index 4de671f3ed..ed505080ad 100644 --- a/playground/src/todo-mvc.vue +++ b/playground/src/todo-mvc.vue @@ -33,43 +33,51 @@ function handleClearComplete() { function handleClearAll() { tasks.value = [] } + +function handleRemove(idx: number) { + tasks.value.splice(idx, 1) +}