@lingxiteam/assets 1.0.12-alpha.1 → 1.0.12-alpha.11

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 (45) hide show
  1. package/es/dealDsl/preprocess/common.js +32 -15
  2. package/es/error/errorDisplay/Web/ErrorMsg/index.js +4 -3
  3. package/es/error/errorDisplay/Web/Notification/Notification.less +21 -3
  4. package/es/error/errorDisplay/Web/defaultGlobalConfig.js +1 -1
  5. package/es/rootConfig/mobile/BusiComp.js +2 -1
  6. package/es/rootConfig/mobile/MobileModal.js +5 -4
  7. package/es/rootConfig/mobile/MobilePopover.js +2 -1
  8. package/es/rootConfig/mobile/page.d.ts +7 -0
  9. package/es/rootConfig/mobile/page.js +9 -1
  10. package/es/rootConfig/pc/page.d.ts +0 -18
  11. package/es/rootConfig/pc/page.js +0 -13
  12. package/es/rootConfig/todoActionList.d.ts +35 -4
  13. package/es/rootConfig/todoActionList.js +33 -4
  14. package/es/rootConfig/todoOptionList.d.ts +13 -2
  15. package/es/rootConfig/todoOptionList.js +11 -2
  16. package/es/security/encipher/sign.d.ts +1 -0
  17. package/es/security/encipher/sign.js +21 -3
  18. package/es/security/fetch.js +14 -0
  19. package/es/security/httpEncryption.js +3 -2
  20. package/es/security/index.d.ts +1 -0
  21. package/es/utils/url.d.ts +1 -0
  22. package/es/utils/url.js +5 -0
  23. package/lib/dealDsl/preprocess/common.js +32 -15
  24. package/lib/error/errorDisplay/Web/ErrorMsg/index.js +4 -3
  25. package/lib/error/errorDisplay/Web/Notification/Notification.less +21 -3
  26. package/lib/error/errorDisplay/Web/defaultGlobalConfig.js +1 -1
  27. package/lib/rootConfig/mobile/BusiComp.js +2 -1
  28. package/lib/rootConfig/mobile/MobileModal.js +5 -4
  29. package/lib/rootConfig/mobile/MobilePopover.js +2 -1
  30. package/lib/rootConfig/mobile/page.d.ts +7 -0
  31. package/lib/rootConfig/mobile/page.js +9 -1
  32. package/lib/rootConfig/pc/page.d.ts +0 -18
  33. package/lib/rootConfig/pc/page.js +0 -13
  34. package/lib/rootConfig/todoActionList.d.ts +35 -4
  35. package/lib/rootConfig/todoActionList.js +33 -4
  36. package/lib/rootConfig/todoOptionList.d.ts +13 -2
  37. package/lib/rootConfig/todoOptionList.js +11 -2
  38. package/lib/security/encipher/sign.d.ts +1 -0
  39. package/lib/security/encipher/sign.js +22 -3
  40. package/lib/security/fetch.js +14 -0
  41. package/lib/security/httpEncryption.js +2 -1
  42. package/lib/security/index.d.ts +1 -0
  43. package/lib/utils/url.d.ts +1 -0
  44. package/lib/utils/url.js +7 -1
  45. package/package.json +1 -1
@@ -11,6 +11,17 @@ var h5 = {
11
11
  } else {
12
12
  props.btnIcon = false;
13
13
  }
14
+ if (props.name && !props.children) {
15
+ props.children = props.name;
16
+ }
17
+ if (props.disabled !== undefined) {
18
+ if (props.disabled) {
19
+ props.status = '3';
20
+ } else {
21
+ props.status = '1';
22
+ }
23
+ delete props.disabled;
24
+ }
14
25
  return component;
15
26
  },
