9 小时以前 9bad721754fe8bbe2e5f459d0706e0fefac569f3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package cn.iocoder.yudao.module.qcreport.engine;
 
/**
 * 页边距(毫米),单位与前端 {@code engine/page.ts} 一致。
 * <p>
 * 字段用包装类型:为 null 表示该项没配过,由 {@link PageSizes} 落到默认边距,
 * 与前端 {@code margin?.top ?? DEFAULT_MARGIN_MM} 的语义保持一致。
 */
public record PageMargin(Double top, Double right, Double bottom, Double left) {
 
    /** 全部未配置 */
    public static PageMargin none() {
        return new PageMargin(null, null, null, null);
    }
 
}