feat(md-print): add timestamp footer option

This commit is contained in:
2026-10-23 13:26:34 +08:00
parent 1ce76dca64
commit 8957e3d2f1
13 changed files with 126 additions and 23 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ export function createPageElement(opts: PaginateOptions): {
flow.style.width = "100%";
page.appendChild(flow);
if (opts.pageNumbers) {
if (opts.pageNumbers || opts.timestamp) {
const footer = document.createElement("div");
footer.className = "md-print-footer";
page.appendChild(footer);