@pisell/private-materials 6.8.35 → 6.8.36

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.
@@ -401,6 +401,7 @@ var AddSerivce = function AddSerivce(props) {
401
401
 
402
402
  // 执行实际的 dispatch 操作
403
403
  var executeServiceDispatch = useMemoizedFn(function (productKey) {
404
+ var _cacheItem$_extend4;
404
405
  console.time('executeServiceDispatch');
405
406
  console.time('executeServiceDispatch1');
406
407
  var pendingData = pendingCacheValuesRef.current[productKey];
@@ -408,7 +409,7 @@ var AddSerivce = function AddSerivce(props) {
408
409
  var cacheItem = pendingData.cacheItem,
409
410
  item = pendingData.item,
410
411
  detail = pendingData.detail;
411
- var clickCount = clickCountRef.current[productKey] || 1;
412
+ var clickCount = clickCountRef.current[productKey] || (cacheItem === null || cacheItem === void 0 || (_cacheItem$_extend4 = cacheItem._extend) === null || _cacheItem$_extend4 === void 0 ? void 0 : _cacheItem$_extend4.quantity) || 1;
412
413
 
413
414
  // 更新 quantity 为累积的点击次数
414
415
  var finalCacheItem = _objectSpread(_objectSpread({}, cacheItem), {}, {
@@ -342,12 +342,13 @@ var AddSerivce = (props) => {
342
342
  console.timeEnd("processAutoCloseService2");
343
343
  });
344
344
  const executeServiceDispatch = (0, import_ahooks.useMemoizedFn)((productKey) => {
345
+ var _a2;
345
346
  console.time("executeServiceDispatch");
346
347
  console.time("executeServiceDispatch1");
347
348
  const pendingData = pendingCacheValuesRef.current[productKey];
348
349
  if (!pendingData) return;
349
350
  const { cacheItem, item, detail } = pendingData;
350
- const clickCount = clickCountRef.current[productKey] || 1;
351
+ const clickCount = clickCountRef.current[productKey] || ((_a2 = cacheItem == null ? void 0 : cacheItem._extend) == null ? void 0 : _a2.quantity) || 1;
351
352
  const finalCacheItem = {
352
353
  ...cacheItem,
353
354
  _extend: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.8.35",
3
+ "version": "6.8.36",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -76,10 +76,10 @@
76
76
  "react-infinite-scroll-component": "^6.1.0",
77
77
  "react-resizable": "^3.0.5",
78
78
  "styled-components": "^6.0.0-rc.3",
79
- "@pisell/icon": "0.0.11",
80
- "@pisell/utils": "3.0.2",
79
+ "@pisell/date-picker": "3.0.7",
81
80
  "@pisell/materials": "6.8.7",
82
- "@pisell/date-picker": "3.0.7"
81
+ "@pisell/icon": "0.0.11",
82
+ "@pisell/utils": "3.0.2"
83
83
  },
84
84
  "peerDependencies": {
85
85
  "react": "^18.0.0",