@gct-paas/word 0.1.74-beta.23 → 0.1.74-beta.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,6 +8,8 @@ import { DataSlotIndex } from '../../../view/types';
8
8
  type ValueType = string | number | undefined | null;
9
9
  export declare class FieldBaseHandler extends RunHandlerBase {
10
10
  static hasValue(value: ValueType): boolean;
11
+ /** 图片/附件 url 列表:兼容逗号串与数组 */
12
+ static normalizeUrlSources(raw: unknown): string[];
11
13
  /** 将展示文案拆成逐字 run;空串 split 会得到 [],需单独处理 */
12
14
  static toLayoutChars(label: unknown): string[];
13
15
  static isPrint(ctx: HandlerContext): boolean;
@@ -24,9 +24,17 @@ export declare function resolveScanParsedValue<T extends Record<string, unknown>
24
24
  export declare function resolveScanFillData(input: ScanModalInput): Record<string, unknown>;
25
25
  /** 取扫码数量调整方向,默认 add */
26
26
  export declare function resolveScanAdjustType(input: ScanModalInput): ScanAdjustType;
27
+ /**
28
+ * 扫码入行:优先回填首个空壳占位行,否则在活跃区末尾新增。
29
+ * 避免版面默认空行时 insertAt 导致「第一行空、第二行有数据」。
30
+ */
31
+ export declare function appendOrFillScanRow(doc: Doc, subFieldKey: string, row: Record<string, unknown>): number;
27
32
  /** 将 widget 上的条码解析规则 id 字符串转为配置对象 */
28
33
  export declare function toParseRuleConfig(value?: string): ParseRuleProps | undefined;
29
34
  /**
30
35
  * 业务子表统一扫码入口:同一个 CommonScanModal,差异只在 onScan 业务处理
31
36
  */
32
- export declare function openBusinessTableScan(ctx: BusinessScanContext, onScan: BusinessScanHandler): Promise<void>;
37
+ export declare function openBusinessTableScan(ctx: BusinessScanContext, onScan: BusinessScanHandler, formFieldOptions?: {
38
+ label: string;
39
+ value: string;
40
+ }[]): Promise<void>;