16
27
  Icon: function Icon() {
@@ -120,16 +131,11 @@ var h5 = {
120
131
  if (Array.isArray(regexp)) {
121
132
  var oldRegStr = "/^\\d{6}(18|19|20)?\\d{2}(0[1-9]|1[12])(0[1-9]|[12]\\d|3[01])\\d{3}(\\d|X)$/";
122
133
  var newRegStr = "/^\\d{6}(18|19|20)?\\d{2}(0[1-9]|1[012])(0[1-9]|[12]\\d|3[01])\\d{3}(\\d|X)$/";
123
- // 运行态会给正则加上$$符号
124
134
  var idCardRegexp = regexp.find(function (reg) {
125
- return reg.pattern === "$".concat(oldRegStr, "$") || reg.pattern === oldRegStr;
135
+ return reg.pattern === oldRegStr;
126
136
  });
127
137
  if (idCardRegexp) {
128
- if (/^\$.+\$$/.test(idCardRegexp.pattern)) {
129
- idCardRegexp.pattern = "$".concat(newRegStr, "$");
130
- } else {
131
- idCardRegexp.pattern = newRegStr;
132
- }
138
+ idCardRegexp.pattern = newRegStr;
133
139
  }
134
140
  }
135
141
  return component;
@@ -314,7 +320,7 @@ var pc = {
314
320
  edittype: 'title',
315
321
  title: {
316
322
  "code": "$function main(text, row, index) { return text;}$",
317
- "originCode": ["/**", " * 计算绑定的内容", " * @param {String} text 行数据中数据字段对应的原始值", " * @param {Object} row 行数据对象", " * @param {Number} index 行索引", " * @returns {Boolean} 实际值", " * 例:return row.id,表示当行主键为id时,返回内容为row.id实际的值", " */", "function main(text, row, index) {", " return text;", "}"]
323
+ "originCode": ["/**", " * 计算绑定的内容", " * @param {String} text 行数据中数据字段翻译后的内容", " * @param {Object} row 行数据对象", " * @param {Number} index 行索引", " * @returns {Boolean} 实际值", " * 例:return row.id,表示当行主键为id时,返回内容为row.id实际的值", " */", "function main(text, row, index) {", " return text;", "}"]
318
324
  }
319
325
  };
320
326
  }
@@ -388,16 +394,27 @@ var pc = {
388
394
  if (Array.isArray(regexp)) {
389
395
  var oldRegStr = "/^\\d{6}(18|19|20)?\\d{2}(0[1-9]|1[12])(0[1-9]|[12]\\d|3[01])\\d{3}(\\d|X)$/";
390
396
  var newRegStr = "/^\\d{6}(18|19|20)?\\d{2}(0[1-9]|1[012])(0[1-9]|[12]\\d|3[01])\\d{3}(\\d|X)$/";
391
- // 运行态会给正则加上$$符号
392
397
  var idCardRegexp = regexp.find(function (reg) {
393
- return reg.pattern === "$".concat(oldRegStr, "$") || reg.pattern === oldRegStr;
398
+ return reg.pattern === oldRegStr;
394
399
  });
395
400
  if (idCardRegexp) {
396
- if (/^\$.+\$$/.test(idCardRegexp.pattern)) {
397
- idCardRegexp.pattern = "$".concat(newRegStr, "$");
398
- } else {
399
- idCardRegexp.pattern = newRegStr;
400
- }
401
+ idCardRegexp.pattern = newRegStr;
402
+ }
403
+ }
404
+ return component;
405
+ },
406
+ Steps: function Steps(component) {
407
+ var _component$props17 = component.props,
408
+ props = _component$props17 === void 0 ? {} : _component$props17;
409
+ if (props.stepsOptions) {
410
+ // 兼容存量数据
411
+ if (props.stepsOptions.type === 'custom') {
412
+ props.stepsOptions = props.stepsOptions.data;
413
+ }
414
+ // 兼容存量服务数据
415
+ if (props.stepsOptions.type === 'service') {
416
+ props.alias = props.stepsOptions.data;
417
+ props.stepsOptions = props.defaultStepsOptions;
401
418
  }
402
419
  }
403
420
  return component;
@@ -251,7 +251,7 @@ var ErrorMsg = {
251
251
  };
252
252
  if (isShowFeedback) {
253
253
  footerContent.push( /*#__PURE__*/React.createElement("a", {
254
- className: "lx-feedback-notification-".concat(_param.itemKey, " ").concat(renderDisabled(feedbackPlacements[0], _param.itemKey)),
254
+ className: "lx-notification-notice-footer-btn-ghost lx-feedback-notification-".concat(_param.itemKey, " ").concat(renderDisabled(feedbackPlacements[0], _param.itemKey)),
255
255
  config: String(_param.itemKey),
256
256
  onClick: function onClick(e) {
257
257
  if (!(_param === null || _param === void 0 ? void 0 : _param.feedbackState)) {
@@ -407,8 +407,9 @@ var ErrorMsg = {
407
407
  }
408
408
  }
409
409
  }, _callee2, null, [[8, 15]]);
410
- }))
411
- }, "\u5F02\u5E38\u5E2E\u52A9"));
410
+ })),
411
+ className: "lx-notification-notice-footer-btn-primary"
412
+ }, "\u67E5\u770B\u5F02\u5E38\u8BE6\u60C5"));
412
413
  }
