@cloudbase/lowcode-builder 1.5.2 → 1.5.4
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.
|
@@ -58,8 +58,12 @@ async function generateHTML({ appId, envId, appBuildDir, externalResources = [],
|
|
|
58
58
|
* @deprecated
|
|
59
59
|
* 临时先这么添加白名单
|
|
60
60
|
*/
|
|
61
|
-
enableStaticLoading: [
|
|
62
|
-
|
|
61
|
+
enableStaticLoading: [
|
|
62
|
+
'lowcode-4gzdsu5k66946492',
|
|
63
|
+
'lowcode-2gay8jgh25c7b1cf',
|
|
64
|
+
'lowcode-4g9b78bx94404d85',
|
|
65
|
+
'lowcode-8gmx7bat3135e2de',
|
|
66
|
+
].includes(envId) && !(0, common_2.buildAsAdminPortalByBuildType)(buildTypeList),
|
|
63
67
|
}));
|
|
64
68
|
}
|
|
65
69
|
exports.generateHTML = generateHTML;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/lowcode-builder",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.4",
|
|
4
4
|
"description": "云开发 Tencent CloudBase Framework Low Code Plugin,将低码配置生成完整项目并一键部署云开发资源。",
|
|
5
5
|
"author": "yhsunshining@gmail.com",
|
|
6
6
|
"homepage": "https://github.com/TencentCloudBase/cloudbase-framework#readme",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@cloudbase/cals": "^0.5.17",
|
|
42
|
-
"@cloudbase/lowcode-generator": "^1.5.
|
|
42
|
+
"@cloudbase/lowcode-generator": "^1.5.3",
|
|
43
43
|
"axios": "^0.21.0",
|
|
44
44
|
"browserfs": "^1.4.3",
|
|
45
45
|
"browserify-zlib": "^0.2.0",
|
|
@@ -543,7 +543,7 @@
|
|
|
543
543
|
crossorigin
|
|
544
544
|
src="<%=
|
|
545
545
|
cdnEndpoints.cdngo
|
|
546
|
-
%>/lcap/lcap-resource-cdngo/-/0.1.4/_files/static/weda-render/main.
|
|
546
|
+
%>/lcap/lcap-resource-cdngo/-/0.1.4/_files/static/weda-render/main.051bed8f584a31b92c63.bundle.js"
|
|
547
547
|
></script>
|
|
548
548
|
</body>
|
|
549
549
|
</html>
|
|
@@ -66,13 +66,19 @@ export function createEventHandlers(
|
|
|
66
66
|
const currentTarget = !!event?.currentTarget?.id ? getWidget(owner.widgets, event.currentTarget.id) : undefined;
|
|
67
67
|
event.target = target;
|
|
68
68
|
event.currentTarget = currentTarget;
|
|
69
|
-
const [prefix = ''] = name.split('$');
|
|
69
|
+
const [prefix = '', trigger] = name.split('$');
|
|
70
70
|
// The page event handler
|
|
71
71
|
const forContext = (!!currentTarget && generateForContextOfWidget(currentTarget)) || {};
|
|
72
72
|
const { lists = [], forItems = {} } = forContext;
|
|
73
73
|
const dataContext = untracked(() => generateDataContext(currentTarget));
|
|
74
74
|
const $w = untracked(() => generateWidgetAPIContext(owner?.__internal__?.$w, currentTarget, forContext));
|
|
75
|
+
|
|
76
|
+
const currentPageId = app.__internal__?.activePage?.id
|
|
75
77
|
listeners.forEach(async (l) => {
|
|
78
|
+
if(currentPageId && owner.id && currentPageId !== owner.id) {
|
|
79
|
+
console.error(`Action error: [${trigger}:${l.key}] 页面生命周期结束,链式调用中断`);
|
|
80
|
+
return ;
|
|
81
|
+
}
|
|
76
82
|
let { data = {}, boundData = {} } = l;
|
|
77
83
|
data = { ...data };
|
|
78
84
|
try {
|
|
@@ -89,7 +95,7 @@ export function createEventHandlers(
|
|
|
89
95
|
} catch (e) {
|
|
90
96
|
let eventName = l.key ? `${prefix}$${l.key}_fail` : '';
|
|
91
97
|
if (self[eventName]) {
|
|
92
|
-
console.error(
|
|
98
|
+
console.error(`Action error: [${trigger}:${l.key}]`, e);
|
|
93
99
|
await self[eventName]({
|
|
94
100
|
...event,
|
|
95
101
|
detail: e,
|
|
@@ -147,7 +147,6 @@ export function createPage(
|
|
|
147
147
|
},
|
|
148
148
|
async onReady() {
|
|
149
149
|
const $page = this._getInstance();
|
|
150
|
-
console.log("onReady", this, $page)
|
|
151
150
|
|
|
152
151
|
this._disposers.push(...runWatchers(index, this));
|
|
153
152
|
|
|
@@ -172,7 +171,6 @@ export function createPage(
|
|
|
172
171
|
|
|
173
172
|
await this.beforePageCustomLaunch?.(this._query)
|
|
174
173
|
|
|
175
|
-
// 权限检查
|
|
176
174
|
const hook = lifecycle.onShow || lifecycle.onPageShow;
|
|
177
175
|
await hook?.call?.($page);
|
|
178
176
|
this.invokeEventHandler(id, 'show');
|
package/template/mp/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"dependencies": {<% if(importJSSDK) {%>
|
|
6
6
|
"@cloudbase/js-sdk": "2.5.6-beta.1",<% } %>
|
|
7
7
|
"@cloudbase/oauth": "0.1.1-alpha.5",
|
|
8
|
-
"@cloudbase/weda-client": "0.2.
|
|
8
|
+
"@cloudbase/weda-client": "0.2.55",
|
|
9
9
|
"@cloudbase/weda-cloud-sdk": "1.0.26",
|
|
10
10
|
"mobx": "^5.15.4",
|
|
11
11
|
"lodash.get": "^4.4.2",
|