@cloudbase/lowcode-builder 1.8.77 → 1.8.78

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.
@@ -329,7 +329,7 @@ async function generateCompositeComponent(ctx, compositedComp, outDir, compLibCo
329
329
  */
330
330
  const NAME_MANAGER = new name_mangler_1.default({ blackList: mp_1.builtinMpTags });
331
331
  function getWxmlTag(ctx, cmp, nameMangler) {
332
- var _a, _b, _c, _d, _e, _f;
332
+ var _a, _b, _c, _d, _e, _f, _g, _h;
333
333
  const { moduleName, name } = cmp;
334
334
  const materialLib = ctx.materialLibs.find((lib) => lib.name === moduleName);
335
335
  const miniprogramPlugin = (_a = ctx.miniprogramPlugins) === null || _a === void 0 ? void 0 : _a.find((plugin) => plugin.name === moduleName);
@@ -338,16 +338,22 @@ function getWxmlTag(ctx, cmp, nameMangler) {
338
338
  const components = (materialLib === null || materialLib === void 0 ? void 0 : materialLib.components) || (miniprogramPlugin === null || miniprogramPlugin === void 0 ? void 0 : miniprogramPlugin.componentConfigs);
339
339
  const findComponent = components === null || components === void 0 ? void 0 : components.find((comp) => comp.name === name);
340
340
  if (!findComponent) {
341
+ if (moduleName === cals_1.OFFICIAL_COMPONENT_LIB_NAME) {
342
+ console.log('>>>>>>>>>>>>>>>>>>>>', (_c = (_b = components === null || components === void 0 ? void 0 : components.map) === null || _b === void 0 ? void 0 : _b.call(components, (comp) => comp.name)) === null || _c === void 0 ? void 0 : _c.join(','));
343
+ }
341
344
  return { tagName };
342
345
  }
343
346
  if (materialLib) {
344
347
  let cmpMeta = (findComponent === null || findComponent === void 0 ? void 0 : findComponent.meta) || { platforms: undefined };
345
348
  if (!cmpMeta.platforms) {
349
+ if (moduleName === cals_1.OFFICIAL_COMPONENT_LIB_NAME) {
350
+ console.log('>>>>>>>>>>>>>>>>>>>>', JSON.stringify(cmpMeta));
351
+ }
346
352
  return { tagName };
347
353
  }
348
- compPath = (_c = (_b = cmpMeta === null || cmpMeta === void 0 ? void 0 : cmpMeta.platforms) === null || _b === void 0 ? void 0 : _b.mp) === null || _c === void 0 ? void 0 : _c.path;
349
- if ((_e = (_d = cmpMeta === null || cmpMeta === void 0 ? void 0 : cmpMeta.platforms) === null || _d === void 0 ? void 0 : _d.mp) === null || _e === void 0 ? void 0 : _e.tagName) {
350
- tagName = (_f = cmpMeta === null || cmpMeta === void 0 ? void 0 : cmpMeta.platforms) === null || _f === void 0 ? void 0 : _f.mp.tagName;
354
+ compPath = (_e = (_d = cmpMeta === null || cmpMeta === void 0 ? void 0 : cmpMeta.platforms) === null || _d === void 0 ? void 0 : _d.mp) === null || _e === void 0 ? void 0 : _e.path;
355
+ if ((_g = (_f = cmpMeta === null || cmpMeta === void 0 ? void 0 : cmpMeta.platforms) === null || _f === void 0 ? void 0 : _f.mp) === null || _g === void 0 ? void 0 : _g.tagName) {
356
+ tagName = (_h = cmpMeta === null || cmpMeta === void 0 ? void 0 : cmpMeta.platforms) === null || _h === void 0 ? void 0 : _h.mp.tagName;
351
357
  }
352
358
  if (compPath) {
353
359
  compPath =
@@ -370,6 +376,9 @@ function getWxmlTag(ctx, cmp, nameMangler) {
370
376
  if (!tagName) {
371
377
  tagName = name.toLocaleUpperCase();
372
378
  }
379
+ if (moduleName === cals_1.OFFICIAL_COMPONENT_LIB_NAME && !compPath) {
380
+ console.log('>>>>>>>>>>>>>>>>>>>>**sdfsdf');
381
+ }
373
382
  return {
374
383
  tagName,
375
384
  path: compPath,