ztxkui 4.2.23-340 → 4.2.23-340-beta
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/DemoCom/PrintContainerDemo.js +8 -7
- package/dist/components/PrintContainer/print.d.ts +78 -0
- package/dist/components/PrintContainer/print.js +696 -0
- package/dist/components/WorkflowPrintContainer/component/Gragh/Gragh.d.ts +9 -0
- package/dist/components/WorkflowPrintContainer/component/Gragh/Gragh.js +63 -0
- package/dist/components/WorkflowPrintContainer/component/Header.d.ts +12 -0
- package/dist/components/WorkflowPrintContainer/component/Header.js +106 -0
- package/dist/components/WorkflowPrintContainer/component/ProcessDetail.d.ts +18 -0
- package/dist/components/WorkflowPrintContainer/component/ProcessDetail.js +240 -0
- package/dist/components/WorkflowPrintContainer/component/Upload/index.d.ts +20 -0
- package/dist/components/WorkflowPrintContainer/component/Upload/index.js +59 -0
- package/dist/components/WorkflowPrintContainer/component/association/component/TableList.d.ts +10 -0
- package/dist/components/WorkflowPrintContainer/component/association/component/TableList.js +74 -0
- package/dist/components/WorkflowPrintContainer/component/association/index.d.ts +9 -0
- package/dist/components/WorkflowPrintContainer/component/association/index.js +91 -0
- package/dist/components/WorkflowPrintContainer/component/attention/component/TableList.d.ts +9 -0
- package/dist/components/WorkflowPrintContainer/component/attention/component/TableList.js +35 -0
- package/dist/components/WorkflowPrintContainer/component/attention/index.d.ts +10 -0
- package/dist/components/WorkflowPrintContainer/component/attention/index.js +94 -0
- package/dist/components/WorkflowPrintContainer/component/audit/component/TableList.d.ts +8 -0
- package/dist/components/WorkflowPrintContainer/component/audit/component/TableList.js +52 -0
- package/dist/components/WorkflowPrintContainer/component/audit/index.d.ts +7 -0
- package/dist/components/WorkflowPrintContainer/component/audit/index.js +87 -0
- package/dist/components/WorkflowPrintContainer/component/previewTable/component/TableList.d.ts +9 -0
- package/dist/components/WorkflowPrintContainer/component/previewTable/component/TableList.js +52 -0
- package/dist/components/WorkflowPrintContainer/component/previewTable/index.d.ts +11 -0
- package/dist/components/WorkflowPrintContainer/component/previewTable/index.js +59 -0
- package/dist/components/WorkflowPrintContainer/component/send/component/TableList.d.ts +9 -0
- package/dist/components/WorkflowPrintContainer/component/send/component/TableList.js +43 -0
- package/dist/components/WorkflowPrintContainer/component/send/index.d.ts +9 -0
- package/dist/components/WorkflowPrintContainer/component/send/index.js +91 -0
- package/dist/components/WorkflowPrintContainer/component/trail/component/TableList.d.ts +12 -0
- package/dist/components/WorkflowPrintContainer/component/trail/component/TableList.js +281 -0
- package/dist/components/WorkflowPrintContainer/component/trail/index.d.ts +11 -0
- package/dist/components/WorkflowPrintContainer/component/trail/index.js +56 -0
- package/dist/components/WorkflowPrintContainer/images.d.ts +2 -0
- package/dist/components/WorkflowPrintContainer/images.js +2 -0
- package/dist/components/WorkflowPrintContainer/index.d.ts +2 -0
- package/dist/components/WorkflowPrintContainer/index.js +2 -0
- package/dist/components/WorkflowPrintContainer/service.d.ts +14 -0
- package/dist/components/WorkflowPrintContainer/service.js +101 -0
- package/dist/components/WorkflowPrintContainer/usePagination.d.ts +14 -0
- package/dist/components/WorkflowPrintContainer/usePagination.js +22 -0
- package/dist/components/WorkflowPrintContainer/workflow-print-container.d.ts +100 -0
- package/dist/components/WorkflowPrintContainer/workflow-print-container.js +301 -0
- package/dist/index.build.d.ts +1 -0
- package/dist/index.build.js +1 -0
- package/package.json +4 -2
|
@@ -110,11 +110,7 @@ var PrintContainerDemo = function () {
|
|
|
110
110
|
};
|
|
111
111
|
}, []);
|
|
112
112
|
console.log(dayjs().format('MMDDHHmmss'));
|
|
113
|
-
return (React.createElement(PrintContainer
|
|
114
|
-
// isAddExportPage={true}
|
|
115
|
-
// loading={loading}
|
|
116
|
-
, {
|
|
117
|
-
// isAddExportPage={true}
|
|
113
|
+
return (React.createElement(PrintContainer, { isAddExportPage: true,
|
|
118
114
|
// loading={loading}
|
|
119
115
|
request: request, deptId: "1514842459376930817", flowId: "scm_print_thd", fileId: "1551733945007517697",
|
|
120
116
|
// // keywordList={keywordList}
|
|
@@ -147,7 +143,12 @@ var PrintContainerDemo = function () {
|
|
|
147
143
|
// deptId="1295909543961944065"
|
|
148
144
|
// flowId="scm_print_tdtd"
|
|
149
145
|
// showAboutExport
|
|
150
|
-
showPrintBtn: true, showPluginPrintBtn: true },
|
|
151
|
-
|
|
146
|
+
showPrintBtn: true, showPluginPrintBtn: true }, Array(2)
|
|
147
|
+
.fill(1)
|
|
148
|
+
.map(function (item, index) {
|
|
149
|
+
return (React.createElement("div", null,
|
|
150
|
+
React.createElement(Tidan, { title: index + '', key: index }),
|
|
151
|
+
React.createElement("div", { className: "print-page-break-after" })));
|
|
152
|
+
})));
|
|
152
153
|
};
|
|
153
154
|
export default PrintContainerDemo;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author 陈亚雄
|
|
3
|
+
* @description 打印相关方法
|
|
4
|
+
*/
|
|
5
|
+
import { jsPDF } from 'jspdf';
|
|
6
|
+
/**
|
|
7
|
+
* 添加水印
|
|
8
|
+
*/
|
|
9
|
+
export declare function addWaterHandle({ waterText, waterClassName, }?: {
|
|
10
|
+
waterText?: string;
|
|
11
|
+
waterClassName?: string[];
|
|
12
|
+
isPrintWater?: boolean;
|
|
13
|
+
}): void;
|
|
14
|
+
export declare function removeWaterHandle(): void;
|
|
15
|
+
/**
|
|
16
|
+
* 打印页面
|
|
17
|
+
* hiddenClassNames 需要隐藏的样式 默认有hiddenPrint
|
|
18
|
+
*/
|
|
19
|
+
interface IParams {
|
|
20
|
+
/** 需要隐藏的样式类名 ['.test', '.test1] */
|
|
21
|
+
hiddenClassNames?: string[];
|
|
22
|
+
}
|
|
23
|
+
export declare function printCurrentDom({ hiddenClassNames }?: IParams): void;
|
|
24
|
+
export declare function htmlToPdf({ pageClassName, dom, pdfName, isShowPage, noWater, pdfOptions, imgPositionX, waterText, }: {
|
|
25
|
+
pageClassName?: string;
|
|
26
|
+
dom: HTMLElement;
|
|
27
|
+
pdfName: string;
|
|
28
|
+
isShowPage?: boolean;
|
|
29
|
+
noWater?: boolean;
|
|
30
|
+
pdfOptions?: any;
|
|
31
|
+
imgPositionX?: number;
|
|
32
|
+
waterText?: string;
|
|
33
|
+
}): Promise<jsPDF>;
|
|
34
|
+
export declare function htmlToPdfUseCanvas({ pageClassName, dom, pdfName, isShowPage, isOnlyOne, noWater, pdfOptions, imgPositionX, isDownload, isAutoPageCount, }: {
|
|
35
|
+
pageClassName?: string;
|
|
36
|
+
dom: HTMLElement;
|
|
37
|
+
pdfName: string;
|
|
38
|
+
isShowPage?: boolean;
|
|
39
|
+
isOnlyOne?: boolean;
|
|
40
|
+
noWater?: boolean;
|
|
41
|
+
pdfOptions?: any;
|
|
42
|
+
imgPositionX?: number;
|
|
43
|
+
isDownload?: boolean;
|
|
44
|
+
isAutoPageCount?: boolean;
|
|
45
|
+
}): Promise<{
|
|
46
|
+
pdfs: any;
|
|
47
|
+
pdfBase64: any;
|
|
48
|
+
}>;
|
|
49
|
+
export interface IPdfOption {
|
|
50
|
+
/** 是否压缩 */
|
|
51
|
+
compress?: boolean;
|
|
52
|
+
/** pdf 横向 还是 纵向 */
|
|
53
|
+
pageOrient?: 'p' | 'portrait' | 'l' | 'landscape';
|
|
54
|
+
/** 格式 */
|
|
55
|
+
pageFormat?: string;
|
|
56
|
+
/** 左右边距 */
|
|
57
|
+
pageMarginX?: number;
|
|
58
|
+
/** 上下边距 */
|
|
59
|
+
pageMarginY?: number;
|
|
60
|
+
}
|
|
61
|
+
export declare function htmlToPdfNoCanvas({ pageClassName, dom, isShowPage, fileBinary, pdfName, isDownload, pdfOption, isAddWater, waterBase64, imgWidth, imgHeight, isCompress, waterText, }: {
|
|
62
|
+
pageClassName?: string;
|
|
63
|
+
dom: HTMLElement;
|
|
64
|
+
isShowPage?: boolean;
|
|
65
|
+
fileBinary: any;
|
|
66
|
+
pdfName?: string;
|
|
67
|
+
isDownload?: boolean;
|
|
68
|
+
pdfOption?: IPdfOption;
|
|
69
|
+
/** 是否添加水印 */
|
|
70
|
+
isAddWater?: boolean;
|
|
71
|
+
/** 水印base 64字符串 */
|
|
72
|
+
waterBase64?: string;
|
|
73
|
+
imgWidth?: number;
|
|
74
|
+
imgHeight?: number;
|
|
75
|
+
isCompress?: boolean;
|
|
76
|
+
waterText?: string;
|
|
77
|
+
}): Promise<unknown>;
|
|
78
|
+
export {};
|