feat(md-print): add timestamp footer option
This commit is contained in:
@@ -7,6 +7,7 @@ export const PRINT_DEFAULTS: PrintConfig = {
|
||||
font: 3,
|
||||
title: "",
|
||||
pageNumbers: true,
|
||||
timestamp: false,
|
||||
cutMarks: true,
|
||||
};
|
||||
|
||||
@@ -47,6 +48,7 @@ export function normalizePrintConfig(
|
||||
title:
|
||||
typeof input.title === "string" ? input.title : PRINT_DEFAULTS.title,
|
||||
pageNumbers: toBoolean(input.pageNumbers, PRINT_DEFAULTS.pageNumbers),
|
||||
timestamp: toBoolean(input.timestamp, PRINT_DEFAULTS.timestamp),
|
||||
cutMarks: toBoolean(input.cutMarks, PRINT_DEFAULTS.cutMarks),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user