This commit is contained in:
iqudoo
2026-06-12 21:17:24 +08:00
parent 239e2eeebd
commit 220841444a
7 changed files with 240 additions and 81 deletions

View File

@@ -1,4 +1,6 @@
export type TextFormat = 'text' | 'number' | 'percent' | 'currency';
/** 数值格式下的显示部分:完整 / 仅整数 / 仅小数(含小数点) */
export type NumberPartDisplay = 'full' | 'integer' | 'fraction';
export type ElementVisibilityMode = 'always' | 'conditional';
export type VisibilityOperator = 'empty' | 'not_empty' | 'gt' | 'lt' | 'eq' | 'neq';
@@ -82,6 +84,8 @@ export interface TemplateElement {
textFormat?: TextFormat;
/** 数值/百分比/货币的小数位数,默认 2 */
decimalPlaces?: number;
/** 数值格式下显示整数或小数部分,仅 type=text 且 textFormat≠text */
numberPartDisplay?: NumberPartDisplay;
/** 边框宽度 (mm)0 为无边框;各边留空时沿用此值 */
borderWidth?: number;
borderColor?: string;