@pisell/private-materials 3.0.168 → 3.0.170
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.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/booking/info2/service/addService/utils.js +4 -2
- package/lib/components/booking/info2/service/addService/utils.js +4 -2
- package/package.json +3 -3
|
@@ -287,7 +287,7 @@ var setDefaultCapacitys = function setDefaultCapacitys(_ref7) {
|
|
|
287
287
|
return {
|
|
288
288
|
id: id,
|
|
289
289
|
value: item ? d.quantity || 0 : 0,
|
|
290
|
-
name: item.name || d.title
|
|
290
|
+
name: (item === null || item === void 0 ? void 0 : item.name) || (d === null || d === void 0 ? void 0 : d.title)
|
|
291
291
|
};
|
|
292
292
|
});
|
|
293
293
|
}
|
|
@@ -471,7 +471,9 @@ export var getProductExtend = function getProductExtend(_ref8) {
|
|
|
471
471
|
currentResource: _cacheItem._extend.resource,
|
|
472
472
|
state: state
|
|
473
473
|
});
|
|
474
|
-
_cacheItem
|
|
474
|
+
if (getDuration(_cacheItem === null || _cacheItem === void 0 ? void 0 : _cacheItem.duration) === 'flexible') {
|
|
475
|
+
_cacheItem._extend.duration = _cacheItem._data.timeObj.durationSlicesBasedOnTime[0].value;
|
|
476
|
+
}
|
|
475
477
|
}
|
|
476
478
|
|
|
477
479
|
// 如果只有一种类型的资源 & 单选,还按照之前的逻辑处理:自动选中,不会打开Edit service抽屉。
|
|
@@ -225,7 +225,7 @@ var setDefaultCapacitys = ({ capacitys, cacheItem }) => {
|
|
|
225
225
|
return {
|
|
226
226
|
id,
|
|
227
227
|
value: item ? d.quantity || 0 : 0,
|
|
228
|
-
name: item.name || d.title
|
|
228
|
+
name: (item == null ? void 0 : item.name) || (d == null ? void 0 : d.title)
|
|
229
229
|
};
|
|
230
230
|
});
|
|
231
231
|
}
|
|
@@ -331,7 +331,9 @@ var getProductExtend = ({ cacheItem, state }) => {
|
|
|
331
331
|
currentResource: _cacheItem._extend.resource,
|
|
332
332
|
state
|
|
333
333
|
});
|
|
334
|
-
_cacheItem.
|
|
334
|
+
if ((0, import_utils.getDuration)(_cacheItem == null ? void 0 : _cacheItem.duration) === "flexible") {
|
|
335
|
+
_cacheItem._extend.duration = _cacheItem._data.timeObj.durationSlicesBasedOnTime[0].value;
|
|
336
|
+
}
|
|
335
337
|
}
|
|
336
338
|
_cacheItem.autoClose = getIsAutoClose(_cacheItem);
|
|
337
339
|
if (_cacheItem._extend.bundle_edit !== void 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.170",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"rc-virtual-list": "^3.11.3",
|
|
61
61
|
"decimal.js": "^10.4.3",
|
|
62
62
|
"@pisell/utils": "1.0.42",
|
|
63
|
-
"@pisell/date-picker": "1.0.100",
|
|
64
63
|
"@pisell/icon": "0.0.11",
|
|
65
|
-
"@pisell/materials": "3.0.50"
|
|
64
|
+
"@pisell/materials": "3.0.50",
|
|
65
|
+
"@pisell/date-picker": "1.0.100"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"react": "^18.0.0",
|