@cloudbase/lowcode-builder 1.8.24 → 1.8.25

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.
@@ -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&region=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.19.zip";
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&region=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&region=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.19.zip';
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&region=ap-shanghai&path=%252Flcap-builder%252F
@@ -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.sort(),
412
+ pageModules: allCodeModules,
412
413
  };
413
414
  // 子包混合模式 只在子包中生成 handlers
414
415
  const isMixSubpackage = ctx.isMixMode && appData.rootPath;
@@ -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: {