From bfbf77719f216a3d0135765f93ab0760bb83c9f2 Mon Sep 17 00:00:00 2001 From: Leonhardt92 <35802996+Leonhardt92@users.noreply.github.com> Date: Fri, 15 May 2026 00:00:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=92=E5=90=8E=E9=9D=A2=E5=8A=A0=201=20?= =?UTF-8?q?=E4=BD=8D=200.1=20=E7=A7=92=E8=AE=A1=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added displayTick computed property to show tenths of a second. --- plugins/ztools-simpletimer/src/TimerWindow.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/ztools-simpletimer/src/TimerWindow.vue b/plugins/ztools-simpletimer/src/TimerWindow.vue index c0f56c7d..0a6eb60e 100644 --- a/plugins/ztools-simpletimer/src/TimerWindow.vue +++ b/plugins/ztools-simpletimer/src/TimerWindow.vue @@ -56,6 +56,7 @@ const currentDisplayMs = computed(() => { }) const displayTime = computed(() => formatTime(currentDisplayMs.value)) +const displayTick = computed(() => Math.floor((currentDisplayMs.value % 1000) / 100)) const isCountdownLocked = computed(() => mode.value === 'countdown' && isRunning.value) const isCountdownStartDisabled = computed(() => { return mode.value === 'countdown' && !isRunning.value && countdownMs.value - elapsedMs.value <= 0 @@ -569,7 +570,7 @@ function handleBlur() {
- {{ displayTime }} + {{ displayTime }}.{{ displayTick }} @@ -773,6 +774,10 @@ input { font-variant-numeric: tabular-nums; letter-spacing: 0; } +.timer-tick { + opacity: 0.72; + font-size: calc(22px * var(--timer-scale)); +} .countdown-track { width: calc(168px * var(--timer-scale));