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, __awaiter, __generator } from '../_virtual/_tslib.js';
2
2
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
3
3
  import { memo, forwardRef, useRef, useState, useEffect, useMemo, useImperativeHandle } from 'react';
4
- import { Upload, Popconfirm, Dropdown, message } from 'antd';
4
+ import { Upload, Popconfirm, Dropdown } from 'antd';
5
5
  import UploadTable from './uploadTable.js';
6
6
  import UploadListDetail from './uploadListDetail.js';
7
7
  import { ETABLE_COLUMN_TYPE } from './interface.js';
@@ -17,6 +17,7 @@ import LoadingOutlined from '../node_modules/@ant-design/icons/es/icons/LoadingO
17
17
  import ButtonCom from '../button/button.js';
18
18
  import UploadOutlined from '../node_modules/@ant-design/icons/es/icons/UploadOutlined.js';
19
19
  import ModalComponent from '../modal/modal.js';
20
+ import myMessage from '../message/index.js';
20
21
  import DownloadOutlined from '../node_modules/@ant-design/icons/es/icons/DownloadOutlined.js';
21
22
 
22
23
  // 最大字节
@@ -107,7 +108,7 @@ var UploadList = function (props, ref) {
107
108
  case 0:
108
109
  checked = (_b = (_a = tableRef.current) === null || _a === void 0 ? void 0 : _a.getChecked) === null || _b === void 0 ? void 0 : _b.call(_a);
109
110
  if (!checked || checked.length === 0) {
110
- message.info("请选择需要操作的数据!");
111
+ myMessage.info("请选择需要操作的数据!");
111
112
  return [2 /*return*/];
112
113
  }
113
114
  if (!onBeforeDeleteValidate) return [3 /*break*/, 4];
@@ -147,7 +148,7 @@ var UploadList = function (props, ref) {
147
148
  case 0:
148
149
  checked = (_b = (_a = tableRef.current) === null || _a === void 0 ? void 0 : _a.getChecked) === null || _b === void 0 ? void 0 : _b.call(_a);
149
150
  if (!checked || checked.length === 0) {
150
- message.info("请选择需要操作的数据!");
151
+ myMessage.info("请选择需要操作的数据!");
151
152
  return [2 /*return*/];
152
153
  }
153
154
  (_c = tableRef.current) === null || _c === void 0 ? void 0 : _c.setLoading(true);
@@ -4,9 +4,10 @@ import { forwardRef, useState, useImperativeHandle } from 'react';
4
4
  import { downloadFile } from 'zmdms-utils';
5
5
  import { toPreviewFile } from './utils.js';
6
6
  import ButtonCom from '../button/button.js';
7
+ import myMessage from '../message/index.js';
7
8
  import LinkOutlined from '../node_modules/@ant-design/icons/es/icons/LinkOutlined.js';
8
9
  import DownloadOutlined from '../node_modules/@ant-design/icons/es/icons/DownloadOutlined.js';
9
- import { Spin, message } from 'antd';
10
+ import { Spin } from 'antd';
10
11
 
11
12
  var UploadTable = function (_a, ref) {
12
13
  var _b;
@@ -203,7 +204,7 @@ var UploadTable = function (_a, ref) {
203
204
  if (isPreviewAuth) {
204
205
  return operationCallback("preview", record, index);
205
206
  }
206
- message.info("暂无预览权限!");
207
+ myMessage.info("暂无预览权限!");
207
208
  return Promise.resolve();
208
209
  }, style: { textAlign: "left" }, title: record.attachName }, { children: [jsx(LinkOutlined, {}), record.attachName] })) })), jsx("div", __assign({ className: "preview-list__item--right" }, { children: isDownloadAuth ? (jsx(ButtonCom, __assign({ type: "link", onClick: function () { return operationCallback("download", record, index); }, style: { textAlign: "left" }, title: "\u4E0B\u8F7D" }, { children: jsx(DownloadOutlined, {}) }))) : null }))] }), record.attachId || record.fileId || index));
209
210
  }) })) })));
@@ -9,7 +9,8 @@ import dayjs from 'dayjs';
9
9
  import { toPreviewFile } from './utils.js';
10
10
  import ButtonCom from '../button/button.js';
11
11
  import OperationBtn from '../operationbtn/operationBtn.js';
12
- import { Progress, message } from 'antd';
12
+ import myMessage from '../message/index.js';
13
+ import { Progress } from 'antd';
13
14
 