413
414
  return _context3.abrupt("return", footerContent);
414
415
  case 29:
@@ -125,15 +125,33 @@
125
125
 
126
126
  &-head + &-footer,
127
127
  &-content + &-footer {
128
- margin-top: 12px;
128
+ margin-top: 14px;
129
129
  }
130
130
 
131
131
  &-footer {
132
132
  text-align: right;
133
133
  a {
134
134
  display: inline-block;
135
- padding: 3px 0 2px 14px;
135
+ padding: 2px 4px;
136
+ border-radius: 2px;
137
+ margin-left: 8px;
138
+ &:hover {
139
+ opacity: .9;
140
+ }
141
+ }
142
+ &-btn-ghost {
143
+ color: #4477EE !important;
144
+ border: 1px solid #4477EE;
145
+ &.lx-notification-btn-disabled {
146
+ border-color: rgba(28, 36, 46, 0.25) !important;
147
+ }
148
+ }
149
+ &-btn-primary {
150
+ color: #fff !important;
151
+ background-color: #4477EE;
152
+ border: 1px solid #4477EE;
136
153
  }
154
+
137
155
  }
138
156
  }
139
157
 
@@ -142,7 +160,7 @@
142
160
  pointer-events: none;
143
161
  &,
144
162
  &:hover {
145
- color: rgba(28,36,46,0.75) !important;
163
+ color: rgba(28,36,46,0.25) !important;
146
164
  background-color: white !important;
147
165
  }
148
166
  }
@@ -1,7 +1,7 @@
1
1
  import { resolveRequestPath } from '../compUtils';
