@luck-design-biz/luckda 1.0.2-20temp → 1.0.2-20temp2
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/lowcode/constants/api-url.js +1 -1
- package/es/lowcode/engine/meta/pagecomponent.props.default.json +8 -0
- package/es/lowcode/engine/meta/pagecomponent.props.json +41 -0
- package/es/services.js +1 -0
- package/lib/lowcode/constants/api-url.js +1 -1
- package/lib/lowcode/engine/meta/pagecomponent.props.default.json +8 -0
- package/lib/lowcode/engine/meta/pagecomponent.props.json +41 -0
- package/lib/services.js +2 -1
- package/package.json +1 -1
|
@@ -586,7 +586,7 @@ function _fetchAllBehaviorEx() {
|
|
|
586
586
|
return _fetchAllBehaviorEx.apply(this, arguments);
|
|
587
587
|
}
|
|
588
588
|
export function getBehaviorUrl(_mdCode) {
|
|
589
|
-
var mdCode = _mdCode || getLDMetaAttr('dataModelKey');
|
|
589
|
+
var mdCode = _mdCode || getLDMetaAttr('dataModelKey') || SYS_CODE;
|
|
590
590
|
return "".concat(api.API_HOST, "/").concat(mdCode, "/to/behavior/call");
|
|
591
591
|
}
|
|
592
592
|
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "PageComponent",
|
|
3
|
+
"name": "关联页面组件",
|
|
4
|
+
"group": "build-in",
|
|
5
|
+
"props": [
|
|
6
|
+
{
|
|
7
|
+
"key": "id",
|
|
8
|
+
"name": "唯一标识",
|
|
9
|
+
"type": "string",
|
|
10
|
+
"disabled": true
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"key": "linkName",
|
|
14
|
+
"name": "页面名称",
|
|
15
|
+
"type": "string",
|
|
16
|
+
"disabled": true
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"key": "linkCode",
|
|
20
|
+
"name": "页面编码",
|
|
21
|
+
"type": "string",
|
|
22
|
+
"disabled": true
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"advance": {
|
|
26
|
+
"events": [
|
|
27
|
+
{
|
|
28
|
+
"key": "onMount",
|
|
29
|
+
"name": "组件首次渲染完成",
|
|
30
|
+
"desc": "在组件首次渲染完成时,执行方法",
|
|
31
|
+
"func": "function onPageMount(){\n\t\n}"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"key": "onUnmount",
|
|
35
|
+
"name": "组件卸载时",
|
|
36
|
+
"desc": "在组件卸载时,执行方法。",
|
|
37
|
+
"func": "function onPageUnmount(){\n\t\n}"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
}
|
package/es/services.js
CHANGED
|
@@ -2,6 +2,7 @@ import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
3
3
|
import { request } from '@luck-design-biz/base/utils';
|
|
4
4
|
import api from "@/services/ApiConfig";
|
|
5
|
+
import { stringify } from 'querystring';
|
|
5
6
|
export function readModlue(_x) {
|
|
6
7
|
return _readModlue.apply(this, arguments);
|
|
7
8
|
}
|
|
@@ -604,7 +604,7 @@ function _fetchAllBehaviorEx() {
|
|
|
604
604
|
return _fetchAllBehaviorEx.apply(this, arguments);
|
|
605
605
|
}
|
|
606
606
|
function getBehaviorUrl(_mdCode) {
|
|
607
|
-
var mdCode = _mdCode || (0, _helper.getLDMetaAttr)('dataModelKey');
|
|
607
|
+
var mdCode = _mdCode || (0, _helper.getLDMetaAttr)('dataModelKey') || SYS_CODE;
|
|
608
608
|
return "".concat(_ApiConfig.default.API_HOST, "/").concat(mdCode, "/to/behavior/call");
|
|
609
609
|
}
|
|
610
610
|
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "PageComponent",
|
|
3
|
+
"name": "关联页面组件",
|
|
4
|
+
"group": "build-in",
|
|
5
|
+
"props": [
|
|
6
|
+
{
|
|
7
|
+
"key": "id",
|
|
8
|
+
"name": "唯一标识",
|
|
9
|
+
"type": "string",
|
|
10
|
+
"disabled": true
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"key": "linkName",
|
|
14
|
+
"name": "页面名称",
|
|
15
|
+
"type": "string",
|
|
16
|
+
"disabled": true
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"key": "linkCode",
|
|
20
|
+
"name": "页面编码",
|
|
21
|
+
"type": "string",
|
|
22
|
+
"disabled": true
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"advance": {
|
|
26
|
+
"events": [
|
|
27
|
+
{
|
|
28
|
+
"key": "onMount",
|
|
29
|
+
"name": "组件首次渲染完成",
|
|
30
|
+
"desc": "在组件首次渲染完成时,执行方法",
|
|
31
|
+
"func": "function onPageMount(){\n\t\n}"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"key": "onUnmount",
|
|
35
|
+
"name": "组件卸载时",
|
|
36
|
+
"desc": "在组件卸载时,执行方法。",
|
|
37
|
+
"func": "function onPageUnmount(){\n\t\n}"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
}
|
package/lib/services.js
CHANGED
|
@@ -11,6 +11,7 @@ var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helper
|
|
|
11
11
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
12
12
|
var _utils = require("@luck-design-biz/base/utils");
|
|
13
13
|
var _ApiConfig = _interopRequireDefault(require("@/services/ApiConfig"));
|
|
14
|
+
var _querystring = require("querystring");
|
|
14
15
|
function readModlue(_x) {
|
|
15
16
|
return _readModlue.apply(this, arguments);
|
|
16
17
|
}
|
|
@@ -38,7 +39,7 @@ function _readUI() {
|
|
|
38
39
|
return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {
|
|
39
40
|
while (1) switch (_context2.prev = _context2.next) {
|
|
40
41
|
case 0:
|
|
41
|
-
return _context2.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.LUCKDA_HOST, "/ui/builder/noAuthFetchModuleDataSetUI?").concat(stringify(get))));
|
|
42
|
+
return _context2.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.LUCKDA_HOST, "/ui/builder/noAuthFetchModuleDataSetUI?").concat((0, _querystring.stringify)(get))));
|
|
42
43
|
case 1:
|
|
43
44
|
case "end":
|
|
44
45
|
return _context2.stop();
|
package/package.json
CHANGED