diff --git a/src/assets/js/toolbox-data.js b/src/assets/js/toolbox-data.js index f64ae9a..43acd82 100644 --- a/src/assets/js/toolbox-data.js +++ b/src/assets/js/toolbox-data.js @@ -301,6 +301,17 @@ export const toolList = [ enabled: true, changelogs: CHANGE_LOGS['keep-screen-on'], }, + { + id: 'timer-tool', + component: 'Other/TimerTool', + title: '计时器', + iconClass: 'mdi mdi-timer-outline', + desc: '正计时、倒计时工具。', + createdAt: '2025-12-29', + updatedAt: '2025-12-29', + version: '1', + enabled: true, + }, { id: 'open-new-window', component: 'Other/OpenNewWindow', diff --git a/src/views/ToolboxView/Other/TimerTool.vue b/src/views/ToolboxView/Other/TimerTool.vue new file mode 100644 index 0000000..2a4284d --- /dev/null +++ b/src/views/ToolboxView/Other/TimerTool.vue @@ -0,0 +1,416 @@ + + + + + + + {{ formatTimeMain(data.timeDisplay) }} + {{ formatTimeMilliseconds(data.timeDisplay) }} + + + + + + + 开始 + 暂停 + 重置 + 记录 + + + + + + + + + + + + + + + + + + + 时 + + 分 + + 秒 + + + + + + + + + 暂无记录 + + {{ index + 1 }} + {{ formatTime(record.time) }} + {{ formatDateTime(record.timestamp) }} + + + 清空记录 + + + + + + + +