@pisell/private-materials 3.3.99 → 3.3.101
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/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.js +8 -1
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
- package/es/components/booking/info/service2/Lists.d.ts +0 -1
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.js +6 -1
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
- package/lib/components/booking/info/service2/Lists.d.ts +0 -1
- package/package.json +4 -4
|
@@ -8,6 +8,7 @@ import { useEffect, useMemo, useRef } from "react";
|
|
|
8
8
|
import useHolderConfig from "./useHolderConfig";
|
|
9
9
|
import { isOpenAddTime } from "../utils";
|
|
10
10
|
import useGetHolderList from "./useGetHolderList";
|
|
11
|
+
import { getProductExtend } from "../../info2/service/addService/utils";
|
|
11
12
|
var useInfoHolder = function useInfoHolder(state, dispatch) {
|
|
12
13
|
var _state$client, _state$bookingConfig2;
|
|
13
14
|
var detailRef = useRef();
|
|
@@ -43,11 +44,17 @@ var useInfoHolder = function useInfoHolder(state, dispatch) {
|
|
|
43
44
|
});
|
|
44
45
|
};
|
|
45
46
|
var handleAction = function handleAction(dataSource) {
|
|
47
|
+
var cacheItem = getProductExtend({
|
|
48
|
+
cacheItem: _objectSpread(_objectSpread({}, dataSource._origin), {}, {
|
|
49
|
+
new: 0
|
|
50
|
+
}),
|
|
51
|
+
state: state
|
|
52
|
+
});
|
|
46
53
|
dispatch({
|
|
47
54
|
type: "setService",
|
|
48
55
|
payload: {
|
|
49
56
|
addTimeModal: true,
|
|
50
|
-
cacheItem:
|
|
57
|
+
cacheItem: cacheItem
|
|
51
58
|
}
|
|
52
59
|
});
|
|
53
60
|
};
|
|
@@ -36,6 +36,7 @@ var import_react = require("react");
|
|
|
36
36
|
var import_useHolderConfig = __toESM(require("./useHolderConfig"));
|
|
37
37
|
var import_utils = require("../utils");
|
|
38
38
|
var import_useGetHolderList = __toESM(require("./useGetHolderList"));
|
|
39
|
+
var import_utils2 = require("../../info2/service/addService/utils");
|
|
39
40
|
var useInfoHolder = (state, dispatch) => {
|
|
40
41
|
var _a, _b, _c, _d;
|
|
41
42
|
const detailRef = (0, import_react.useRef)();
|
|
@@ -68,11 +69,15 @@ var useInfoHolder = (state, dispatch) => {
|
|
|
68
69
|
});
|
|
69
70
|
};
|
|
70
71
|
const handleAction = (dataSource) => {
|
|
72
|
+
const cacheItem = (0, import_utils2.getProductExtend)({
|
|
73
|
+
cacheItem: { ...dataSource._origin, new: 0 },
|
|
74
|
+
state
|
|
75
|
+
});
|
|
71
76
|
dispatch({
|
|
72
77
|
type: "setService",
|
|
73
78
|
payload: {
|
|
74
79
|
addTimeModal: true,
|
|
75
|
-
cacheItem
|
|
80
|
+
cacheItem
|
|
76
81
|
}
|
|
77
82
|
});
|
|
78
83
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.101",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
"react-infinite-scroll-component": "^6.1.0",
|
|
60
60
|
"rc-virtual-list": "^3.11.3",
|
|
61
61
|
"decimal.js": "^10.4.3",
|
|
62
|
-
"@pisell/materials": "3.3.35",
|
|
63
62
|
"@pisell/utils": "3.0.0",
|
|
64
|
-
"@pisell/
|
|
65
|
-
"@pisell/icon": "0.0.11"
|
|
63
|
+
"@pisell/materials": "3.3.35",
|
|
64
|
+
"@pisell/icon": "0.0.11",
|
|
65
|
+
"@pisell/date-picker": "3.0.2"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"react": "^18.0.0",
|