This commit is contained in:
iqudoo
2026-06-23 15:17:29 +08:00
parent 3a50e7e33b
commit 1b04e34ff0
14 changed files with 787 additions and 129 deletions

View File

@@ -336,6 +336,15 @@ export interface LabelTemplate {
export type PaperType = 'A4' | 'A5' | 'A6' | 'custom';
/** 排版/印刷输出色彩模式 */
export type PrintColorMode = 'rgb' | 'grayscale' | 'cmyk';
export const PRINT_COLOR_MODE_LABELS: Record<PrintColorMode, string> = {
rgb: '标准 RGB',
grayscale: '黑白(灰度)',
cmyk: 'CMYK印刷模拟',
};
export interface PaperConfig {
type: PaperType;
width: number; // in mm
@@ -348,6 +357,8 @@ export interface PaperConfig {
columnGap: number; // in mm (horizontal spacing between labels)
rowGap: number; // in mm (vertical spacing between labels)
flow: 'top-bottom-left-right' | 'left-right-top-bottom'; // how cells flow
/** 排版预览与导出时的色彩模式,默认 rgb */
printColorMode?: PrintColorMode;
}
export interface RecordRow {