@cloudbase/lowcode-builder 1.8.24 → 1.8.26
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/builder.web.js +6 -6
- package/lib/builder/config/index.d.ts +1 -1
- package/lib/builder/config/index.js +1 -1
- package/lib/builder/mp/index.js +3 -2
- package/lib/builder/mp/util.js +1 -1
- package/lib/builder.web.js +6 -6
- package/lib/utils/transform.js +2 -3
- package/package.json +6 -4
- package/template/html/index.html.ejs +2 -2
- package/template/mp/app/handlers.js +13 -12
- package/template/mp/app/weapps-api.js +1 -1
- package/template/mp/common/query.js +24 -9
- package/template/mp/common/util.js +4 -4
- package/template/mp/package.json +1 -1
- package/template/mp/page/index.js +2 -2
- package/template/.DS_Store +0 -0
- package/template/mp/.DS_Store +0 -0
- package/template/mp/common/.DS_Store +0 -0
|
@@ -6,7 +6,7 @@ export declare const materialsDirName = "materials";
|
|
|
6
6
|
* src/template的代码,在IDE编辑器插件中构建builder
|
|
7
7
|
* 存放在大账号:100015939275。访问地址:https://console.cloud.tencent.com/cos/bucket?bucket=comp-public-1303824488®ion=ap-shanghai&path=%252Flcap-builder%252F
|
|
8
8
|
*/
|
|
9
|
-
export declare const builderTemplateURL = "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/lcap-builder/template.1.8.
|
|
9
|
+
export declare const builderTemplateURL = "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/lcap-builder/template.1.8.25.zip";
|
|
10
10
|
/**
|
|
11
11
|
* miniprogram的代码,IDE插件后续会提供端功能
|
|
12
12
|
* 存放在大账号:100015939275。访问地址:https://console.cloud.tencent.com/cos/bucket?bucket=comp-public-1303824488®ion=ap-shanghai&path=%252Flcap-builder%252F
|
|
@@ -45,7 +45,7 @@ exports.materialsDirName = 'materials'; // materials diretory of current project
|
|
|
45
45
|
* src/template的代码,在IDE编辑器插件中构建builder
|
|
46
46
|
* 存放在大账号:100015939275。访问地址:https://console.cloud.tencent.com/cos/bucket?bucket=comp-public-1303824488®ion=ap-shanghai&path=%252Flcap-builder%252F
|
|
47
47
|
*/
|
|
48
|
-
exports.builderTemplateURL = 'https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/lcap-builder/template.1.8.
|
|
48
|
+
exports.builderTemplateURL = 'https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/lcap-builder/template.1.8.25.zip';
|
|
49
49
|
/**
|
|
50
50
|
* miniprogram的代码,IDE插件后续会提供端功能
|
|
51
51
|
* 存放在大账号:100015939275。访问地址:https://console.cloud.tencent.com/cos/bucket?bucket=comp-public-1303824488®ion=ap-shanghai&path=%252Flcap-builder%252F
|
package/lib/builder/mp/index.js
CHANGED
|
@@ -305,7 +305,7 @@ async function generatePkg(ctx, weapp, appRoot, pageConfigs) {
|
|
|
305
305
|
// #2 generate page files
|
|
306
306
|
console.log(`Generating ${em('page')} files`);
|
|
307
307
|
(0, generateFiles_1.cleanDir)(path_1.default.join(appRoot, 'pages'), []);
|
|
308
|
-
await Promise.all(weapp.pageInstanceList.map(async (page) => {
|
|
308
|
+
await Promise.all(weapp.pageInstanceList.map(async (page, index) => {
|
|
309
309
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
310
310
|
// # Generating page
|
|
311
311
|
const rootPath = weapp.rootPath || '';
|
|
@@ -335,6 +335,7 @@ async function generatePkg(ctx, weapp, appRoot, pageConfigs) {
|
|
|
335
335
|
stringifyObj: util_1.inspect,
|
|
336
336
|
},
|
|
337
337
|
[`index.js|${pageFileName}.js`]: {
|
|
338
|
+
pageIndex: index,
|
|
338
339
|
pageName: page.id,
|
|
339
340
|
pageSource: page.data.src || '',
|
|
340
341
|
eventHandlers: (0, util_2.createEventHandlers)(ctx, componentInstances, 'this', page),
|
|
@@ -408,7 +409,7 @@ async function generateFramework(ctx, appData, outDir, options) {
|
|
|
408
409
|
});
|
|
409
410
|
});
|
|
410
411
|
fileData['app/handlers.js'] = {
|
|
411
|
-
pageModules: allCodeModules
|
|
412
|
+
pageModules: allCodeModules,
|
|
412
413
|
};
|
|
413
414
|
// 子包混合模式 只在子包中生成 handlers
|
|
414
415
|
const isMixSubpackage = ctx.isMixMode && appData.rootPath;
|
package/lib/builder/mp/util.js
CHANGED
|
@@ -268,7 +268,7 @@ function getListenersHandlers(listeners = [], id, componentApi) {
|
|
|
268
268
|
break;
|
|
269
269
|
}
|
|
270
270
|
case `${weapps_core_1.ActionType.Platform}:callQuery`: {
|
|
271
|
-
handler = `function({data}){ return $w[data.id]?.[data.method]()}`;
|
|
271
|
+
handler = `function({data}){ return $w[data.id]?.[data.method](data.data)}`;
|
|
272
272
|
break;
|
|
273
273
|
}
|
|
274
274
|
default: {
|