feat: md-deck print

This commit is contained in:
2026-02-27 16:20:00 +08:00
parent aa0ba2a551
commit bab09a2561
5 changed files with 219 additions and 2 deletions
+8
View File
@@ -25,6 +25,14 @@ export function DeckHeader(props: DeckHeaderProps) {
{store.state.isEditing ? '✓ 编辑中' : '✏️ 编辑'}
</button>
{/* 打印按钮 */}
<button
onClick={() => store.actions.printDeck()}
class="px-2 py-1 rounded text-xs font-medium transition-colors cursor-pointer bg-green-100 text-green-600 hover:bg-green-200"
>
🖨
</button>
{/* Tab 选择器 */}
<div class="flex gap-1 overflow-x-auto flex-1 min-w-0 flex-wrap">
<For each={store.state.cards}>