@pisell/pisellos 1.0.141 → 1.0.142

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.
@@ -302,7 +302,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
302
302
  autoSelectAllProductResources(resources_code: string, timeSlots?: TimeSliceItem): {
303
303
  errorList: any[];
304
304
  };
305
- getTimeSlotByAllResources(resources_code: string): any[];
305
+ getTimeSlotByAllResources(resources_code: string, split?: number): any[];
306
306
  getTimeSlotByAllResourcesForDate({ resources_code, startDate, endDate }: {
307
307
  resources_code: string;
308
308
  startDate: string;
@@ -2072,6 +2072,7 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
2072
2072
  _cartItems$,
2073
2073
  _cartItems$2,
2074
2074
  _this$shopStore$get;
2075
+ var split = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 10;
2075
2076
  var dateRange = this.store.date.getDateRange();
2076
2077
  // 取出购物车中所有一已选择的第一步资源
2077
2078
  var resources = [];
@@ -2255,7 +2256,7 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
2255
2256
  resourcesMap: resourcesMap,
2256
2257
  duration: duration,
2257
2258
  currentDate: dateRange[0].date,
2258
- split: 10,
2259
+ split: split,
2259
2260
  resourcesUseableMap: resourcesUseableMap,
2260
2261
  capacity: maxCapacity,
2261
2262
  cut_off_time: maxCutOffTime,
@@ -302,7 +302,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
302
302
  autoSelectAllProductResources(resources_code: string, timeSlots?: TimeSliceItem): {
303
303
  errorList: any[];
304
304
  };
305
- getTimeSlotByAllResources(resources_code: string): any[];
305
+ getTimeSlotByAllResources(resources_code: string, split?: number): any[];
306
306
  getTimeSlotByAllResourcesForDate({ resources_code, startDate, endDate }: {
307
307
  resources_code: string;
308
308
  startDate: string;
@@ -1408,7 +1408,7 @@ var BookingByStepImpl = class extends import_BaseModule.BaseModule {
1408
1408
  return { errorList };
1409
1409
  }
1410
1410
  // 从购物车中获取已经分配好第一步资源的所有时间片
1411
- getTimeSlotByAllResources(resources_code) {
1411
+ getTimeSlotByAllResources(resources_code, split = 10) {
1412
1412
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
1413
1413
  let dateRange = this.store.date.getDateRange();
1414
1414
  const resources = [];
@@ -1566,7 +1566,7 @@ var BookingByStepImpl = class extends import_BaseModule.BaseModule {
1566
1566
  resourcesMap,
1567
1567
  duration,
1568
1568
  currentDate: dateRange[0].date,
1569
- split: 10,
1569
+ split,
1570
1570
  resourcesUseableMap,
1571
1571
  capacity: maxCapacity,
1572
1572
  cut_off_time: maxCutOffTime,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "1.0.141",
4
+ "version": "1.0.142",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",