This commit is contained in:
iqudoo
2026-06-14 04:12:21 +08:00
parent 1e03b7750a
commit ccb5b119de
6 changed files with 181 additions and 114 deletions

View File

@@ -222,14 +222,12 @@ export interface CutLineConfig {
color: string;
}
export type ExportRangeMode = 'all' | 'odd' | 'even' | 'custom' | 'conditional';
export type ExportRangeMode = 'all' | 'odd' | 'even' | 'custom';
export interface ExportRangeConfig {
mode: ExportRangeMode;
/** 自定义范围1-based 序号,如 "1,3,5-10" */
/** 自定义范围1-based 序号,如 "1,3,5-10"(排版过滤,不写入模板) */
custom?: string;
/** mode=conditional 时,全部满足才纳入排版/导出范围 */
filterRules?: VisibilityRule[];
}
export interface LabelTemplate {
@@ -242,6 +240,8 @@ export interface LabelTemplate {
variableList?: string[];
/** 设计预览用:变量名 → 默认展示值 */
variableDefaults?: Record<string, string>;
/** 数据过滤条件(写入模板);全部满足的数据行才参与排版/导出 */
dataFilterRules?: VisibilityRule[];
/** 整页排版配置(每模板独立) */
paper?: PaperConfig;
/** PDF 裁切参考线配置 */