zmdms-webui 1.9.7 → 1.9.9

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.
Files changed (57) hide show
  1. package/dist/es/applayoutheader/tabs/index.js +3 -2
  2. package/dist/es/button/buttonDownload.js +4 -4
  3. package/dist/es/button/buttonExport.js +7 -7
  4. package/dist/es/button/buttonPreview.js +2 -2
  5. package/dist/es/dynamicsetting/dynamicDrawer.js +4 -3
  6. package/dist/es/dynamicsetting/index.css +1 -1
  7. package/dist/es/electronsignatures/dgcomponents/useDg.js +7 -7
  8. package/dist/es/electronsignatures/electroncomponents/electron-seal-batch-download.js +7 -6
  9. package/dist/es/electronsignatures/electroncomponents/useCheckedSealInfoList.js +3 -3
  10. package/dist/es/electronsignatures/electroncomponents/useFetchElectronData.js +3 -3
  11. package/dist/es/electronsignatures/electroncomponents/utils.js +9 -9
  12. package/dist/es/electronsignatures/filecomponents/file-upload.js +8 -7
  13. package/dist/es/electronsignatures/hooks/useParseElectronSetting.js +9 -9
  14. package/dist/es/electronsignatures/hooks/useParseQunjListData.js +4 -4
  15. package/dist/es/electronsignatures/index.js +20 -19
  16. package/dist/es/electronsignatures/qunjcomponents/code-modal.js +5 -5
  17. package/dist/es/electronsignatures/qunjcomponents/useFetchQunjData.js +4 -4
  18. package/dist/es/login/forget-password.js +10 -10
  19. package/dist/es/message/index.d.ts +5 -0
  20. package/dist/es/message/index.js +70 -0
  21. package/dist/es/modal/modal.js +4 -3
  22. package/dist/es/table/components/FilterDropdown.js +3 -2
  23. package/dist/es/table/components/table-header-operation/FillDown.js +3 -2
  24. package/dist/es/table/excel.js +173 -56
  25. package/dist/es/table/hooks.js +10 -1
  26. package/dist/es/table/interface.d.ts +16 -1
  27. package/dist/es/table/table.js +6 -2
  28. package/dist/es/table/useColumns.js +11 -1
  29. package/dist/es/table/useDynamicListByColumns.js +6 -4
  30. package/dist/es/table/utils.js +5 -5
  31. package/dist/es/uploadlist/hooks.js +10 -10
  32. package/dist/es/uploadlist/uploadList.js +4 -3
  33. package/dist/es/uploadlist/uploadListDetail.js +3 -2
  34. package/dist/es/uploadlist/uploadTable.js +3 -2
  35. package/dist/es/uploadlist/utils.js +2 -2
  36. package/dist/index.build.d.ts +2 -1
  37. package/dist/index.dark.css +1 -1
  38. package/dist/index.default.css +1 -1
  39. package/dist/index.es.js +2 -1
  40. package/package.json +1 -1
  41. package/dist/es/microloading/index.css +0 -1
  42. package/dist/es/modal/index.css +0 -1
  43. package/dist/es/notauthpage/index.css +0 -0
  44. package/dist/es/notroutepage/index.css +0 -0
  45. package/dist/es/pagination/index.css +0 -1
  46. package/dist/es/placeholder/index.css +0 -1
  47. package/dist/es/print/index.css +0 -1
  48. package/dist/es/select/index.css +0 -1
  49. package/dist/es/table/index.css +0 -1
  50. package/dist/es/tabs/index.css +0 -1
  51. package/dist/es/tag/index.css +0 -1
  52. package/dist/es/title/index.css +0 -1
  53. package/dist/es/tree/index.css +0 -1
  54. package/dist/es/treeselect/index.css +0 -1
  55. package/dist/es/uploadlist/index.css +0 -1
  56. package/dist/es/watermark/index.css +0 -1
  57. package/dist/es/zttransfer/index.css +0 -1
@@ -1,7 +1,7 @@
1
1
  import { __rest, __assign, __spreadArray, __awaiter, __generator } from '../_virtual/_tslib.js';
2
2
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
3
3
  import { memo, useRef, useMemo, useState, useEffect, useImperativeHandle } from 'react';
4
- import { Button, Table, message } from 'antd';
4
+ import { Button, Table } from 'antd';
5
5
  import '../config/ZtxkContext.js';
