# 每日待办模板 name: "每日待办" id: "daily-todo" width: 80mm description: "打印今日待办事项列表" defaults: fontSize: normal lineHeight: 1.0 marginBottom: 0 page: marginTop: 2 marginBottom: 3 blocks: # 标题 - type: text content: "📋 {{date}} 待办" align: center fontSize: large bold: true marginBottom: 1 # 分隔线 - type: divider char: "=" marginBottom: 1 # 待办列表 - type: list data: "{{tasks}}" itemTemplate: - type: text content: "[{{status}}] {{title}}" fontSize: normal marginBottom: 0 # 空行 - type: space lines: 1 # 分隔线 - type: divider char: "-" marginBottom: 1 # 统计 - type: text content: "共 {{tasks.length}} 项待办" align: right fontSize: small - type: text content: "已完成 {{completedCount}} / {{tasks.length}}" align: right fontSize: small