2
2
  export var defaultGlobalConfig = {
3
3
  duration: 3500,
4
- maxLine: null,
4
+ maxLine: 20,
5
5
  // 最多行数
6
6
  maxLen: null,
7
7
  // 最多字数
@@ -39,7 +39,8 @@ export default {
39
39
  todoOptions: [{
40
40
  key: 'fileId',
41
41
  label: '文件ID',
42
- type: 'SetExpression'
42
+ type: 'SetExpression',
43
+ labelTip: '文件ID的预览形式支持:pdf、jpg、jpeg、png、svg、mp4、mov、txt、html、doc、xlsx、docx、wps、ppt! 注意:如果是外部URL,支持图片,pdf,world,xlsx 注意:如果是外部URL,有可能存在跨域现象!'
43
44
  }],
44
45
  classification: [{
45
46
  label: '页面类',
@@ -15,9 +15,9 @@ export default {
15
15
  catalogItemId: -1,
16
16
  ignoreLogin: false,
17
17
  mode: 'alert',
18
- closeOnClickOverlay: false,
19
- destroyOnClose: false,
20
- showCloseButton: false,
18
+ closeOnClickOverlay: true,
19
+ destroyOnClose: true,
20
+ showCloseButton: true,
21
21
  compState: [{
22
22
  name: '业务主键',
23
23
  code: 'bizId'
@@ -39,7 +39,8 @@ export default {
39
39
  todoOptions: [{
40
40
  key: 'fileId',
41
41
  label: '文件ID',
42
- type: 'SetExpression'
42
+ type: 'SetExpression',
43
+ labelTip: '文件ID的预览形式支持:pdf、jpg、jpeg、png、svg、mp4、mov、txt、html、doc、xlsx、docx、wps、ppt! 注意:如果是外部URL,支持图片,pdf,world,xlsx 注意:如果是外部URL,有可能存在跨域现象!'
43
44
  }],
44
45
  classification: [{
45
46
  label: '页面类',
@@ -41,7 +41,8 @@ export default {
41
41
  todoOptions: [{
42
42
  key: 'fileId',
43
43
  label: '文件ID',
44
- type: 'SetExpression'
44
+ type: 'SetExpression',
45
+ labelTip: '文件ID的预览形式支持:pdf、jpg、jpeg、png、svg、mp4、mov、txt、html、doc、xlsx、docx、wps、ppt! 注意:如果是外部URL,支持图片,pdf,world,xlsx 注意:如果是外部URL,有可能存在跨域现象!'
45
46
  }],
46
47
  classification: [{
47
48
  label: '页面类',
@@ -9,6 +9,7 @@ declare const _default: {
9
9
  pageDynamicFlag: boolean;
10
10
  catalogItemId: number;
11
11
  ignoreLogin: boolean;
12
+ hideNavBar: boolean;
12
13
  layout: string;
13
14
  searchParams: {
14
15
  name: string;
@@ -172,6 +173,12 @@ declare const _default: {
172
173
  type: string;
173
174
  props: {};
174
175
  };
176
+ colorType: {
177
+ groupsName: string;
178
+ label: string;
179
+ type: string;
180
+ props: {};
181
+ };
175
182
  };
176
183
  };
177
184
  export default _default;
@@ -16,6 +16,7 @@ export default {
16
16
  pageDynamicFlag: false,
17
17
  catalogItemId: -1,
18
18
  ignoreLogin: false,
19
+ hideNavBar: false,
19
20
  layout: 'BaseLayout',
20
21
  searchParams: [{
21
22
  name: '业务主键',
@@ -51,7 +52,8 @@ export default {
51
52
  todoOptions: [{
52
53
  key: 'fileId',
53
54
  label: '文件ID',
54
- type: 'SetExpression'
55
+ type: 'SetExpression',
56
+ labelTip: '文件ID的预览形式支持:pdf、jpg、jpeg、png、svg、mp4、mov、txt、html、doc、xlsx、docx、wps、ppt! 注意:如果是外部URL,支持图片,pdf,world,xlsx 注意:如果是外部URL,有可能存在跨域现象!'
55
57
  }],
56
58
  classification: [{
57
59
  label: '页面类',
@@ -209,6 +211,12 @@ export default {
209
211
  label: '填充类型',
210
212
  type: 'BackgroundType',
211
213
  props: {}
214
+ },
215
+ colorType: {
216
+ groupsName: '标题&返回键颜色',
217
+ label: '填充类型',
218
+ type: 'BackgroundType',
219
+ props: {}
212
220
  }
213
221
  }
214
222
  };
@@ -30,25 +30,8 @@ declare const _default: {
30
30
  todoEvents: ({
31
31
  value: string;
32
32
  label: string;
33
- terminal?: undefined;
34
- params?: undefined;
35
33
  dependProps?: undefined;
36
- } | {
37
- value: string;
38
- label: string;
39
- terminal: string[];
40
34
  params?: undefined;
41
- dependProps?: undefined;
42
- } | {
43
- value: string;
44
- label: string;
45
- terminal: string[];
46
- params: {
47
- title: string;
48
- name: string;
49
- value: string;
50
- }[];
51
- dependProps?: undefined;
52
35
  } | {
53
36
  value: string;
54
37
  label: string;
@@ -60,7 +43,6 @@ declare const _default: {
60
43
  name: string;
61
44
  value: string;
62
45
  }[];
63
- terminal?: undefined;
64
46
  })[];
65
47
  todoProps: {
66
48
  pageName: {
@@ -100,19 +100,6 @@ export default {
100
100
  }, {
101
101
  value: 'willUnmount',
102
102
  label: '页面退出'
103
- }, {
104
- value: 'onLeftClick',
105
- label: '页面返回点击事件',
106
- terminal: ['mobile']
107
- }, {
108
- value: 'otherPageMessage',
109
- label: '接收页面信息',
110
- terminal: ['mobile'],
111
- params: [{
112
- title: '接收数据信息',
113
- name: 'p',
114
- value: '$p$'
115
- }]
116
103
  }, {
117
104
  value: 'onPageCacheRefresh',
118
105
  label: '页面缓存刷新',
@@ -531,10 +531,19 @@ declare const todoActionObject: {
531
531
  label: string;
532
532
  type: string;
533
533
  props: {
534
- options: {
534
+ options: ({
535
535
  title: string;
536
536
  value: string;
537
- }[];
537
+ key?: undefined;
538
+ label?: undefined;
539
+ type?: undefined;
540
+ } | {
541
+ key: string;
542
+ label: string;
543
+ type: string;
544
+ title?: undefined;
545
+ value?: undefined;
546
+ })[];
538
547
  };
539
548
  } | {
540
549
  key: string;
@@ -1416,6 +1425,17 @@ declare const todoActionObject: {
1416
1425
  labelTip: string;
1417
1426
  props: {
1418
1427
  placeholder: string;
1428
+ defaultValue?: undefined;
1429
+ };
1430
+ aliasKey?: undefined;
1431
+ } | {
1432
+ key: string;
1433
+ label: string;
1434
+ type: string;
1435
+ labelTip: string;
1436
+ props: {
1437
+ defaultValue: boolean;
1438
+ placeholder?: undefined;
1419
1439
  };
1420
1440
  aliasKey?: undefined;
1421
1441
  })[];
@@ -2363,9 +2383,20 @@ declare const todoActionObject: {
2363
2383
  isRequired: boolean;
2364
2384
  valuePropName: string;
2365
2385
  options: {
2366
- fileUpload: boolean;
2367
2386
  refreshKey: string[];
2368
- serviceTabs: string[];
2387
+ serviceTabs: ({
2388
+ key: string;
2389
+ description: string;
2390
+ filterParams: {
2391
+ fileInputEnabled: string;
2392
+ };
2393
+ fileUpload?: undefined;
2394
+ } | {
2395
+ key: string;
2396
+ fileUpload: boolean;
2397
+ description: string;
2398
+ filterParams?: undefined;
2399
+ })[];
2369
2400
  };
2370
2401
  };
2371
2402
  } | {
@@ -644,6 +644,10 @@ var todoActionObject = {
644
644
  aliasKey: 'searchParams',
645
645
  label: 'url参数',
646
646
  type: 'SearchParams'
647
+ }, {
648
+ key: 'routerData',
649
+ label: '路由数据',
650
+ type: 'RouterData'
647
651
  }]
648
652
  },
649
653
  historyReplace: {
@@ -675,6 +679,10 @@ var todoActionObject = {
675
679
  }, {
676
680
  title: '路由替换',
677
681
  value: 'replace'
682
+ }, {
683
+ key: 'routerData',
684
+ label: '路由数据',
685
+ type: 'RouterData'
678
686
  }]
679
687
  }
680
688
  }, {
@@ -686,6 +694,10 @@ var todoActionObject = {
686
694
  aliasKey: 'searchParams',
687
695
  label: 'url参数',
688
696
  type: 'SearchParams'
697
+ }, {
698
+ key: 'routerData',
699
+ label: '路由数据',
700
+ type: 'RouterData'
689
701
  }],
690
702
  classification: [{
691
703
  label: '页面类',
@@ -1686,6 +1698,14 @@ var todoActionObject = {
1686
1698
  props: {
1687
1699
  placeholder: '包括后缀,如: 表格.xls'
1688
1700
  }
1701
+ }, {
1702
+ key: 'zip',
1703
+ label: '单文件压缩',
1704
+ type: 'Switch',
1705
+ labelTip: '默认为单文件不压缩,多文件压缩,若开启单文件压缩为“是”,则不区分单文件/多文件,都压缩。',
1706
+ props: {
1707
+ defaultValue: false
1708
+ }
1689
1709
  }],
1690
1710
  classification: [{
1691
1711
  label: '下载',
@@ -2680,9 +2700,18 @@ var todoActionObject = {
2680
2700
  isRequired: true,
2681
2701
  valuePropName: 'custUrl',
2682
2702
  options: {
2683
- fileUpload: true,
2684
2703
  refreshKey: ['objectFields'],
2685
- serviceTabs: [SERVICE_KEY.STD, SERVICE_KEY.INNER]
2704
+ serviceTabs: [{
2705
+ key: SERVICE_KEY.STD,
2706
+ description: '此处仅展示开启文件入参的编排服务,服务入参需包含impFile(文件类型)字段用于接收文件和param(对象类型,非必须)字段接收自定义参数',
2707
+ filterParams: {
2708
+ fileInputEnabled: 'T'
2709
+ }
2710
+ }, {
2711
+ key: SERVICE_KEY.INNER,
2712
+ fileUpload: true,
2713
+ description: '此处仅展示开启上传控件中使用的请求层服务,服务入参需包含impFile(文件类型)字段用于接收文件和param(对象类型,非必须)字段接收自定义参数'
2714
+ }]
2686
2715
  }
2687
2716
  }
2688
2717
  }, {
@@ -3693,9 +3722,9 @@ var todoActionObject = {
3693
3722
  }]
3694
3723
  }
3695
3724
  };
3696
- var mobileTodoActionKeys = ['showMessage', 'hideMessage', 'apiRequest', 'JSBridge', 'apiRequestByFlow', 'openFlowPage', 'rollbackFlow', 'openFlowDiagram', 'console', 'sysSetVisible', 'sysSetValue', 'sysSetDisable', 'sysSetRequired', 'showModal', 'showAppCustomModal', 'showDrawer', 'historyPush', 'historyReplace', 'history', 'dropPageByCatch', 'historyGoBack', 'setStatesByKeyAndValue', 'getStatesByKey', 'setCompNestedState', 'getCompNestedState', 'okCallbackData', 'closeModal', 'setDownloadResponse', 'saveBlobFile', 'setTimeout', 'setInterval', 'setTimer', 'clearTimer', 'validateAllAppForm', 'getAllFormValues', 'resetAllForm', 'pushScenePage', 'reloadDataSource', 'setDataSource', 'resetDataSource', 'postObjectData', 'postParentMessage', 'addEventListenerParentMessage', 'callFishParentFunc', 'callSelfFunc', 'callParentCustomFunc', 'callCustomPageFunc', 'exportBusiObjectData', 'exportCustomData', 'importBusiObjectData', 'exportSQLServiceData', 'importCustomBusiObjectData', 'exportCustomBusiObjectData', 'exportPage', 'importCustomData',
3725
+ var mobileTodoActionKeys = ['showMessage', 'hideMessage', 'apiRequest', 'JSBridge', 'console', 'sysSetVisible', 'sysSetValue', 'sysSetDisable', 'sysSetRequired', 'showModal', 'showAppCustomModal', 'showDrawer', 'historyPush', 'historyReplace', 'history', 'dropPageByCatch', 'historyGoBack', 'setStatesByKeyAndValue', 'getStatesByKey', 'setCompNestedState', 'getCompNestedState', 'okCallbackData', 'closeModal', 'setDownloadResponse', 'setTimeout', 'setInterval', 'setTimer', 'clearTimer', 'validateAllAppForm', 'getAllFormValues', 'resetAllForm', 'reloadDataSource', 'setDataSource', 'resetDataSource', 'postObjectData', 'postParentMessage', 'addEventListenerParentMessage', 'callFishParentFunc', 'callSelfFunc', 'callParentCustomFunc', 'callCustomPageFunc',
3697
3726
  // 'previewFile',
3698
- 'return', 'copyToClipboard', 'addDebugger', 'reload', 'customActionCode', 'getItemFromLocalStorage', 'setItemToLocalStorage', 'getLocalLocation'
3727
+ 'return', 'copyToClipboard', 'reload', 'customActionCode', 'getItemFromLocalStorage', 'setItemToLocalStorage', 'getLocalLocation'
3699
3728
  // 'sysSetState'
3700
3729
  ];
3701
3730
 
@@ -952,9 +952,20 @@ declare const todoOptionList: {
952
952
  isRequired: boolean;
953
953
  valuePropName: string;
954
954
  options: {
955
- fileUpload: boolean;
956
955
  refreshKey: string[];
957
- serviceTabs: string[];
956
+ serviceTabs: ({
957
+ key: string;
958
+ description: string;
959
+ filterParams: {
960
+ fileInputEnabled: string;
961
+ };
962
+ fileUpload?: undefined;
963
+ } | {
964
+ key: string;
965
+ fileUpload: boolean;
966
+ description: string;
967
+ filterParams?: undefined;
968
+ })[];
958
969
  };
959
970
  };
960
971
  };
@@ -1126,9 +1126,18 @@ var todoOptionList = {
1126
1126
  isRequired: true,
1127
1127
  valuePropName: 'custUrl',
1128
1128
  options: {
1129
- fileUpload: true,
1130
1129
  refreshKey: ['objectFields'],
1131
- serviceTabs: [SERVICE_KEY.STD, SERVICE_KEY.INNER]
1130
+ serviceTabs: [{
1131
+ key: SERVICE_KEY.STD,
1132
+ description: '此处仅展示开启文件入参的编排服务,服务入参需包含impFile(文件类型)字段用于接收文件和param(对象类型,非必须)字段接收自定义参数',
1133
+ filterParams: {
1134
+ fileInputEnabled: 'T'
1135
+ }
1136
+ }, {
1137
+ key: SERVICE_KEY.INNER,
1138
+ fileUpload: true,
1139
+ description: '此处仅展示开启上传控件中使用的请求层服务,服务入参需包含impFile(文件类型)字段用于接收文件和param(对象类型,非必须)字段接收自定义参数'
1140
+ }]
1132
1141
  }
1133
1142
  }
1134
1143
  },
@@ -1,4 +1,5 @@
1
1
  export declare const createHttpSignStr: (url: string, options: any) => string;
2
+ export declare const buildXSignUrl: (url: string, options?: any) => string;
2
3
  declare const _default: {
3
4
  createHttpSignStr: (url: string, options: any) => string;
4
5
  getApiPath: (url: string) => string | undefined;
@@ -1,3 +1,8 @@
1
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
3
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
5
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
1
6
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
7
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
3
8
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -6,8 +11,9 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
6
11
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
7
12
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8
13
  import { SHA256 } from 'crypto-js';
9
- import { obj2QueryString } from '../../utils/url';
14
+ import { obj2QueryString, decodeQueryString } from '../../utils/url';
10
15
  import CookieUtil from '../../utils/cookieUtil';
16
+ import { signKey } from '../const';
11
17
  var SIGN_KEY = process.env.LING_XI_HTTP_SIGN_KEY || 'zrT5bi2escXilaH1fs653uZiH9RWfzCS';
12
18
  // 注意:修改此文件请跑测试用例, npm run test
13
19
  // 1、签名算法:
@@ -30,7 +36,7 @@ var SIGN_KEY = process.env.LING_XI_HTTP_SIGN_KEY || 'zrT5bi2escXilaH1fs653uZiH9R
30
36
  // 由于X-B 的规则可能被业务网关使用,并往请求头增加内容,导致前后端加密不一致
31
37
  // 2022.08.09 使用以下3个固定值 + X-LX-*匹配 方式
32
38
  var hKeys = ['X-B-AUTH', 'X-B-TARGET-ID', 'APP-ID'];
33
- var userKeyInCookie = process.env.LING_XI_USER_KEY_IN_COOKIE || 'X-LX-N-ID';
39
+ var userKeyInCookie = window.lxDataSaltCode || process.env.LING_XI_USER_KEY_IN_COOKIE || 'X-LX-N-ID';
34
40
  // 配置指定接口前缀,2023-03-16规则调整,不需要使用
35
41
  // const apiPrefix =
36
42
  // process.env.LING_XI_HTTP_SIGN_API_PERFIX ||
@@ -75,7 +81,8 @@ export var createHttpSignStr = function createHttpSignStr(url, options) {
75
81
  // 获取参数3: 请求参数
76
82
  var params = '';
77
83
  if (method.toLowerCase() === 'get') {
78
- params = urlSearch;
84
+ // 为保证与后端值一致此处需要将数据进行解码
85
+ params = decodeQueryString(urlSearch);
79
86
  } else {
80
87
  params = _typeof(body) === 'object' ? JSON.stringify(body) : body;
81
88
  }
@@ -95,6 +102,17 @@ export var createHttpSignStr = function createHttpSignStr(url, options) {
95
102
  // 生成约定签名
96
103
  return SHA256(str).toString();
97
104
  };
105
+ // 由于(img、script)无法进行处理请求头,将签名参数x-sign放到url参数里
106
+ export var buildXSignUrl = function buildXSignUrl(url) {
107
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
108
+ if (!url) {
109
+ return '';
110
+ }
111
+ var signStr = createHttpSignStr(url, _objectSpread({
112
+ method: 'GET'
113
+ }, options));
114
+ return "".concat(url).concat(url.includes('?') ? '&' : '?').concat(signKey, "=").concat(signStr);
115
+ };
98
116
  export default {
99
117
  createHttpSignStr: createHttpSignStr,
100
118
  getApiPath: getApiPath
@@ -1,7 +1,10 @@
1
1
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ var _excluded = ["disabledSignKey"];
2
3
  function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
3
4
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
4
5
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
6
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
7
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
5
8
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
6
9
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7
10
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
@@ -110,11 +113,22 @@ function encrypted(url, opts, type) {
110
113
  // });
111
114
  // }
112
115
  var fetch = function fetch(url) {
116
+ var _opts$headers;
113
117
  var fetchOptions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
114
118
  var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
115
119
  var opts = _objectSpread({}, fetchOptions);
116
120
  var optSecurityHeaderKey = (opts.headers || {})[securityHeaderKey];
117
121
  var isDebug = (config === null || config === void 0 ? void 0 : config.debug) || window.lxDebug || !!window.localStorage.getItem('lxDebug') || true;
122
+ // 如果在headers 传入disabledSignKey标识 标识不启用加密
123
+ if ((opts === null || opts === void 0 ? void 0 : (_opts$headers = opts.headers) === null || _opts$headers === void 0 ? void 0 : _opts$headers.disabledSignKey) === true) {
124
+ // 不能直接删除,否则会导致disabledSignKey 这个节点删除了,第二次进来的时候导致异常
125
+ var _opts$headers2 = opts === null || opts === void 0 ? void 0 : opts.headers,
126
+ disabledSignKey = _opts$headers2.disabledSignKey,
127
+ resprops = _objectWithoutProperties(_opts$headers2, _excluded);
128
+ return originFetch(url, _objectSpread(_objectSpread({}, opts), {}, {
129
+ headers: _objectSpread({}, resprops)
130
+ }));
131
+ }
118
132
  // ------ 参数签名(默认) ------
119
133
  if (
120
134
  // 配置开启加密
@@ -11,7 +11,7 @@
11
11
  // 使用方式2: 使用fetch请求模块,将window.fetch 替换成 fetch,适应自己封装的fetch模块
12
12
  // 使用方式3: 不使用fetch请求模块,使用createHttpSignStr自己获取签名,自行在header上添加参数
13
13
 
14
- import { createHttpSignStr } from './encipher/sign';
14
+ import { createHttpSignStr, buildXSignUrl } from './encipher/sign';
15
15
  // eslint-disable-next-line import/no-named-as-default, import/no-named-as-default-member
16
16
  import fetch from './fetch';
17
17
  var isHttpEncryption = false;
@@ -70,5 +70,6 @@ export default {
70
70
  start: start,
71
71
  stop: stop,
72
72
  fetch: fetch,
73
- createHttpSignStr: createHttpSignStr
73
+ createHttpSignStr: createHttpSignStr,
74
+ buildXSignUrl: buildXSignUrl
74
75
  };