14
15
  var UploadTable = function (_a, ref) {
15
16
  var dataSource = _a.dataSource, action = _a.action, headers = _a.headers, data = _a.data, method = _a.method, setInnerFileList = _a.setInnerFileList, isPublic = _a.isPublic, _b = _a.API_BASEURL, API_BASEURL = _b === void 0 ? "" : _b, _c = _a.FILE_API_BASEURL, FILE_API_BASEURL = _c === void 0 ? "" : _c, maxPreviewSize = _a.maxPreviewSize, isPreview = _a.isPreview, isDelete = _a.isDelete, isDownload = _a.isDownload; _a.listType; var tableColumns = _a.tableColumns, onBeforeDownloadValidate = _a.onBeforeDownloadValidate, onBeforePreviewValidate = _a.onBeforePreviewValidate, onBeforeDeleteValidate = _a.onBeforeDeleteValidate;
@@ -329,7 +330,7 @@ var UploadTable = function (_a, ref) {
329
330
  // 重新上传
330
331
  var onReloadUploadHandle = function (record, index) {
331
332
  if (!record.originFileObj) {
332
- message.error("当前失败项,没有找到附件原件信息,无法重新上传!");
333
+ myMessage.error("当前失败项,没有找到附件原件信息,无法重新上传!");
333
334
  return;
334
335
  }
335
336
  setLoading(true);
@@ -1,5 +1,5 @@
1
1
  import { formatUnit, previewFile } from 'zmdms-utils';
2
- import { message } from 'antd';
2
+ import myMessage from '../message/index.js';
3
3
 
4
4
  /**
5
5
  * 附件预览方法
@@ -9,7 +9,7 @@ import { message } from 'antd';
9
9
  function toPreviewFile(fileInfo, info) {
10
10
  var maxPreviewSize = info.maxPreviewSize, FILE_API_BASEURL = info.FILE_API_BASEURL, uploadTableData = info.uploadTableData;
11
11
  if (fileInfo.attachSize > maxPreviewSize) {
12
- message.info("\u6587\u4EF6\u5927\u4E8E".concat(formatUnit(maxPreviewSize), ",\u6682\u4E0D\u652F\u6301\u5728\u7EBF\u9884\u89C8\uFF0C\u8BF7\u5148\u4E0B\u8F7D\u540E\u67E5\u770B"));
12
+ myMessage.info("\u6587\u4EF6\u5927\u4E8E".concat(formatUnit(maxPreviewSize), ",\u6682\u4E0D\u652F\u6301\u5728\u7EBF\u9884\u89C8\uFF0C\u8BF7\u5148\u4E0B\u8F7D\u540E\u67E5\u770B"));
13
13
  }
14
14
  else {
15
15
  previewFile(fileInfo.attachId, fileInfo.attachName, {
@@ -47,7 +47,8 @@ export { default as ZtTransfer } from './es/zttransfer/zt-transfer.js';
47
47
  export { default as Watermark } from './es/watermark/watermark.js';
48
48
  export { default as Sortable } from './es/sortable/sortable.js';
49
49
  export { default as ElectronSignatures } from './es/electronsignatures/index.js';
50
- export { Affix, Anchor, AutoComplete, Avatar, BackTop, Badge, Breadcrumb, Card, Carousel, Cascader, Checkbox, Col, Comment, ConfigProvider, Divider, Drawer, Dropdown, Empty, Grid, Image, Layout, List, Mentions, Menu, PageHeader, Popconfirm, Popover, Progress, Radio, Rate, Result, Row, Segmented, Skeleton, Slider, Space, Spin, Statistic, Steps, Switch, Timeline, Tooltip, Transfer, Typography, Upload, message, notification } from 'antd';
50
+ export { default as message } from './es/message/index.js';
51
+ export { Affix, Anchor, AutoComplete, Avatar, BackTop, Badge, Breadcrumb, Card, Carousel, Cascader, Checkbox, Col, Comment, ConfigProvider, Divider, Drawer, Dropdown, Empty, Grid, Image, Layout, List, Mentions, Menu, PageHeader, Popconfirm, Popover, Progress, Radio, Rate, Result, Row, Segmented, Skeleton, Slider, Space, Spin, Statistic, Steps, Switch, Timeline, Tooltip, Transfer, Typography, Upload, notification } from 'antd';
51
52
  export { IButtonProps } from './es/button/interface.js';
52
53
  export { IButtonDownloadProps } from './es/button/buttonDownload.js';
53
54
  export { IButtonExportProps } from './es/button/buttonExport.js';