@pisell/pisellos 2.1.75 → 2.1.76

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.
@@ -4274,6 +4274,13 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
4274
4274
  }
4275
4275
  }
4276
4276
  });
4277
+ // 可能存在 renderList 没有的情况,则需要判断 resource.optional_resource 和 resource.default_resource 是否存在那个资源,如果不存在也打上 onlyComputed 的标记
4278
+ currentResourcesList.forEach(function (item) {
4279
+ var _resource$optional_re, _resource$default_res;
4280
+ if (!((_resource$optional_re = resource.optional_resource) !== null && _resource$optional_re !== void 0 && _resource$optional_re.includes(item.id)) && !((_resource$default_res = resource.default_resource) !== null && _resource$default_res !== void 0 && _resource$default_res.includes(item.id))) {
4281
+ item.onlyComputed = true;
4282
+ }
4283
+ });
4277
4284
  // currentResourcesList 排序,onlyComputed 的资源排在前面先计算
4278
4285
  currentResourcesList.sort(function (a, b) {
4279
4286
  return a.onlyComputed ? -1 : 1;
@@ -2992,6 +2992,12 @@ var BookingByStepImpl = class extends import_BaseModule.BaseModule {
2992
2992
  }
2993
2993
  }
2994
2994
  });
2995
+ currentResourcesList.forEach((item2) => {
2996
+ var _a3, _b2;
2997
+ if (!((_a3 = resource.optional_resource) == null ? void 0 : _a3.includes(item2.id)) && !((_b2 = resource.default_resource) == null ? void 0 : _b2.includes(item2.id))) {
2998
+ item2.onlyComputed = true;
2999
+ }
3000
+ });
2995
3001
  currentResourcesList.sort((a, b) => {
2996
3002
  return a.onlyComputed ? -1 : 1;
2997
3003
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "2.1.75",
4
+ "version": "2.1.76",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",