@ibiz-template/runtime 0.7.41-alpha.133 → 0.7.41-alpha.134
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/dist/index.esm.js +2 -2
- package/dist/index.system.min.js +1 -1
- package/out/controller/utils/view-msg/view-msg-controller.js +1 -1
- package/out/utils/script/script-function.js +2 -2
- package/package.json +2 -2
- package/src/controller/utils/view-msg/view-msg-controller.ts +1 -1
- package/src/utils/script/script-function.ts +2 -2
|
@@ -35,8 +35,8 @@ export class ScriptFunction {
|
|
|
35
35
|
*/
|
|
36
36
|
formatCode(scriptCode, options) {
|
|
37
37
|
let code = scriptCode;
|
|
38
|
-
//
|
|
39
|
-
if (options.singleRowReturn
|
|
38
|
+
// 箭头函数、返回函数场景通过是否包含'return'自动化判断单行还是多行模式会存在问题
|
|
39
|
+
if (options.singleRowReturn) {
|
|
40
40
|
code = `return (${code})`;
|
|
41
41
|
}
|
|
42
42
|
if (options.isAsync) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/runtime",
|
|
3
|
-
"version": "0.7.41-alpha.
|
|
3
|
+
"version": "0.7.41-alpha.134",
|
|
4
4
|
"description": "运行时逻辑库",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "out/index.js",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"qx-util": "^0.4.8",
|
|
71
71
|
"ramda": "^0.29.0"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "e78bf67edd338c57931386b644794510729a9fa8"
|
|
74
74
|
}
|
|
@@ -53,8 +53,8 @@ export class ScriptFunction {
|
|
|
53
53
|
options: IScriptFunctionOpts,
|
|
54
54
|
): string {
|
|
55
55
|
let code = scriptCode;
|
|
56
|
-
//
|
|
57
|
-
if (options.singleRowReturn
|
|
56
|
+
// 箭头函数、返回函数场景通过是否包含'return'自动化判断单行还是多行模式会存在问题
|
|
57
|
+
if (options.singleRowReturn) {
|
|
58
58
|
code = `return (${code})`;
|
|
59
59
|
}
|
|
60
60
|
if (options.isAsync) {
|