feat: jsPDF

This commit is contained in:
hyper
2026-02-27 20:27:26 +08:00
parent ec5a00fa94
commit f32bbe59b3
6 changed files with 355 additions and 37 deletions
+3 -3
View File
@@ -25,12 +25,12 @@ export function DeckHeader(props: DeckHeaderProps) {
{store.state.isEditing ? '✓ 编辑中' : '✏️ 编辑'}
</button>
{/* 打印按钮 */}
{/* 导出 PDF 按钮 */}
<button
onClick={() => store.actions.printDeck()}
onClick={() => store.actions.exportDeck()}
class="px-2 py-1 rounded text-xs font-medium transition-colors cursor-pointer bg-green-100 text-green-600 hover:bg-green-200"
>
🖨
📥 PDF
</button>
{/* Tab 选择器 */}