6
6
  import useBaseContext from '../config/useBaseContext.js';
7
7
  import ElectronSignaturesFragment from './electron-signatures-fragment.js';
@@ -23,6 +23,7 @@ import { DATA_TYPE_KEY } from './hooks/useParseRecords.js';
23
23
  import useCheckedSealInfoList$1 from './electroncomponents/useGetDeptInfo.js';
24
24
  import dayjs from 'dayjs';
25
25
  import isEqual from 'lodash/isEqual';
26
+ import myMessage from '../message/index.js';
26
27
  import ModalComponent from '../modal/modal.js';
27
28
 
28
29
  /**
@@ -389,7 +390,7 @@ var ElectronSignatures = function (props) {
389
390
  });
390
391
  if (isValidateAttachTypeIndex !== -1) {
391
392
  msg = "\u7B2C ".concat(isValidateAttachTypeIndex + 1, " \u884C\u6570\u636E\uFF0C\u9644\u4EF6\u7C7B\u578B\u4E3A\u5408\u540C\u672C\u8EAB\uFF0C\u9700\u8981\u6311\u9009\u6BD4\u5BF9\u6A21\u677F\uFF01");
392
- message.warning(msg);
393
+ myMessage.warning(msg);
393
394
  return [2 /*return*/, Promise.reject(msg)];
394
395
  }
395
396
  isValidateDgIndex = fileList.findIndex(function (item) {
@@ -402,7 +403,7 @@ var ElectronSignatures = function (props) {
402
403
  });
403
404
  if (isValidateDgIndex !== -1) {
404
405
  msg = "\u7B2C ".concat(isValidateDgIndex + 1, " \u884C\u6570\u636E\uFF0C\u6CA1\u6709\u751F\u6210\u4EFB\u52A1id\uFF0C\u8BF7\u70B9\u51FB\u5F00\u59CB\u6BD4\u5BF9\u6309\u94AE\uFF01");
405
- message.warning(msg);
406
+ myMessage.warning(msg);
406
407
  return [2 /*return*/, Promise.reject(msg)];
407
408
  }
408
409
  isValidateAttachType = fileList.findIndex(function (item) {
@@ -411,7 +412,7 @@ var ElectronSignatures = function (props) {
411
412
  if (resetProps.isAllowedPatchFileType &&
412
413
  isValidateAttachType !== -1) {
413
414
  msg = "\u7B2C ".concat(isValidateAttachType + 1, " \u884C\u6570\u636E\uFF0C\u6CA1\u6709\u9009\u62E9\u9644\u4EF6\u7C7B\u578B\uFF0C\u8BF7\u9009\u62E9\uFF01");
414
- message.warning(msg);
415
+ myMessage.warning(msg);
415
416
  return [2 /*return*/, Promise.reject(msg)];
416
417
  }
417
418
  }
@@ -443,7 +444,7 @@ var ElectronSignatures = function (props) {
443
444
  hasElectronicSeal &&
444
445
  !isOnlyQj) {
445
446
  msg = "请勾选加盖电子印章所需要的印章列表!";
446
- message.warning(msg);
447
+ myMessage.warning(msg);
447
448
  return [2 /*return*/, Promise.reject(msg)];
448
449
  }
449
450
  // 2.1 一开始选了附件和印章,指定了盖章位置。得到了contractId和docAttachMap数据。
@@ -463,7 +464,7 @@ var ElectronSignatures = function (props) {
463
464
  }
464
465
  });
465
466
  if (!isEqual(electronicSealFileList.sort(), electronicSealedFileList_1.sort())) {
466
- message.warning("附件盖章信息有变动,请重新确认盖章信息");
467
+ myMessage.warning("附件盖章信息有变动,请重新确认盖章信息");
467
468
  return [2 /*return*/, Promise.reject("附件盖章信息有变动,请重新确认盖章信息")];
468
469
  }
469
470
  }
@@ -486,7 +487,7 @@ var ElectronSignatures = function (props) {
486
487
  });
