优化修复

This commit is contained in:
iqudoo
2026-06-15 14:46:30 +08:00
parent 8c9b53b1b6
commit ac117425d7
9 changed files with 415 additions and 160 deletions

View File

@@ -28,7 +28,7 @@ export interface VisibilityRule {
target?: VisibilityRuleTarget;
variable: string;
operator: VisibilityOperator;
/** gt / lt / eq / neq / contains / not_contains 时的比较目标值 */
/** gt / lt / eq / neq / contains / not_contains 时的比较目标值,支持 {变量名} */
value?: string;
/** 为 false 时跳过该条件;默认启用 */
enabled?: boolean;
@@ -91,6 +91,8 @@ export interface TemplateElement {
id: string;
type: 'text' | 'barcode' | 'qrcode' | 'image' | 'table';
name: string;
/** 用户是否手动修改过图层名称;为 true 时不再根据内容自动同步名称 */
nameCustomized?: boolean;
x: number; // in mm
y: number; // in mm
width: number; // in mm