From 9edced3c623c2b40f7707aecadce0a414276a1a7 Mon Sep 17 00:00:00 2001 From: eiinu Date: Tue, 14 Nov 2023 16:19:57 +0800 Subject: [PATCH] docs(countdown): update demo code #2656 --- src/packages/__VUE/countdown/doc.en-US.md | 76 +++++++++++----------- src/packages/__VUE/countdown/doc.md | 78 +++++++++++------------ src/packages/__VUE/countdown/doc.taro.md | 78 +++++++++++------------ 3 files changed, 116 insertions(+), 116 deletions(-) diff --git a/src/packages/__VUE/countdown/doc.en-US.md b/src/packages/__VUE/countdown/doc.en-US.md index 0e797492f0..2e01800bbc 100644 --- a/src/packages/__VUE/countdown/doc.en-US.md +++ b/src/packages/__VUE/countdown/doc.en-US.md @@ -128,7 +128,7 @@ const paused = ref(false); const end = ref(Date.now() + 60 * 1000); const toggle = () => { - state.paused = !state.paused; + paused.value = !paused.value; }; const onPaused = (v) => { console.log('paused: ', v); @@ -161,9 +161,9 @@ const onRestart = (v) => {