487
488
  if (isMoreQunjCountIndex !== -1) {
488
489
  msg = "\u7B2C".concat(isMoreQunjCountIndex + 1, "\u884C\u6570\u636E\uFF0C\u60A8\u7684\u7FA4\u6770\u7AE0\u7528\u5370\u6B21\u6570\u8FDC\u8FDC\u8D85\u8FC7\u5408\u7406\u6B21\u6570\u8303\u56F4\uFF0C\u8BF7\u4FEE\u6539\u3002");
489
- message.warning(msg);
490
+ myMessage.warning(msg);
490
491
  return [2 /*return*/, Promise.reject(msg)];
491
492
  }
492
493
  }
@@ -495,7 +496,7 @@ var ElectronSignatures = function (props) {
495
496
  isMoreQunjCount = countIsValidate(qunjSeal, false);
496
497
  if (!isMoreQunjCount) {
497
498
  msg = "您的群杰章用印次数远远超过合理次数范围,请修改。";
498
- message.warning(msg);
499
+ myMessage.warning(msg);
499
500
  return [2 /*return*/, Promise.reject(msg)];
500
501
  }
501
502
  }
@@ -526,13 +527,13 @@ var ElectronSignatures = function (props) {
526
527
  });
527
528
  if (isCheckTakeOutNoAddressIndex !== -1) {
528
529
  msg = "\u7B2C".concat(isCheckTakeOutNoAddressIndex + 1, "\u884C\u6570\u636E\uFF0C\u60A8\u7684\u7FA4\u6770\u7AE0\u7528\u9009\u4E86\u5916\u90E8\u7528\u5370\uFF0C\u4F46\u662F\u6CA1\u6709\u9009\u62E9\u5916\u90E8\u7528\u5370\u7684\u5730\u5740\uFF01");
529
- message.warning(msg);
530
+ myMessage.warning(msg);
530
531
  return [2 /*return*/, Promise.reject(msg)];
531
532
  }
532
533
  }
533
534
  else if (isCheckTakeOutNoAddress(submitData)) {
534
535
  msg = "您的群杰印章选了外部用印,但是没有选择外部用印的地址!";
535
- message.warning(msg);
536
+ myMessage.warning(msg);
536
537
  return [2 /*return*/, Promise.reject(msg)];
537
538
  }
538
539
  }
@@ -543,7 +544,7 @@ var ElectronSignatures = function (props) {
543
544
  !contractId &&
544
545
  !isOnlyQj) {
545
546
  msg = "请点击指定签署位置按钮,指定签署位置后方可提交!";
546
- message.warning(msg);
547
+ myMessage.warning(msg);
547
548
  return [2 /*return*/, Promise.reject(msg)];
548
549
  }
549
550
  // 5. 合同份数验证
@@ -566,7 +567,7 @@ var ElectronSignatures = function (props) {
566
567
  });
567
568
  if (hasNoWritContranctNum !== -1) {
568
569
  msg = "\u7B2C".concat(hasNoWritContranctNum + 1, "\u884C\u6570\u636E\uFF0C\u6CA1\u6709\u586B\u5199\u7FA4\u6770\u7AE0\u5408\u540C\u4EFD\u6570\u3002");
569
- message.warning(msg);
570
+ myMessage.warning(msg);
570
571
  return [2 /*return*/, Promise.reject(msg)];
571
572
  }
572
573
  }
@@ -586,7 +587,7 @@ var ElectronSignatures = function (props) {
586
587
  });
587
588
  if (hasNoCheckedQjSeal !== -1) {
588
589
  msg = "\u7B2C".concat(hasNoCheckedQjSeal + 1, "\u884C\u6570\u636E\uFF0C\u52FE\u9009\u4E86\u76D6\u7FA4\u6770\u7AE0\uFF0C\u4F46\u662F\u6CA1\u6709\u9009\u62E9\u7FA4\u6770\u5370\u7AE0");
589
- message.warning(msg);
590
+ myMessage.warning(msg);
590
591
  return [2 /*return*/, Promise.reject(msg)];
591
592
  }
592
593
  noNumSealName_1 = "";
@@ -610,7 +611,7 @@ var ElectronSignatures = function (props) {
610
611
  });
611
612
  if (hasNoNumCheckedQjSeal !== -1) {
612
613
  msg = "\u7B2C".concat(hasNoNumCheckedQjSeal + 1, "\u884C\u6570\u636E\uFF0C\u8BF7\u68C0\u67E5\u662F\u5426\u9009\u4E86\u5370\u7AE0\uFF0C\u4F46\u662F\u6CA1\u586B\u7528\u5370\u6B21\u6570\u7684\u5370\u7AE0\u3002\u5982\uFF1A").concat(noNumSealName_1);
613
- message.warning(msg);
614
+ myMessage.warning(msg);
614
615
  return [2 /*return*/, Promise.reject(msg)];
615
616
  }
