feat(client): 标签模板编辑器头部加「打印」按钮(重置与保存之间)

打印当前预览:复用出签弹窗 LabelPreviewDialog(选打印机/份数),传入正在
编辑的模板 _t 与示例数据。预览/打印共用 _sampleLabel() 抽出示例 LabelData。

L1 图标单源:新登记 i-printer(Lucide printer)到原型 icons.js + 官网
icons.njk 两端(check-l1-sync 同集要求),原型头部 use #i-printer。

design-first:原型 label-template-editor.html 同步加「打印」按钮 + printTpl()
占位,与真实屏同提交。smoke test 增头部「打印」按钮断言。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bupi8Kdqkfx2N5acFsHTx5
This commit is contained in:
wangjia
2026-08-30 12:08:17 +08:00
parent 7b3a0ecdeb
commit 195b4d22e7
5 changed files with 33 additions and 6 deletions
@@ -38,6 +38,8 @@ void main() {
expect(find.text('标签模板编辑器'), findsOneWidget);
expect(find.text('显示字段'), findsOneWidget);
expect(find.text('打印参数'), findsOneWidget);
// 头部「打印」按钮(打印当前预览)
expect(find.text('打印'), findsOneWidget);
expect(find.text('模板'), findsWidgets);
// 字段行齐全(品名 + 二维码等)
expect(find.text('品名'), findsOneWidget);