@pisell/pisellos 2.0.2 → 2.0.3
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.
|
@@ -681,6 +681,12 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
681
681
|
key: "updateCart",
|
|
682
682
|
value: function updateCart(params) {
|
|
683
683
|
var _this5 = this;
|
|
684
|
+
if (params.resources) {
|
|
685
|
+
params.resources = params.resources.map(function (n) {
|
|
686
|
+
n.capacity = 1;
|
|
687
|
+
return n;
|
|
688
|
+
});
|
|
689
|
+
}
|
|
684
690
|
this.store.cart.updateItem(params);
|
|
685
691
|
var targetCartItem = this.store.cart.getItem(params._id);
|
|
686
692
|
if (!targetCartItem) {
|
|
@@ -295,6 +295,12 @@ var BookingByStepImpl = class extends import_BaseModule.BaseModule {
|
|
|
295
295
|
}
|
|
296
296
|
// 更新购物车
|
|
297
297
|
updateCart(params) {
|
|
298
|
+
if (params.resources) {
|
|
299
|
+
params.resources = params.resources.map((n) => {
|
|
300
|
+
n.capacity = 1;
|
|
301
|
+
return n;
|
|
302
|
+
});
|
|
303
|
+
}
|
|
298
304
|
this.store.cart.updateItem(params);
|
|
299
305
|
const targetCartItem = this.store.cart.getItem(params._id);
|
|
300
306
|
if (!targetCartItem) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"private": false,
|
|
3
3
|
"name": "@pisell/pisellos",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.3",
|
|
5
5
|
"description": "一个可扩展的前端模块化SDK框架,支持插件系统",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"docs": "typedoc --out docs src/index.ts",
|
|
22
22
|
"sync": "node sync.js",
|
|
23
23
|
"prepublishOnly": "npm run build",
|
|
24
|
-
"deploy": "yarn run build && yarn run changeset && yarn run version &&
|
|
24
|
+
"deploy": "yarn run build && yarn run changeset && yarn run version && npm run release"
|
|
25
25
|
},
|
|
26
26
|
"repository": {
|
|
27
27
|
"type": "git",
|