refactor: 使用 Naive UI 重构后台布局与黑白双主题

This commit is contained in:
GouJ committed 2026-09-01 16:31:21 +08:00
1 parent 55516537bf
commit db8c176b55
51 files changed
+3277 -2442

No files matched your search

@@ -1,4 +1,5 @@
<script setup lang="ts">
import { NAlert, NButton, NTable } from 'naive-ui'
import { computed } from 'vue'
import { Download } from '@lucide/vue'
import { downloadText } from '../../../lib/format'
@@ -31,19 +32,19 @@ function exportReceipt() {
<section class="panel mt-5 p-5" aria-label="生成回执">
<div class="flex items-center justify-between gap-3">
<h3 class="text-sm font-semibold">{{ receipt.title }} · 本次回执</h3>
<button class="text-button" @click="exportReceipt"><Download :size="13" />导出诊断</button>
<NButton @click="exportReceipt" text size="small"><Download :size="13" />导出诊断</NButton>
</div>
<p v-if="failed" class="alert alert-error mt-3" role="alert">
<NAlert v-if="failed" role="alert" type="error" :show-icon="false" class="mt-3">
本次存在失败、校验未通过或未保存项。关闭“批量覆盖已有结果”后再补齐,可跳过已完整保存项。
</p>
</NAlert>
<template v-if="receipt.kind === 'batch'">
<p class="my-4 text-xs text-muted">
共 {{ receipt.result.episodeCount }} 集 · 完成 {{ receipt.result.completedEpisodes }} · 跳过
{{ receipt.result.skippedEpisodes }} · 失败 {{ receipt.result.failedEpisodes }}
</p>
<div class="table-scroll">
<table class="project-table">
<thead>
<NTable :single-line="false" class="project-table"
><thead>
<tr>
<th>剧集</th>
<th>结果</th>
@@ -71,8 +72,8 @@ function exportReceipt() {
</p>
</td>
</tr>
</tbody>
</table>
</tbody></NTable
>
</div>
</template>
<template v-else-if="receipt.kind === 'prompts'">