@cloudbase/lowcode-builder 1.8.2 → 1.8.5
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.
|
@@ -92,6 +92,9 @@ async function buildWedaApp({ cals, subAppCalsList = [], dependencies = [], appK
|
|
|
92
92
|
function processRepeaterDisplay(cals) {
|
|
93
93
|
cals.items = (cals.items || []).map((page) => {
|
|
94
94
|
return JSON.parse(JSON.stringify(page, (key, value) => {
|
|
95
|
+
if ((value === null || value === void 0 ? void 0 : value.component) && !(value === null || value === void 0 ? void 0 : value.module) && (value === null || value === void 0 ? void 0 : value.type) !== 'PAGE') {
|
|
96
|
+
value.module = cals_1.OFFICIAL_LIB_KEY;
|
|
97
|
+
}
|
|
95
98
|
if (value === null || value === void 0 ? void 0 : value.component) {
|
|
96
99
|
const component = value;
|
|
97
100
|
if ((value === null || value === void 0 ? void 0 : value.component) &&
|
package/lib/builder/h5/index.js
CHANGED
|
@@ -177,16 +177,16 @@ async function buildH5App({ buildContext, i18nConfig, extraData, cals, buildType
|
|
|
177
177
|
return `${url.origin}${path_1.default.posix.join(url.pathname, file)}`;
|
|
178
178
|
}
|
|
179
179
|
catch (e) {
|
|
180
|
-
return path_1.default.posix.join(publicPath, file);
|
|
180
|
+
return path_1.default.posix.join(publicPath || '', file);
|
|
181
181
|
}
|
|
182
182
|
})
|
|
183
183
|
.filter((item) => !!item);
|
|
184
184
|
// 普通 web 模式,且非hash模式,根据页面生成多份入口
|
|
185
185
|
if (!((_c = cals.extra) === null || _c === void 0 ? void 0 : _c.historyType) || cals.extra.historyType === types_1.HISTORY_TYPE.BROWSER) {
|
|
186
|
-
preHeatUrls.push(path_1.default.posix.join(basename));
|
|
186
|
+
preHeatUrls.push(path_1.default.posix.join(basename || ''));
|
|
187
187
|
await Promise.all((cals.items || []).map((page) => {
|
|
188
|
-
preHeatUrls.push(path_1.default.posix.join(basename, page.id));
|
|
189
|
-
preHeatUrls.push(path_1.default.posix.join(basename, page.id, '/'));
|
|
188
|
+
preHeatUrls.push(path_1.default.posix.join(basename || '', page.id));
|
|
189
|
+
preHeatUrls.push(path_1.default.posix.join(basename || '', page.id, '/'));
|
|
190
190
|
return fs_extra_1.default.copy(path_1.default.resolve(h5BuildDir, webpack_2.OUTPUT_DIR, 'index.html'), path_1.default.resolve(h5BuildDir, webpack_2.OUTPUT_DIR, page.id, 'index.html'));
|
|
191
191
|
}));
|
|
192
192
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/lowcode-builder",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.5",
|
|
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",
|
|
@@ -549,7 +549,7 @@
|
|
|
549
549
|
crossorigin
|
|
550
550
|
src="<%=
|
|
551
551
|
cdnEndpoints.cdngo
|
|
552
|
-
%>/lcap/lcap-resource-cdngo/-/0.1.4/_files/static/weda-render/main.
|
|
552
|
+
%>/lcap/lcap-resource-cdngo/-/0.1.4/_files/static/weda-render/main.babe263dcf07a0b2f76e.bundle.js"
|
|
553
553
|
></script>
|
|
554
554
|
</body>
|
|
555
555
|
</html>
|
|
@@ -128,6 +128,7 @@ export function createPage({
|
|
|
128
128
|
_pageActive: true,
|
|
129
129
|
_beforePageCustomLaunchPromise: null,
|
|
130
130
|
_query: {},
|
|
131
|
+
_disposers: [],
|
|
131
132
|
|
|
132
133
|
/** page lifecycles **/
|
|
133
134
|
...extractLifecycles(),
|
|
@@ -152,7 +153,7 @@ export function createPage({
|
|
|
152
153
|
if ($page.dataset.query[queryId]?._schema?.trigger === 'auto') {
|
|
153
154
|
try {
|
|
154
155
|
$page.dataset.query[queryId].trigger();
|
|
155
|
-
this._disposers.push($page.dataset.query[queryId].destroy)
|
|
156
|
+
this._disposers.push(()=> $page.dataset.query[queryId].destroy())
|
|
156
157
|
} catch (e) {
|
|
157
158
|
console.error(`query ${queryId} 初始化失败:`, e);
|
|
158
159
|
}
|
package/template/mp/package.json
CHANGED