ztxkui 3.3.0 → 3.3.3

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.
@@ -3,7 +3,7 @@
3
3
  * @description
4
4
  */
5
5
  import React from 'react';
6
- interface IProps {
6
+ export interface IProps {
7
7
  /** 水印文本内容 */
8
8
  waterText?: string;
9
9
  /** 文字大小改变 */
@@ -80,7 +80,7 @@ var PrintContainer = function (_a) {
80
80
  }, [keywordList]);
81
81
  // 根据流程id 部门id获取印章信息 跟 关键字信息
82
82
  useEffect(function () {
83
- if (deptId && flowId) {
83
+ if (deptId && flowId && request) {
84
84
  request({
85
85
  url: '/api/zmdms-resource/flowdeptseal/page',
86
86
  method: 'GET',
@@ -131,7 +131,7 @@ var PrintContainer = function (_a) {
131
131
  }, [deptId, flowId, request]);
132
132
  // 根据附件id 下载文件资源 这个是解决中文乱码问题得字体包
133
133
  useEffect(function () {
134
- if (fileId) {
134
+ if (fileId && request) {
135
135
  loadFontTTFPromise = downloadFontTTF({
136
136
  fileId: fileId,
137
137
  request: request,
@@ -276,7 +276,9 @@ var PrintContainer = function (_a) {
276
276
  dom: containerRef.current,
277
277
  isShowPage: isAddExportPage,
278
278
  fileBinary: fontTTF,
279
- pdfOption: {},
279
+ pdfOption: {
280
+ pageFormat: [1000, 1000],
281
+ },
280
282
  })
281
283
  .then(function (option) {
282
284
  var pdfBase64 = option.pdfBase64;
@@ -413,7 +415,9 @@ var PrintContainer = function (_a) {
413
415
  dom: containerRef.current,
414
416
  isShowPage: isAddExportPage,
415
417
  fileBinary: fontTTF,
416
- pdfOption: {},
418
+ pdfOption: {
419
+ pageFormat: [1000, 1000],
420
+ },
417
421
  })
418
422
  .then(function (option) {
419
423
  var pdfBase64 = option.pdfBase64;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkui",
3
- "version": "3.3.0",
3
+ "version": "3.3.3",
4
4
  "private": false,
5
5
  "description": "React components library",
6
6
  "author": "zt-front-end",