@cloudbase/lowcode-builder 1.8.87 → 1.8.89

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.
@@ -472,7 +472,7 @@ async function generatePkg(ctx, { cals, weapp }, appRoot, pageConfigs) {
472
472
  return map;
473
473
  }, {});
474
474
  await Promise.all(weapp.pageInstanceList.map(async (page, index) => {
475
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
475
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
476
476
  // # Generating page
477
477
  const rootPath = weapp.rootPath || '';
478
478
  const usingComponents = {};
@@ -566,9 +566,12 @@ async function generatePkg(ctx, { cals, weapp }, appRoot, pageConfigs) {
566
566
  ? `@import "${path_1.default.posix.relative(`/packages/${rootPath}/pages/${page.id}`, '/lowcode')}/style.wxss";`
567
567
  : '',
568
568
  content: [
569
- (0, weapps_core_1.toCssText)((0, cals_1.processCommonStyle2CSSProperties)(page.commonStyle, {
570
- defaultUnit: processCssUnit,
571
- }), 'page'),
569
+ (0, weapps_core_1.toCssText)(((_o = (_m = CALS_PAGE_MAP[page.id]) === null || _m === void 0 ? void 0 : _m.attributes) === null || _o === void 0 ? void 0 : _o.style) &&
570
+ ((_r = Object.keys(((_q = (_p = CALS_PAGE_MAP[page.id]) === null || _p === void 0 ? void 0 : _p.attributes) === null || _q === void 0 ? void 0 : _q.style) || {})) === null || _r === void 0 ? void 0 : _r.length)
571
+ ? (0, cals_1.processCSSPropertiesUnit)(((_t = (_s = CALS_PAGE_MAP[page.id]) === null || _s === void 0 ? void 0 : _s.attributes) === null || _t === void 0 ? void 0 : _t.style) || {}, processCssUnit)
572
+ : (0, cals_1.processCommonStyle2CSSProperties)(page.commonStyle, {
573
+ defaultUnit: processCssUnit,
574
+ }), 'page'),
572
575
  (0, util_2.generateScopedStyleText)(componentInstances),
573
576
  ].join('\n'),
574
577
  pageWxss: importor.styles.length ? `@import "../../lowcode/${page.id}/style.wxss"` : '',