This commit is contained in:
2026-06-15 01:48:03 -06:00
parent 2bd1e0399a
commit 379ff41947
40 changed files with 2669 additions and 360 deletions

View File

@@ -0,0 +1,29 @@
<script setup lang="ts">
defineProps<{
duplicates: string[]
}>()
defineEmits<{
replace: []
keep: []
cancel: []
}>()
</script>
<template>
<div class="dialog-overlay" role="dialog" aria-modal="true" aria-labelledby="import-conflict-title">
<div class="dialog">
<h2 id="import-conflict-title">发现重名教案</h2>
<p>以下文件名与当前书本中的教案重复</p>
<ul class="dialog-filenames">
<li v-for="filename in duplicates" :key="filename">{{ filename }}</li>
</ul>
<p>替换会用新文件覆盖原位置上的教案保留两者会将新文件作为新的一课追加导入</p>
<div class="dialog-actions">
<button type="button" @click="$emit('replace')">替换</button>
<button type="button" @click="$emit('keep')">保留两者</button>
<button type="button" @click="$emit('cancel')">取消</button>
</div>
</div>
</div>
</template>