refactor: 为测试暴露组件内部状态
This commit is contained in:
@@ -288,6 +288,21 @@ async function previewMaterial() {
|
||||
results.forEach(({ u, t }) => { titles[u] = t; });
|
||||
materialPreview.value = renderMarkdown(raw, titles);
|
||||
}
|
||||
|
||||
defineExpose({
|
||||
priorityOptions,
|
||||
priority,
|
||||
taskNum,
|
||||
taskName,
|
||||
taskDescription,
|
||||
materialUrl,
|
||||
isUpdateMode,
|
||||
loadTask,
|
||||
createTask,
|
||||
updateTask,
|
||||
submitTask,
|
||||
convertMaterialUrls,
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
Reference in New Issue
Block a user