616
617
  }
@@ -618,14 +619,14 @@ var ElectronSignatures = function (props) {
618
619
  if (!isSingleQj && qunjChecked) {
619
620
  // 合同份数为空
620
621
  if (isContranctNum && !qunjSeal.contranctNum) {
621
- message.warning("请填写合同份数!");
622
+ myMessage.warning("请填写合同份数!");
622
623
  return [2 /*return*/, Promise.reject("请填写合同份数!")];
623
624
  }
624
625
  // 勾选了群杰印章 没有填用印次数
625
626
  if (((_h = qunjSeal === null || qunjSeal === void 0 ? void 0 : qunjSeal.details) === null || _h === void 0 ? void 0 : _h.length) > 0) {
626
627
  qunjSeal.details.forEach(function (item) {
627
628
  if (!item.sealCount) {
628
- message.warning("\u8BF7\u586B\u5199".concat(item.sealName, " \u7684\u7528\u5370\u6B21\u6570\uFF01"));
629
+ myMessage.warning("\u8BF7\u586B\u5199".concat(item.sealName, " \u7684\u7528\u5370\u6B21\u6570\uFF01"));
629
630
  }
630
631
  });
631
632
  if (qunjSeal.details.filter(function (item) { return !item.sealCount; }).length >
@@ -635,7 +636,7 @@ var ElectronSignatures = function (props) {
635
636
  }
636
637
  else {
637
638
  msg = "请选择群杰用印!";
638
- message.warning(msg);
639
+ myMessage.warning(msg);
639
640
  return [2 /*return*/, Promise.reject(msg)];
640
641
  }
641
642
  }
@@ -755,7 +756,7 @@ var ElectronSignatures = function (props) {
755
756
  function onBatchDeleteHandle() {
756
757
  var _a;
757
758
  if (!selectRows.current || selectRows.current.length === 0) {
758
- message.warning("请选择要删除的附件!");
759
+ myMessage.warning("请选择要删除的附件!");
759
760
  return;
760
761
  }
761
762
  var deleteInfo = {};
@@ -764,7 +765,7 @@ var ElectronSignatures = function (props) {
764
765
  var currentDataType = item === null || item === void 0 ? void 0 : item[DATA_TYPE_KEY];
765
766
  var _c = allData[currentDataType] || {}, isEdit = _c.isEdit, records = _c.records, setRecords = _c.setRecords;
766
767
  if (!isEdit) {
767
- message.warning("存在不能删除的附件!");
768
+ myMessage.warning("存在不能删除的附件!");
768
769
  return;
769
770
  }
770
771
  if (deleteInfo[currentDataType]) {
@@ -4,7 +4,7 @@ import { memo, forwardRef, useState, useMemo, useImperativeHandle } from 'react'
4
4
  import MemoForm from '../../form/form.js';
5
5
  import MemoInput from '../../input/input.js';
6
6
  import ModalComponent from '../../modal/modal.js';
7
- import { message } from 'antd';
7
+ import myMessage from '../../message/index.js';
8
8
 
9
9
  var CodeModal = function (props, ref) {
10
10
  var details = props.details, request = props.request;
@@ -75,23 +75,23 @@ var CodeModal = function (props, ref) {
75
75
  var _a, _b;
76
76
  if (res.status === 200 && res.data.code === 200) {
77
77
  setCode((_a = res.data.data) === null || _a === void 0 ? void 0 : _a.vertifyCode);
78
- message.info("验证码已获取成功");
78
+ myMessage.info("验证码已获取成功");
79
79
  }
80
80
  else {
81
- message.error(((_b = res === null || res === void 0 ? void 0 : res.data) === null || _b === void 0 ? void 0 : _b.msg) || "获取验证码失败");
81
+ myMessage.error(((_b = res === null || res === void 0 ? void 0 : res.data) === null || _b === void 0 ? void 0 : _b.msg) || "获取验证码失败");
82
82
  }
83
83
  })
84
84
  .catch(function (err) {
85
85
  var _a, _b;
86
86
  console.log(err);
87
- message.error(((_b = (_a = err.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || "获取验证码失败");
87
+ myMessage.error(((_b = (_a = err.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || "获取验证码失败");
88
88
  });
89
89
  }
90
90
  return [3 /*break*/, 3];
91
91
  case 2:
92
92
  err_1 = _c.sent();
93
93
  console.log(err_1);
94
- message.error((_b = (_a = err_1 === null || err_1 === void 0 ? void 0 : err_1.errorFields) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.errors[0]);
94
+ myMessage.error((_b = (_a = err_1 === null || err_1 === void 0 ? void 0 : err_1.errorFields) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.errors[0]);
95
95
  return [3 /*break*/, 3];
96
96
  case 3: return [2 /*return*/];
97
97
  }
@@ -1,5 +1,5 @@
1
1
  import { useState, useCallback, useEffect } from 'react';
2
- import { message } from 'antd';
2
+ import myMessage from '../../message/index.js';
3
3
 
4
4
  /**
5
5
  * 获取电子印章远程数据
@@ -27,11 +27,11 @@ function useFetchQunjData(options) {
27
27
  }); })) || []);
28
28
  }
29
29
  else {
30
- message.error(res.data.msg || "出错了");
30
+ myMessage.error(res.data.msg || "出错了");
31
31
  }
32
32
  }).catch(function (error) {
33
33
  var _a, _b;
34
- message.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || "请求失败!");
34
+ myMessage.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || "请求失败!");
35
35
  return Promise.reject(error);
36
36
  });
37
37
  }, [request]);
@@ -42,7 +42,7 @@ function useFetchQunjData(options) {
42
42
  return;
43
43
  }
44
44
  if (!flowId) {
45
- message.info("请传入流程ID");
45
+ myMessage.info("请传入流程ID");
46
46
  return;
47
47
  }
48
48
  getQunjList(flowId, { companyTypes: companyTypes, deptId: deptId }).then(function (res) {
@@ -3,10 +3,10 @@ import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import { memo, useCallback, useMemo, useState, useRef, useEffect } from 'react';
4
4
  import { phoneValidate, validatePassword } from 'zmdms-utils';
5
5
  import MemoForm from '../form/form.js';
6
+ import myMessage from '../message/index.js';
6
7
  import MemoInput from '../input/input.js';
7
8
  import ButtonCom from '../button/button.js';
8
9
  import ModalComponent from '../modal/modal.js';
9
- import { message } from 'antd';
10
10
 
11
11
  var countDownMaxTime = 10;
12
12
  var ForgetPassword = function (_a) {
@@ -18,15 +18,15 @@ var ForgetPassword = function (_a) {
18
18
  var phone = form.getFieldValue("phone");
19
19
  var account = form.getFieldValue("account");
20
20
  if (!account) {
21
- message.error("请输入您的用户名");
21
+ myMessage.error("请输入您的用户名");
22
22
  return Promise.resolve(false);
23
23
  }
24
24
  if (!phone) {
25
- message.error("请输入您的手机号");
25
+ myMessage.error("请输入您的手机号");
26
26
  return Promise.resolve(false);
27
27
  }
28
28
  if (!phoneValidate.regex.test(phone)) {
29
- message.error(phoneValidate.message);
29
+ myMessage.error(phoneValidate.message);
30
30
  return Promise.resolve(false);
31
31
  }
32
32
  setTimeout(function () {
@@ -48,10 +48,10 @@ var ForgetPassword = function (_a) {
48
48
  }, (countDown - 1) * 1000);
49
49
  var _a = res.data, msg = _a.msg, success = _a.success;
50
50
  if (success === "true") {
51
- message.success("验证码发送成功!");
51
+ myMessage.success("验证码发送成功!");
52
52
  }
53
53
  else {
54
- message.warning(msg || "验证码发送失败!");
54
+ myMessage.warning(msg || "验证码发送失败!");
55
55
  }
56
56
  })
57
57
  .catch(function (err) {
@@ -59,7 +59,7 @@ var ForgetPassword = function (_a) {
59
59
  setTimeout(function () {
60
60
  resolve(1);
61
61
  }, (countDown - 1) * 1000);
62
- message.warning(((_b = (_a = err === null || err === void 0 ? void 0 : err.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || "验证码发送失败!");
62
+ myMessage.warning(((_b = (_a = err === null || err === void 0 ? void 0 : err.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || "验证码发送失败!");
63
63
  });
64
64
  });
65
65
  });
@@ -177,16 +177,16 @@ var ForgetPassword = function (_a) {
177
177
  .then(function (res) {
178
178
  var _a = res.data, msg = _a.msg, code = _a.code;
179
179
  if (code === 200) {
180
- message.success(msg || "密码修改成功!");
180
+ myMessage.success(msg || "密码修改成功!");
181
181
  setOpen(false);
182
182
  }
183
183
  else {
184
- message.warning(msg || "密码修改失败!");
184
+ myMessage.warning(msg || "密码修改失败!");
185
185
  }
186
186
  })
187
187
  .catch(function (err) {
188
188
  var _a, _b;
189
- message.warning(((_b = (_a = err === null || err === void 0 ? void 0 : err.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || "密码修改失败!");
189
+ myMessage.warning(((_b = (_a = err === null || err === void 0 ? void 0 : err.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || "密码修改失败!");
190
190
  });
191
191
  }, open: open }, { children: jsx(MemoForm, { form: form, items: items, type: "list", directionColumn: true }) })));
192
192
  };
@@ -0,0 +1,5 @@
1
+ import { MessageApi } from 'antd/lib/message';
2
+
3
+ declare let myMessage: MessageApi;
4
+
5
+ export { myMessage as default };
@@ -0,0 +1,70 @@
1
+ import { message } from 'antd';
2
+
3
+ var messageKey = 1;
4
+ function getConfig(content, duration, onClose) {
5
+ var _onClick = content === null || content === void 0 ? void 0 : content.onClick;
6
+ var _onClose = (content === null || content === void 0 ? void 0 : content.onClose) || onClose;
7
+ var config = (content === null || content === void 0 ? void 0 : content.content)
8
+ ? content
9
+ : {
10
+ duration: duration,
11
+ content: content,
12
+ onClose: onClose,
13
+ };
14
+ config.key = config.key ? config.key : messageKey;
15
+ messageKey++;
16
+ config.onClick = function () {
17
+ _onClick && (_onClick === null || _onClick === void 0 ? void 0 : _onClick());
18
+ _onClose && (_onClose === null || _onClose === void 0 ? void 0 : _onClose());
19
+ message.destroy(config.key);
20
+ };
21
+ return config;
22
+ }
23
+ var defaultDuration = 10;
24
+ var myMessage = {
25
+ info: function (content, duration, onClose) {
26
+ var config = getConfig(content, duration ? duration : defaultDuration, onClose);
27
+ message.info(config, duration, onClose);
28
+ return Promise.resolve();
29
+ },
30
+ success: function (content, duration, onClose) {
31
+ var config = getConfig(content, duration ? duration : defaultDuration, onClose);
32
+ message.success(config, duration, onClose);
33
+ return Promise.resolve();
34
+ },
35
+ error: function (content, duration, onClose) {
36
+ var config = getConfig(content, duration ? duration : defaultDuration, onClose);
37
+ message.error(config, duration, onClose);
38
+ return Promise.resolve();
39
+ },
40
+ warning: function (content, duration, onClose) {
41
+ var config = getConfig(content, duration ? duration : defaultDuration, onClose);
42
+ message.warning(config, duration, onClose);
43
+ return Promise.resolve();
44
+ },
45
+ loading: function (content, duration, onClose) {
46
+ var config = getConfig(content, duration ? duration : defaultDuration, onClose);
47
+ message.loading(config, duration, onClose);
48
+ return Promise.resolve();
49
+ },
50
+ open: function (args) {
51
+ message.open(args);
52
+ return Promise.resolve();
53
+ },
54
+ warn: function (content, duration, onClose) {
55
+ var config = getConfig(content, duration ? duration : defaultDuration, onClose);
56
+ message.warn(config, duration, onClose);
57
+ return Promise.resolve();
58
+ },
59
+ config: function (options) {
60
+ message.config(options);
61
+ },
62
+ destroy: function (messageKey) {
63
+ message.destroy(messageKey);
64
+ },
65
+ useMessage: function () {
66
+ return message.useMessage();
67
+ },
68
+ };
69
+
70
+ export { myMessage as default };
@@ -1,9 +1,10 @@
1
1
  import { __rest, __awaiter, __generator, __assign } from '../_virtual/_tslib.js';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { forwardRef, useState, useCallback, useImperativeHandle } from 'react';
4
- import { Modal as Modal$1, message } from 'antd';
4
+ import { Modal as Modal$1 } from 'antd';
5
5
  import classNames from '../node_modules/classnames/index.js';
6
6
  import { setCancelBtnProps } from './utils.js';
7
+ import myMessage from '../message/index.js';
7
8
 
8
9
  var Modal = function (_a, ref) {
9
10
  var className = _a.className, defaultOpen = _a.defaultOpen, defaultTitle = _a.defaultTitle, defaultConfirmMsg = _a.defaultConfirmMsg, defaultConfirmOkText = _a.defaultConfirmOkText, defaultType = _a.defaultType, confirmPreHandle = _a.confirmPreHandle, confirmOnOk = _a.confirmOnOk, onOk = _a.onOk, footer = _a.footer, onOkValidate = _a.onOkValidate, resetProps = __rest(_a, ["className", "defaultOpen", "defaultTitle", "defaultConfirmMsg", "defaultConfirmOkText", "defaultType", "confirmPreHandle", "confirmOnOk", "onOk", "footer", "onOkValidate"]);
@@ -47,11 +48,11 @@ var Modal = function (_a, ref) {
47
48
  errorFields = err_1.errorFields, errors = err_1.errors;
48
49
  // 针对表单的验证
49
50
  if (errorFields) {
50
- message.warning(errorFields[0].errors + "");
51
+ myMessage.warning(errorFields[0].errors + "");
51
52
  }
52
53
  // 针对表格的验证
53
54
  if (errors) {
54
- message.warning(errors);
55
+ myMessage.warning(errors);
55
56
  }
56
57
  return [3 /*break*/, 4];
57
58
  case 4:
@@ -4,7 +4,8 @@ import { useMemo, useEffect, useState } from 'react';
4
4
  import { useLatest } from 'ahooks';
5
5
  import MemoInput from '../../input/input.js';
6
6
  import ButtonCom from '../../button/button.js';
7
- import { Checkbox, Tooltip, message } from 'antd';
7
+ import myMessage from '../../message/index.js';
8
+ import { Checkbox, Tooltip } from 'antd';
8
9
  import QuestionCircleOutlined from '../../node_modules/@ant-design/icons/es/icons/QuestionCircleOutlined.js';
9
10
 
10
11
  /**
@@ -186,7 +187,7 @@ function filterHandle(value, record, key) {
186
187
  console.log(err);
187
188
  if (!isMessage) {
188
189
  isMessage = true;
189
- message.info("不要使用赋值语句如:1+1=2 /n 应该使用:1+1==2", 3, function () {
190
+ myMessage.info("不要使用赋值语句如:1+1=2 /n 应该使用:1+1==2", 3, function () {
190
191
  isMessage = false;
191
192
  });
192
193
  }
@@ -1,8 +1,9 @@
1
1
  import { __assign } from '../../../_virtual/_tslib.js';
2
2
  import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import { memo } from 'react';
4
+ import myMessage from '../../../message/index.js';
4
5
  import VerticalAlignBottomOutlined from '../../../node_modules/@ant-design/icons/es/icons/VerticalAlignBottomOutlined.js';
5
- import { Tooltip, message } from 'antd';
6
+ import { Tooltip } from 'antd';
6
7
 
7
8
  var FillDown = function (_a) {
8
9
  var isFillDown = _a.isFillDown, dataSourceRef = _a.dataSourceRef, dataKey = _a.dataKey, onTableChange = _a.onTableChange;
@@ -10,7 +11,7 @@ var FillDown = function (_a) {
10
11
  if (!Array.isArray(dataSourceRef === null || dataSourceRef === void 0 ? void 0 : dataSourceRef.current) ||
11
12
  (dataSourceRef === null || dataSourceRef === void 0 ? void 0 : dataSourceRef.current.length) <= 1 ||
12
13
  !isFillDown) {
13
- message.info("数据不需要填充!");
14
+ myMessage.info("数据不需要填充!");
14
15
  return;
15
16
  }
16
17
  var newDataSource = [];