refactor: 为测试暴露组件内部状态

This commit is contained in:
2026-08-03 22:21:25 +08:00
parent 9bba684fb2
commit f71abdd000
4 changed files with 30 additions and 0 deletions
+11
View File
@@ -594,6 +594,17 @@ onUnmounted(() => {
}
clear();
});
defineExpose({
taskInfo,
timerRunning,
timerIsOver,
startTimer,
stopTimer,
endTimer,
syncDisplay,
clear,
});
</script>
<template>