ztxkui 3.7.11 → 3.7.13
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.
|
@@ -92,7 +92,7 @@ function downloadFontTTF(_a) {
|
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
94
|
var PrintContainer = function (_a) {
|
|
95
|
-
var children = _a.children, waterText = _a.waterText, onFonsizeChange = _a.onFonsizeChange, hiddenClassName = _a.hiddenClassName, _b = _a.isAddExportPage, isAddExportPage = _b === void 0 ? false : _b, _c = _a.loading, loading = _c === void 0 ? false : _c, _d = _a.pdfName, pdfName = _d === void 0 ? 'pdf文件' : _d, request = _a.request, sealIdList = _a.sealIdList, _e = _a.showHandSeal, showHandSeal = _e === void 0 ? true : _e, _f = _a.showAutoSeal, showAutoSeal = _f === void 0 ? true : _f, _g = _a.needWatermark, needWatermark = _g === void 0 ? 0 : _g, fileId = _a.fileId, deptId = _a.deptId, flowId = _a.flowId, imgWaterBg = _a.imgWaterBg, onPrintCallback = _a.onPrintCallback, showPrintMessage = _a.showPrintMessage, onPrintBeforeCallback = _a.onPrintBeforeCallback, _h = _a.showPrintBtn, showPrintBtn = _h === void 0 ? true : _h, _j = _a.showPluginPrintBtn, showPluginPrintBtn = _j === void 0 ? true : _j, isUseXy = _a.isUseXy, localKey = _a.localKey, _k = _a.showExportBtn, showExportBtn = _k === void 0 ? true : _k, showSetFontBtn = _a.showSetFontBtn, _l = _a.isSetPosition, isSetPosition = _l === void 0 ? true : _l,
|
|
95
|
+
var children = _a.children, waterText = _a.waterText, onFonsizeChange = _a.onFonsizeChange, hiddenClassName = _a.hiddenClassName, _b = _a.isAddExportPage, isAddExportPage = _b === void 0 ? false : _b, _c = _a.loading, loading = _c === void 0 ? false : _c, _d = _a.pdfName, pdfName = _d === void 0 ? 'pdf文件' : _d, request = _a.request, sealIdList = _a.sealIdList, _e = _a.showHandSeal, showHandSeal = _e === void 0 ? true : _e, _f = _a.showAutoSeal, showAutoSeal = _f === void 0 ? true : _f, _g = _a.needWatermark, needWatermark = _g === void 0 ? 0 : _g, fileId = _a.fileId, deptId = _a.deptId, flowId = _a.flowId, imgWaterBg = _a.imgWaterBg, onPrintCallback = _a.onPrintCallback, showPrintMessage = _a.showPrintMessage, onPrintBeforeCallback = _a.onPrintBeforeCallback, _h = _a.showPrintBtn, showPrintBtn = _h === void 0 ? true : _h, _j = _a.showPluginPrintBtn, showPluginPrintBtn = _j === void 0 ? true : _j, isUseXy = _a.isUseXy, localKey = _a.localKey, _k = _a.showExportBtn, showExportBtn = _k === void 0 ? true : _k, showSetFontBtn = _a.showSetFontBtn, _l = _a.isSetPosition, isSetPosition = _l === void 0 ? true : _l, showAddSeal = _a.showAddSeal, apiUrl = _a.apiUrl;
|
|
96
96
|
var _m = useState(false), showWater = _m[0], setShowWater = _m[1];
|
|
97
97
|
var _o = useState(false), showSeal = _o[0], setShowSeal = _o[1];
|
|
98
98
|
var containerRef = useRef();
|
|
@@ -281,7 +281,7 @@ var PrintContainer = function (_a) {
|
|
|
281
281
|
imgDom.src = dataURL;
|
|
282
282
|
imgDom.style.width = '156px';
|
|
283
283
|
imgDom.style.height = '156px';
|
|
284
|
-
imgDom.style.right = index * 156 +
|
|
284
|
+
imgDom.style.right = index * 156 + 166 + "px";
|
|
285
285
|
imgDom.classList.add('seal-img-position');
|
|
286
286
|
for (var i = 0; i < allDom_1.length; i++) {
|
|
287
287
|
var currentItem = allDom_1[i];
|
|
@@ -806,7 +806,7 @@ var PrintContainer = function (_a) {
|
|
|
806
806
|
showSetFontBtn && (React.createElement(Button, { type: "primary", onClick: function () { return onFontsizeHandle('reduce'); } }, "\u7F29\u5C0F\u6587\u5B57")),
|
|
807
807
|
React.createElement(Button, { type: "primary", onClick: function () { return onAdjustPadding(); } }, "\u8C03\u6574\u8FB9\u8DDD"),
|
|
808
808
|
React.createElement(Button, { type: "primary", onClick: onWaterHandle }, !showWater ? '添加水印' : '移除水印'),
|
|
809
|
-
React.createElement(Button, { type: "primary", onClick: onAddSealHandle }, !showSeal ? '添加印章' : '移除印章'),
|
|
809
|
+
showAddSeal && (React.createElement(Button, { type: "primary", onClick: onAddSealHandle }, !showSeal ? '添加印章' : '移除印章')),
|
|
810
810
|
showPrintBtn && (React.createElement(Button, { type: "primary", onClick: onPrintHandle }, "\u6253\u5370")),
|
|
811
811
|
showPrintBtn && showPluginPrintBtn && (React.createElement(Button, { type: "primary", onClick: onECPrintHandle }, "\u63D2\u4EF6\u6253\u5370")),
|
|
812
812
|
showExportBtn && (React.createElement(Button, { type: "primary", onClick: onPdfHandle }, "\u5BFC\u51FAPDF")),
|