refactor: 为测试暴露组件内部状态
This commit is contained in:
@@ -594,6 +594,17 @@ onUnmounted(() => {
|
||||
}
|
||||
clear();
|
||||
});
|
||||
|
||||
defineExpose({
|
||||
taskInfo,
|
||||
timerRunning,
|
||||
timerIsOver,
|
||||
startTimer,
|
||||
stopTimer,
|
||||
endTimer,
|
||||
syncDisplay,
|
||||
clear,
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
Reference in New Issue
Block a user