ztxkui 3.4.17 → 3.4.18

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.
@@ -146,7 +146,10 @@ var UploadTable = function (_a) {
146
146
  ((typeof operationAuth === 'string'
147
147
  ? authDownloadBtn
148
148
  : showDownloadBtn) ||
149
- (record === null || record === void 0 ? void 0 : record.fileSize) >= 10 * 1024 * 1024) && (React.createElement(Button, { type: "link", style: {
149
+ ((typeof operationAuth === 'string'
150
+ ? authPreviewBtn
151
+ : showPreviewBtn) &&
152
+ (record === null || record === void 0 ? void 0 : record.fileSize) >= 10 * 1024 * 1024)) && (React.createElement(Button, { type: "link", style: {
150
153
  height: 28,
151
154
  }, onClick: function () {
152
155
  if (isPublic) {
@@ -250,7 +253,10 @@ var UploadTable = function (_a) {
250
253
  ((typeof operationAuth === 'string'
251
254
  ? authDownloadBtn
252
255
  : showDownloadBtn) ||
253
- (record === null || record === void 0 ? void 0 : record.fileSize) >= 10 * 1024 * 1024) && (React.createElement(Button, { type: "link", style: {
256
+ ((typeof operationAuth === 'string'
257
+ ? authPreviewBtn
258
+ : showPreviewBtn) &&
259
+ (record === null || record === void 0 ? void 0 : record.fileSize) >= 10 * 1024 * 1024)) && (React.createElement(Button, { type: "link", style: {
254
260
  height: 28,
255
261
  }, onClick: function () {
256
262
  if (isPublic) {
@@ -581,10 +581,11 @@ var Sinatures = function (_a) {
581
581
  },
582
582
  /** 签章组件相关校验 */
583
583
  validateSealFn: function () {
584
- var _a, _b;
584
+ var _a;
585
585
  // 确认盖章后 勾选的信息有更改
586
586
  if (needQys &&
587
- ((_a = prevParam === null || prevParam === void 0 ? void 0 : prevParam.sealIdList) === null || _a === void 0 ? void 0 : _a.length) !== (innerElectronicSeal === null || innerElectronicSeal === void 0 ? void 0 : innerElectronicSeal.length) &&
587
+ (prevParam === null || prevParam === void 0 ? void 0 : prevParam.sealIdList) &&
588
+ (prevParam === null || prevParam === void 0 ? void 0 : prevParam.sealIdList.length) !== (innerElectronicSeal === null || innerElectronicSeal === void 0 ? void 0 : innerElectronicSeal.length) &&
588
589
  !isSure) {
589
590
  Modal.confirm({
590
591
  title: '当前所勾选的电子印章信息与上一次盖章时有差异,请确认是否继续?',
@@ -624,7 +625,7 @@ var Sinatures = function (_a) {
624
625
  return false;
625
626
  }
626
627
  // 勾选的群杰印章 没有填用印次数
627
- if (((_b = innerQunjSeal === null || innerQunjSeal === void 0 ? void 0 : innerQunjSeal.details) === null || _b === void 0 ? void 0 : _b.length) > 0) {
628
+ if (((_a = innerQunjSeal === null || innerQunjSeal === void 0 ? void 0 : innerQunjSeal.details) === null || _a === void 0 ? void 0 : _a.length) > 0) {
628
629
  innerQunjSeal.details.forEach(function (item) {
629
630
  if (!item.sealCount) {
630
631
  message.warning("\u8BF7\u586B\u5199" + item.sealName + " \u7684\u7528\u5370\u6B21\u6570\uFF01");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkui",
3
- "version": "3.4.17",
3
+ "version": "3.4.18",
4
4
  "private": false,
5
5
  "description": "React components library",
6
6
  "author": "zt-front-end",