ztxkui 10.0.69 → 10.0.70

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.
@@ -38,7 +38,7 @@ function dangerouslySetXss(str) {
38
38
  export function createOriginalUrl(fileUrl, fileId, otherOption) {
39
39
  var token = getToken() || (otherOption === null || otherOption === void 0 ? void 0 : otherOption.authTOken);
40
40
  var titleName = dangerouslySetXss(otherOption === null || otherOption === void 0 ? void 0 : otherOption.titleName);
41
- var officePreviewType = (otherOption === null || otherOption === void 0 ? void 0 : otherOption.type) || 'image';
41
+ // const officePreviewType = otherOption?.type || 'image';
42
42
  try {
43
43
  titleName = titleName === null || titleName === void 0 ? void 0 : titleName.replace(/[~!@#$%^&*{}|]/g, '');
44
44
  }
@@ -55,10 +55,10 @@ export function createOriginalUrl(fileUrl, fileId, otherOption) {
55
55
  titleName = suffixTitleName
56
56
  ? preTitleName + "." + suffixTitleName
57
57
  : preTitleName;
58
- return _fileUrl + "/attchPreview?attachId=" + fileId + "&Zmdms-Auth=" + encodeURIComponent("bearer " + token) + "&titleName=" + encodeURIComponent(titleName) + "&officePreviewType=" + officePreviewType;
58
+ return _fileUrl + "/attchPreview?attachId=" + fileId + "&Zmdms-Auth=" + encodeURIComponent("bearer " + token) + "&titleName=" + encodeURIComponent(titleName);
59
59
  }
60
60
  else {
61
- return fileUrl + "/attchPreview?attachId=" + fileId + "&Zmdms-Auth=" + encodeURIComponent("bearer " + token) + "&officePreviewType=" + officePreviewType;
61
+ return fileUrl + "/attchPreview?attachId=" + fileId + "&Zmdms-Auth=" + encodeURIComponent("bearer " + token);
62
62
  }
63
63
  }
64
64
  // 增强webview 会调用这个函数 通知h5一些消息
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkui",
3
- "version": "10.0.69",
3
+ "version": "10.0.70",
4
4
  "private": false,
5
5
  "description": "React components library",
6
6
  "author": "zt-front-end",
@@ -30,7 +30,7 @@
30
30
  "react-to-print": "^2.14.7",
31
31
  "react-window": "^1.8.9",
32
32
  "virtuallist-antd": "^0.7.6",
33
- "ztxkutils": "^2.10.37"
33
+ "ztxkutils": "10.0.6"
34
34
  },
35
35
  "scripts": {
36
36
  "analyze": "source-map-explorer 'dist/static/js/*.js'",