@cloudbase/lowcode-builder 1.8.88 → 1.8.90

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.
@@ -488,7 +488,7 @@ async function generatePkg(ctx, { cals, weapp }, appRoot, pageConfigs) {
488
488
  return map;
489
489
  }, {});
490
490
  await Promise.all(weapp.pageInstanceList.map(async (page, index) => {
491
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
491
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
492
492
  // # Generating page
493
493
  const rootPath = weapp.rootPath || '';
494
494
  const usingComponents = {};
@@ -582,9 +582,12 @@ async function generatePkg(ctx, { cals, weapp }, appRoot, pageConfigs) {
582
582
  ? `@import "${path_1.default.posix.relative(`/packages/${rootPath}/pages/${page.id}`, '/lowcode')}/style.wxss";`
583
583
  : '',
584
584
  content: [
585
- (0, weapps_core_1.toCssText)((0, cals_1.processCommonStyle2CSSProperties)(page.commonStyle, {
586
- defaultUnit: processCssUnit,
587
- }), 'page'),
585
+ (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) &&
586
+ ((_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)
587
+ ? (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)
588
+ : (0, cals_1.processCommonStyle2CSSProperties)(page.commonStyle, {
589
+ defaultUnit: processCssUnit,
590
+ }), 'page'),
588
591
  (0, util_2.generateScopedStyleText)(componentInstances),
589
592
  ].join('\n'),
590
593
  pageWxss: importor.styles.length ? `@import "../../lowcode/${page.id}/style.wxss"` : '',