@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.
- package/es/dealDsl/preprocess/common.js +32 -15
- package/es/error/errorDisplay/Web/ErrorMsg/index.js +4 -3
- package/es/error/errorDisplay/Web/Notification/Notification.less +21 -3
- package/es/error/errorDisplay/Web/defaultGlobalConfig.js +1 -1
- package/es/rootConfig/mobile/BusiComp.js +2 -1
- package/es/rootConfig/mobile/MobileModal.js +5 -4
- package/es/rootConfig/mobile/MobilePopover.js +2 -1
- package/es/rootConfig/mobile/page.d.ts +7 -0
- package/es/rootConfig/mobile/page.js +9 -1
- package/es/rootConfig/pc/page.d.ts +0 -18
- package/es/rootConfig/pc/page.js +0 -13
- package/es/rootConfig/todoActionList.d.ts +35 -4
- package/es/rootConfig/todoActionList.js +33 -4
- package/es/rootConfig/todoOptionList.d.ts +13 -2
- package/es/rootConfig/todoOptionList.js +11 -2
- package/es/security/encipher/sign.d.ts +1 -0
- package/es/security/encipher/sign.js +21 -3
- package/es/security/fetch.js +14 -0
- package/es/security/httpEncryption.js +3 -2
- package/es/security/index.d.ts +1 -0
- package/es/utils/url.d.ts +1 -0
- package/es/utils/url.js +5 -0
- package/lib/dealDsl/preprocess/common.js +32 -15
- package/lib/error/errorDisplay/Web/ErrorMsg/index.js +4 -3
- package/lib/error/errorDisplay/Web/Notification/Notification.less +21 -3
- package/lib/error/errorDisplay/Web/defaultGlobalConfig.js +1 -1
- package/lib/rootConfig/mobile/BusiComp.js +2 -1
- package/lib/rootConfig/mobile/MobileModal.js +5 -4
- package/lib/rootConfig/mobile/MobilePopover.js +2 -1
- package/lib/rootConfig/mobile/page.d.ts +7 -0
- package/lib/rootConfig/mobile/page.js +9 -1
- package/lib/rootConfig/pc/page.d.ts +0 -18
- package/lib/rootConfig/pc/page.js +0 -13
- package/lib/rootConfig/todoActionList.d.ts +35 -4
- package/lib/rootConfig/todoActionList.js +33 -4
- package/lib/rootConfig/todoOptionList.d.ts +13 -2
- package/lib/rootConfig/todoOptionList.js +11 -2
- package/lib/security/encipher/sign.d.ts +1 -0
- package/lib/security/encipher/sign.js +22 -3
- package/lib/security/fetch.js +14 -0
- package/lib/security/httpEncryption.js +2 -1
- package/lib/security/index.d.ts +1 -0
- package/lib/utils/url.d.ts +1 -0
- package/lib/utils/url.js +7 -1
- package/package.json +1 -1
package/es/security/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ declare const _default: {
|
|
|
17
17
|
debug?: boolean | undefined;
|
|
18
18
|
}) => Promise<Response>;
|
|
19
19
|
createHttpSignStr: (url: string, options: any) => string;
|
|
20
|
+
buildXSignUrl: (url: string, options?: any) => string;
|
|
20
21
|
};
|
|
21
22
|
sign: {
|
|
22
23
|
createHttpSignStr: (url: string, options: any) => string;
|
package/es/utils/url.d.ts
CHANGED
package/es/utils/url.js
CHANGED
|
@@ -16,6 +16,11 @@ export var obj2QueryString = function obj2QueryString(params) {
|
|
|
16
16
|
}).join('&');
|
|
17
17
|
return queryString;
|
|
18
18
|
};
|
|
19
|
+
export var decodeQueryString = function decodeQueryString(queryStr) {
|
|
20
|
+
return queryStr === null || queryStr === void 0 ? void 0 : queryStr.replace(/[^&=]+/g, function (mat) {
|
|
21
|
+
return decodeURIComponent(mat);
|
|
22
|
+
});
|
|
23
|
+
};
|
|
19
24
|
export var getSearchObj = function getSearchObj() {
|
|
20
25
|
var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window.location.href;
|
|
21
26
|
var urlArr = url.split('?');
|
|
@@ -17,6 +17,17 @@ var h5 = {
|
|
|
17
17
|
} else {
|
|
18
18
|
props.btnIcon = false;
|
|
19
19
|
}
|
|
20
|
+
if (props.name && !props.children) {
|
|
21
|
+
props.children = props.name;
|
|
22
|
+
}
|
|
23
|
+
if (props.disabled !== undefined) {
|
|
24
|
+
if (props.disabled) {
|
|
25
|
+
props.status = '3';
|
|
26
|
+
} else {
|
|
27
|
+
props.status = '1';
|
|
28
|
+
}
|
|
29
|
+
delete props.disabled;
|
|
30
|
+
}
|
|
20
31
|
return component;
|
|
21
32
|
},
|
|
22
33
|
Icon: function Icon() {
|
|
@@ -126,16 +137,11 @@ var h5 = {
|
|
|
126
137
|
if (Array.isArray(regexp)) {
|
|
127
138
|
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)$/";
|
|
128
139
|
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)$/";
|
|
129
|
-
// 运行态会给正则加上$$符号
|
|
130
140
|
var idCardRegexp = regexp.find(function (reg) {
|
|
131
|
-
return reg.pattern ===
|
|
141
|
+
return reg.pattern === oldRegStr;
|
|
132
142
|
});
|
|
133
143
|
if (idCardRegexp) {
|
|
134
|
-
|
|
135
|
-
idCardRegexp.pattern = "$".concat(newRegStr, "$");
|
|
136
|
-
} else {
|
|
137
|
-
idCardRegexp.pattern = newRegStr;
|
|
138
|
-
}
|
|
144
|
+
idCardRegexp.pattern = newRegStr;
|
|
139
145
|
}
|
|
140
146
|
}
|
|
141
147
|
return component;
|
|
@@ -320,7 +326,7 @@ var pc = {
|
|
|
320
326
|
edittype: 'title',
|
|
321
327
|
title: {
|
|
322
328
|
"code": "$function main(text, row, index) { return text;}$",
|
|
323
|
-
"originCode": ["/**", " * 计算绑定的内容", " * @param {String} text
|
|
329
|
+
"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;", "}"]
|
|
324
330
|
}
|
|
325
331
|
};
|
|
326
332
|
}
|
|
@@ -394,16 +400,27 @@ var pc = {
|
|
|
394
400
|
if (Array.isArray(regexp)) {
|
|
395
401
|
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)$/";
|
|
396
402
|
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)$/";
|
|
397
|
-
// 运行态会给正则加上$$符号
|
|
398
403
|
var idCardRegexp = regexp.find(function (reg) {
|
|
399
|
-
return reg.pattern ===
|
|
404
|
+
return reg.pattern === oldRegStr;
|
|
400
405
|
});
|
|
401
406
|
if (idCardRegexp) {
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
+
idCardRegexp.pattern = newRegStr;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
return component;
|
|
411
|
+
},
|
|
412
|
+
Steps: function Steps(component) {
|
|
413
|
+
var _component$props17 = component.props,
|
|
414
|
+
props = _component$props17 === void 0 ? {} : _component$props17;
|
|
415
|
+
if (props.stepsOptions) {
|
|
416
|
+
// 兼容存量数据
|
|
417
|
+
if (props.stepsOptions.type === 'custom') {
|
|
418
|
+
props.stepsOptions = props.stepsOptions.data;
|
|
419
|
+
}
|
|
420
|
+
// 兼容存量服务数据
|
|
421
|
+
if (props.stepsOptions.type === 'service') {
|
|
422
|
+
props.alias = props.stepsOptions.data;
|
|
423
|
+
props.stepsOptions = props.defaultStepsOptions;
|
|
407
424
|
}
|
|
408
425
|
}
|
|
409
426
|
return component;
|
|
@@ -259,7 +259,7 @@ var ErrorMsg = {
|
|
|
259
259
|
};
|
|
260
260
|
if (isShowFeedback) {
|
|
261
261
|
footerContent.push( /*#__PURE__*/_react.default.createElement("a", {
|
|
262
|
-
className: "lx-feedback-notification-".concat(_param.itemKey, " ").concat(renderDisabled(feedbackPlacements[0], _param.itemKey)),
|
|
262
|
+
className: "lx-notification-notice-footer-btn-ghost lx-feedback-notification-".concat(_param.itemKey, " ").concat(renderDisabled(feedbackPlacements[0], _param.itemKey)),
|
|
263
263
|
config: String(_param.itemKey),
|
|
264
264
|
onClick: function onClick(e) {
|
|
265
265
|
if (!(_param === null || _param === void 0 ? void 0 : _param.feedbackState)) {
|
|
@@ -415,8 +415,9 @@ var ErrorMsg = {
|
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
417
|
}, _callee2, null, [[8, 15]]);
|
|
418
|
-
}))
|
|
419
|
-
|
|
418
|
+
})),
|
|
419
|
+
className: "lx-notification-notice-footer-btn-primary"
|
|
420
|
+
}, "\u67E5\u770B\u5F02\u5E38\u8BE6\u60C5"));
|
|
420
421
|
}
|
|
421
422
|
return _context3.abrupt("return", footerContent);
|
|
422
423
|
case 29:
|
|
@@ -125,15 +125,33 @@
|
|
|
125
125
|
|
|
126
126
|
&-head + &-footer,
|
|
127
127
|
&-content + &-footer {
|
|
128
|
-
margin-top:
|
|
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:
|
|
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.
|
|
163
|
+
color: rgba(28,36,46,0.25) !important;
|
|
146
164
|
background-color: white !important;
|
|
147
165
|
}
|
|
148
166
|
}
|
|
@@ -45,7 +45,8 @@ var _default = {
|
|
|
45
45
|
todoOptions: [{
|
|
46
46
|
key: 'fileId',
|
|
47
47
|
label: '文件ID',
|
|
48
|
-
type: 'SetExpression'
|
|
48
|
+
type: 'SetExpression',
|
|
49
|
+
labelTip: '文件ID的预览形式支持:pdf、jpg、jpeg、png、svg、mp4、mov、txt、html、doc、xlsx、docx、wps、ppt! 注意:如果是外部URL,支持图片,pdf,world,xlsx 注意:如果是外部URL,有可能存在跨域现象!'
|
|
49
50
|
}],
|
|
50
51
|
classification: [{
|
|
51
52
|
label: '页面类',
|
|
@@ -21,9 +21,9 @@ var _default = {
|
|
|
21
21
|
catalogItemId: -1,
|
|
22
22
|
ignoreLogin: false,
|
|
23
23
|
mode: 'alert',
|
|
24
|
-
closeOnClickOverlay:
|
|
25
|
-
destroyOnClose:
|
|
26
|
-
showCloseButton:
|
|
24
|
+
closeOnClickOverlay: true,
|
|
25
|
+
destroyOnClose: true,
|
|
26
|
+
showCloseButton: true,
|
|
27
27
|
compState: [{
|
|
28
28
|
name: '业务主键',
|
|
29
29
|
code: 'bizId'
|
|
@@ -45,7 +45,8 @@ var _default = {
|
|
|
45
45
|
todoOptions: [{
|
|
46
46
|
key: 'fileId',
|
|
47
47
|
label: '文件ID',
|
|
48
|
-
type: 'SetExpression'
|
|
48
|
+
type: 'SetExpression',
|
|
49
|
+
labelTip: '文件ID的预览形式支持:pdf、jpg、jpeg、png、svg、mp4、mov、txt、html、doc、xlsx、docx、wps、ppt! 注意:如果是外部URL,支持图片,pdf,world,xlsx 注意:如果是外部URL,有可能存在跨域现象!'
|
|
49
50
|
}],
|
|
50
51
|
classification: [{
|
|
51
52
|
label: '页面类',
|
|
@@ -47,7 +47,8 @@ var _default = {
|
|
|
47
47
|
todoOptions: [{
|
|
48
48
|
key: 'fileId',
|
|
49
49
|
label: '文件ID',
|
|
50
|
-
type: 'SetExpression'
|
|
50
|
+
type: 'SetExpression',
|
|
51
|
+
labelTip: '文件ID的预览形式支持:pdf、jpg、jpeg、png、svg、mp4、mov、txt、html、doc、xlsx、docx、wps、ppt! 注意:如果是外部URL,支持图片,pdf,world,xlsx 注意:如果是外部URL,有可能存在跨域现象!'
|
|
51
52
|
}],
|
|
52
53
|
classification: [{
|
|
53
54
|
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;
|
|
@@ -22,6 +22,7 @@ var _default = {
|
|
|
22
22
|
pageDynamicFlag: false,
|
|
23
23
|
catalogItemId: -1,
|
|
24
24
|
ignoreLogin: false,
|
|
25
|
+
hideNavBar: false,
|
|
25
26
|
layout: 'BaseLayout',
|
|
26
27
|
searchParams: [{
|
|
27
28
|
name: '业务主键',
|
|
@@ -57,7 +58,8 @@ var _default = {
|
|
|
57
58
|
todoOptions: [{
|
|
58
59
|
key: 'fileId',
|
|
59
60
|
label: '文件ID',
|
|
60
|
-
type: 'SetExpression'
|
|
61
|
+
type: 'SetExpression',
|
|
62
|
+
labelTip: '文件ID的预览形式支持:pdf、jpg、jpeg、png、svg、mp4、mov、txt、html、doc、xlsx、docx、wps、ppt! 注意:如果是外部URL,支持图片,pdf,world,xlsx 注意:如果是外部URL,有可能存在跨域现象!'
|
|
61
63
|
}],
|
|
62
64
|
classification: [{
|
|
63
65
|
label: '页面类',
|
|
@@ -215,6 +217,12 @@ var _default = {
|
|
|
215
217
|
label: '填充类型',
|
|
216
218
|
type: 'BackgroundType',
|
|
217
219
|
props: {}
|
|
220
|
+
},
|
|
221
|
+
colorType: {
|
|
222
|
+
groupsName: '标题&返回键颜色',
|
|
223
|
+
label: '填充类型',
|
|
224
|
+
type: 'BackgroundType',
|
|
225
|
+
props: {}
|
|
218
226
|
}
|
|
219
227
|
}
|
|
220
228
|
};
|
|
@@ -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: {
|
|
@@ -106,19 +106,6 @@ var _default = {
|
|
|
106
106
|
}, {
|
|
107
107
|
value: 'willUnmount',
|
|
108
108
|
label: '页面退出'
|
|
109
|
-
}, {
|
|
110
|
-
value: 'onLeftClick',
|
|
111
|
-
label: '页面返回点击事件',
|
|
112
|
-
terminal: ['mobile']
|
|
113
|
-
}, {
|
|
114
|
-
value: 'otherPageMessage',
|
|
115
|
-
label: '接收页面信息',
|
|
116
|
-
terminal: ['mobile'],
|
|
117
|
-
params: [{
|
|
118
|
-
title: '接收数据信息',
|
|
119
|
-
name: 'p',
|
|
120
|
-
value: '$p$'
|
|
121
|
-
}]
|
|
122
109
|
}, {
|
|
123
110
|
value: 'onPageCacheRefresh',
|
|
124
111
|
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:
|
|
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
|
} | {
|
|
@@ -650,6 +650,10 @@ var todoActionObject = {
|
|
|
650
650
|
aliasKey: 'searchParams',
|
|
651
651
|
label: 'url参数',
|
|
652
652
|
type: 'SearchParams'
|
|
653
|
+
}, {
|
|
654
|
+
key: 'routerData',
|
|
655
|
+
label: '路由数据',
|
|
656
|
+
type: 'RouterData'
|
|
653
657
|
}]
|
|
654
658
|
},
|
|
655
659
|
historyReplace: {
|
|
@@ -681,6 +685,10 @@ var todoActionObject = {
|
|
|
681
685
|
}, {
|
|
682
686
|
title: '路由替换',
|
|
683
687
|
value: 'replace'
|
|
688
|
+
}, {
|
|
689
|
+
key: 'routerData',
|
|
690
|
+
label: '路由数据',
|
|
691
|
+
type: 'RouterData'
|
|
684
692
|
}]
|
|
685
693
|
}
|
|
686
694
|
}, {
|
|
@@ -692,6 +700,10 @@ var todoActionObject = {
|
|
|
692
700
|
aliasKey: 'searchParams',
|
|
693
701
|
label: 'url参数',
|
|
694
702
|
type: 'SearchParams'
|
|
703
|
+
}, {
|
|
704
|
+
key: 'routerData',
|
|
705
|
+
label: '路由数据',
|
|
706
|
+
type: 'RouterData'
|
|
695
707
|
}],
|
|
696
708
|
classification: [{
|
|
697
709
|
label: '页面类',
|
|
@@ -1692,6 +1704,14 @@ var todoActionObject = {
|
|
|
1692
1704
|
props: {
|
|
1693
1705
|
placeholder: '包括后缀,如: 表格.xls'
|
|
1694
1706
|
}
|
|
1707
|
+
}, {
|
|
1708
|
+
key: 'zip',
|
|
1709
|
+
label: '单文件压缩',
|
|
1710
|
+
type: 'Switch',
|
|
1711
|
+
labelTip: '默认为单文件不压缩,多文件压缩,若开启单文件压缩为“是”,则不区分单文件/多文件,都压缩。',
|
|
1712
|
+
props: {
|
|
1713
|
+
defaultValue: false
|
|
1714
|
+
}
|
|
1695
1715
|
}],
|
|
1696
1716
|
classification: [{
|
|
1697
1717
|
label: '下载',
|
|
@@ -2686,9 +2706,18 @@ var todoActionObject = {
|
|
|
2686
2706
|
isRequired: true,
|
|
2687
2707
|
valuePropName: 'custUrl',
|
|
2688
2708
|
options: {
|
|
2689
|
-
fileUpload: true,
|
|
2690
2709
|
refreshKey: ['objectFields'],
|
|
2691
|
-
serviceTabs: [
|
|
2710
|
+
serviceTabs: [{
|
|
2711
|
+
key: SERVICE_KEY.STD,
|
|
2712
|
+
description: '此处仅展示开启文件入参的编排服务,服务入参需包含impFile(文件类型)字段用于接收文件和param(对象类型,非必须)字段接收自定义参数',
|
|
2713
|
+
filterParams: {
|
|
2714
|
+
fileInputEnabled: 'T'
|
|
2715
|
+
}
|
|
2716
|
+
}, {
|
|
2717
|
+
key: SERVICE_KEY.INNER,
|
|
2718
|
+
fileUpload: true,
|
|
2719
|
+
description: '此处仅展示开启上传控件中使用的请求层服务,服务入参需包含impFile(文件类型)字段用于接收文件和param(对象类型,非必须)字段接收自定义参数'
|
|
2720
|
+
}]
|
|
2692
2721
|
}
|
|
2693
2722
|
}
|
|
2694
2723
|
}, {
|
|
@@ -3699,9 +3728,9 @@ var todoActionObject = {
|
|
|
3699
3728
|
}]
|
|
3700
3729
|
}
|
|
3701
3730
|
};
|
|
3702
|
-
var mobileTodoActionKeys = ['showMessage', 'hideMessage', 'apiRequest', 'JSBridge', '
|
|
3731
|
+
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',
|
|
3703
3732
|
// 'previewFile',
|
|
3704
|
-
'return', 'copyToClipboard', '
|
|
3733
|
+
'return', 'copyToClipboard', 'reload', 'customActionCode', 'getItemFromLocalStorage', 'setItemToLocalStorage', 'getLocalLocation'
|
|
3705
3734
|
// 'sysSetState'
|
|
3706
3735
|
];
|
|
3707
3736
|
|
|
@@ -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:
|
|
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
|
};
|
|
@@ -1132,9 +1132,18 @@ var todoOptionList = {
|
|
|
1132
1132
|
isRequired: true,
|
|
1133
1133
|
valuePropName: 'custUrl',
|
|
1134
1134
|
options: {
|
|
1135
|
-
fileUpload: true,
|
|
1136
1135
|
refreshKey: ['objectFields'],
|
|
1137
|
-
serviceTabs: [
|
|
1136
|
+
serviceTabs: [{
|
|
1137
|
+
key: SERVICE_KEY.STD,
|
|
1138
|
+
description: '此处仅展示开启文件入参的编排服务,服务入参需包含impFile(文件类型)字段用于接收文件和param(对象类型,非必须)字段接收自定义参数',
|
|
1139
|
+
filterParams: {
|
|
1140
|
+
fileInputEnabled: 'T'
|
|
1141
|
+
}
|
|
1142
|
+
}, {
|
|
1143
|
+
key: SERVICE_KEY.INNER,
|
|
1144
|
+
fileUpload: true,
|
|
1145
|
+
description: '此处仅展示开启上传控件中使用的请求层服务,服务入参需包含impFile(文件类型)字段用于接收文件和param(对象类型,非必须)字段接收自定义参数'
|
|
1146
|
+
}]
|
|
1138
1147
|
}
|
|
1139
1148
|
}
|
|
1140
1149
|
},
|
|
@@ -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;
|
|
@@ -3,11 +3,17 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default = exports.createHttpSignStr = void 0;
|
|
6
|
+
exports.default = exports.createHttpSignStr = exports.buildXSignUrl = void 0;
|
|
7
7
|
var _cryptoJs = require("crypto-js");
|
|
8
8
|
var _url = require("../../utils/url");
|
|
9
9
|
var _cookieUtil = _interopRequireDefault(require("../../utils/cookieUtil"));
|
|
10
|
+
var _const = require("../const");
|
|
10
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
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; }
|
|
13
|
+
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; }
|
|
14
|
+
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; }
|
|
15
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
16
|
+
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); }
|
|
11
17
|
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); }
|
|
12
18
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
13
19
|
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."); }
|
|
@@ -37,7 +43,7 @@ var SIGN_KEY = process.env.LING_XI_HTTP_SIGN_KEY || 'zrT5bi2escXilaH1fs653uZiH9R
|
|
|
37
43
|
// 由于X-B 的规则可能被业务网关使用,并往请求头增加内容,导致前后端加密不一致
|
|
38
44
|
// 2022.08.09 使用以下3个固定值 + X-LX-*匹配 方式
|
|
39
45
|
var hKeys = ['X-B-AUTH', 'X-B-TARGET-ID', 'APP-ID'];
|
|
40
|
-
var userKeyInCookie = process.env.LING_XI_USER_KEY_IN_COOKIE || 'X-LX-N-ID';
|
|
46
|
+
var userKeyInCookie = window.lxDataSaltCode || process.env.LING_XI_USER_KEY_IN_COOKIE || 'X-LX-N-ID';
|
|
41
47
|
// 配置指定接口前缀,2023-03-16规则调整,不需要使用
|
|
42
48
|
// const apiPrefix =
|
|
43
49
|
// process.env.LING_XI_HTTP_SIGN_API_PERFIX ||
|
|
@@ -82,7 +88,8 @@ var createHttpSignStr = function createHttpSignStr(url, options) {
|
|
|
82
88
|
// 获取参数3: 请求参数
|
|
83
89
|
var params = '';
|
|
84
90
|
if (method.toLowerCase() === 'get') {
|
|
85
|
-
|
|
91
|
+
// 为保证与后端值一致此处需要将数据进行解码
|
|
92
|
+
params = (0, _url.decodeQueryString)(urlSearch);
|
|
86
93
|
} else {
|
|
87
94
|
params = _typeof(body) === 'object' ? JSON.stringify(body) : body;
|
|
88
95
|
}
|
|
@@ -102,7 +109,19 @@ var createHttpSignStr = function createHttpSignStr(url, options) {
|
|
|
102
109
|
// 生成约定签名
|
|
103
110
|
return (0, _cryptoJs.SHA256)(str).toString();
|
|
104
111
|
};
|
|
112
|
+
// 由于(img、script)无法进行处理请求头,将签名参数x-sign放到url参数里
|
|
105
113
|
exports.createHttpSignStr = createHttpSignStr;
|
|
114
|
+
var buildXSignUrl = function buildXSignUrl(url) {
|
|
115
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
116
|
+
if (!url) {
|
|
117
|
+
return '';
|
|
118
|
+
}
|
|
119
|
+
var signStr = createHttpSignStr(url, _objectSpread({
|
|
120
|
+
method: 'GET'
|
|
121
|
+
}, options));
|
|
122
|
+
return "".concat(url).concat(url.includes('?') ? '&' : '?').concat(_const.signKey, "=").concat(signStr);
|
|
123
|
+
};
|
|
124
|
+
exports.buildXSignUrl = buildXSignUrl;
|
|
106
125
|
var _default = {
|
|
107
126
|
createHttpSignStr: createHttpSignStr,
|
|
108
127
|
getApiPath: getApiPath
|