@k-table/report 1.0.34 → 1.0.35
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.
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +28 -0
- package/dist/index.js +1 -1
- package/dist/store.cjs +1 -1
- package/dist/store.d.ts +28 -0
- package/dist/store.js +1 -1
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -480,6 +480,16 @@ export function KtReportPreview(props: {
|
|
|
480
480
|
tableKey?: string;
|
|
481
481
|
/** 打印记忆种类(以下空白分槽);缺省按 artifact.kind 映射 */
|
|
482
482
|
printKind?: "record" | "report" | "consign";
|
|
483
|
+
/** 多行空白显示文案。空或斜杠回落「以下空白」 */
|
|
484
|
+
blankSlotText?: string;
|
|
485
|
+
/** 单行空白填充字符,无记忆时的预览默认 */
|
|
486
|
+
defaultFillEmptyChar?: string;
|
|
487
|
+
/** 「以下空白」开关的预览默认。不传则按种类(记录表关,其余开) */
|
|
488
|
+
defaultShowBlankSlot?: boolean;
|
|
489
|
+
/** 「空数据填充」开关的预览默认。不传则关 */
|
|
490
|
+
defaultFillEmpty?: boolean;
|
|
491
|
+
/** 「以下空白」样式与外框。不传保持现网浅灰框 */
|
|
492
|
+
blankSlotStyle?: BlankSlotStyle | null;
|
|
483
493
|
/** 页眉页脚 chrome(优先于 hooks.preview.pageChrome) */
|
|
484
494
|
pageChrome?: { showOpinion: boolean; showQr: boolean; showReviewer: boolean; showStatementSplit: boolean } | null;
|
|
485
495
|
onPageChromeCommit?: (
|
|
@@ -502,6 +512,14 @@ export function parsePageChromePartial(raw: unknown): PageChromePartial | null;
|
|
|
502
512
|
export function stringifyPageChrome(chrome: PageChromeRegions): string;
|
|
503
513
|
export function writePageChromeToBag(bag: Record<string, string>, chrome: PageChromeRegions): Record<string, string>;
|
|
504
514
|
export type PreviewPrintKind = "record" | "report" | "consign";
|
|
515
|
+
export type BlankSlotStyle = {
|
|
516
|
+
border?: string;
|
|
517
|
+
color?: string;
|
|
518
|
+
fontSize?: number;
|
|
519
|
+
opacity?: number;
|
|
520
|
+
fontFamily?: string;
|
|
521
|
+
bold?: boolean;
|
|
522
|
+
};
|
|
505
523
|
export function resolvePrintMemoryTableKey(legacyCode?: string | null, formDefId?: string | null): string;
|
|
506
524
|
export type BindingField = { label: string; value: string; group?: string };
|
|
507
525
|
export function mergeBindingSchema(base: BindingField[], extra?: BindingField[]): BindingField[];
|
|
@@ -563,6 +581,16 @@ export function KtReportPreviewSurface(props: {
|
|
|
563
581
|
sheetIds?: string[];
|
|
564
582
|
/** 文档后处理(宿主业务变换):内建构建完成、空白变换之后调用 */
|
|
565
583
|
transformDocument?: (doc: unknown, ctx: { fieldData: ReportFieldData }) => unknown;
|
|
584
|
+
/** 多行空白显示文案。空或斜杠回落「以下空白」。不进打印记忆 */
|
|
585
|
+
blankSlotText?: string;
|
|
586
|
+
/** 单行空白填充字符,无记忆时的预览默认 */
|
|
587
|
+
defaultFillEmptyChar?: string;
|
|
588
|
+
/** 「以下空白」开关的预览默认。不传则按 printKind(记录表关,其余开) */
|
|
589
|
+
defaultShowBlankSlot?: boolean;
|
|
590
|
+
/** 「空数据填充」开关的预览默认。不传则关 */
|
|
591
|
+
defaultFillEmpty?: boolean;
|
|
592
|
+
/** 「以下空白」样式与外框。不传保持现网浅灰框 */
|
|
593
|
+
blankSlotStyle?: BlankSlotStyle | null;
|
|
566
594
|
}): React.JSX.Element;
|
|
567
595
|
export function KtReportCatalog(props: {
|
|
568
596
|
store?: ArtifactStore;
|