@pisell/private-materials 3.2.34 → 3.2.35
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 +2 -2
- package/build/lowcode/view.js +2 -2
- package/es/components/appointmentBooking/components/Cart/Item/index.js +4 -2
- package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/ConfirmInformation/index.d.ts +0 -1
- package/es/components/appointmentBooking/utils.d.ts +1 -1
- package/es/components/appointmentBooking/utils.js +2 -2
- package/es/components/booking/components/footer/index.d.ts +0 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/index.d.ts +0 -1
- package/es/components/booking/info/service/addService/index.d.ts +0 -1
- package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -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/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +2 -2
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/es/components/schedules/utils.d.ts +1 -1
- package/es/components/shoppingCart/components/Cart/Product.js +7 -4
- package/es/components/shoppingCart/components/Cart/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/es/components/shoppingCart/status.js +2 -1
- package/es/components/shoppingCart/type.d.ts +1 -0
- package/es/components/workSpaceListDetail/index.d.ts +4 -0
- package/es/components/workSpaceListDetail/server.d.ts +4 -0
- package/es/utils/index.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +4 -2
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.d.ts +0 -1
- package/lib/components/appointmentBooking/utils.d.ts +1 -1
- package/lib/components/appointmentBooking/utils.js +2 -2
- package/lib/components/booking/components/footer/index.d.ts +0 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/index.d.ts +0 -1
- package/lib/components/booking/info/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -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/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +2 -2
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/lib/components/schedules/utils.d.ts +1 -1
- package/lib/components/shoppingCart/components/Cart/Product.js +9 -4
- package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/lib/components/shoppingCart/status.js +2 -1
- package/lib/components/shoppingCart/type.d.ts +1 -0
- package/lib/components/workSpaceListDetail/index.d.ts +4 -0
- package/lib/components/workSpaceListDetail/server.d.ts +4 -0
- package/lib/utils/index.d.ts +1 -1
- package/package.json +2 -2
|
@@ -50,6 +50,7 @@ var CartItem = function CartItem() {
|
|
|
50
50
|
});
|
|
51
51
|
}, [accountLists, isFormSubject]);
|
|
52
52
|
var holders = useMemo(function () {
|
|
53
|
+
if (isFormSubject) return [];
|
|
53
54
|
return formatHolder(accountLists);
|
|
54
55
|
}, [accountLists, isFormSubject]);
|
|
55
56
|
|
|
@@ -97,7 +98,7 @@ var CartItem = function CartItem() {
|
|
|
97
98
|
className: "content"
|
|
98
99
|
}, /*#__PURE__*/React.createElement(ShoppingCart, {
|
|
99
100
|
productParams: {
|
|
100
|
-
products: formatCarts(carts, resources),
|
|
101
|
+
products: formatCarts(carts, resources, accountLists),
|
|
101
102
|
hideAddBtn: false,
|
|
102
103
|
holders: holders,
|
|
103
104
|
disabledEdit: isLastStep,
|
|
@@ -105,7 +106,8 @@ var CartItem = function CartItem() {
|
|
|
105
106
|
isShowDelete: (currentStep === null || currentStep === void 0 || (_currentStep$step3 = currentStep.step) === null || _currentStep$step3 === void 0 ? void 0 : _currentStep$step3.key) === 'select-service',
|
|
106
107
|
isShowPackageNote: false,
|
|
107
108
|
isShowChangeHolder: isFormSubject && isLogin,
|
|
108
|
-
isShowHolder: isFormSubject
|
|
109
|
+
isShowHolder: isFormSubject,
|
|
110
|
+
isShowAddHolderButton: true
|
|
109
111
|
},
|
|
110
112
|
collapseParams: {
|
|
111
113
|
activeKey: holderIds,
|
|
@@ -45,7 +45,7 @@ export declare const formatMonthDisplay: (dateString: string) => string;
|
|
|
45
45
|
export declare const resourceTitle: (data: any) => any;
|
|
46
46
|
export declare const formatHolder: (data: any[]) => any[];
|
|
47
47
|
export declare const formatGuest: (data: any[], products: any) => any[];
|
|
48
|
-
export declare const formatCarts: (data: any[], resources: any[]) => any[];
|
|
48
|
+
export declare const formatCarts: (data: any[], resources: any[], accountLists?: any) => any[];
|
|
49
49
|
/**
|
|
50
50
|
* @title: 对资源进行排序
|
|
51
51
|
* @description:
|
|
@@ -132,7 +132,7 @@ export var formatGuest = function formatGuest(data, products) {
|
|
|
132
132
|
});
|
|
133
133
|
});
|
|
134
134
|
};
|
|
135
|
-
export var formatCarts = function formatCarts(data, resources) {
|
|
135
|
+
export var formatCarts = function formatCarts(data, resources, accountLists) {
|
|
136
136
|
try {
|
|
137
137
|
// const context = useEngineContext();
|
|
138
138
|
// const utils = context.appHelper.utils || {};
|
|
@@ -161,7 +161,7 @@ export var formatCarts = function formatCarts(data, resources) {
|
|
|
161
161
|
resources: currentResources,
|
|
162
162
|
is_hide_like: true,
|
|
163
163
|
holder_title: '',
|
|
164
|
-
holders:
|
|
164
|
+
holders: formatHolder(accountLists)
|
|
165
165
|
});
|
|
166
166
|
});
|
|
167
167
|
} catch (error) {
|
|
@@ -4,6 +4,6 @@ declare const useSendModal: (bookingId?: number) => {
|
|
|
4
4
|
setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
5
5
|
handleOpen: () => void;
|
|
6
6
|
handleValuesChange: (val: any) => void;
|
|
7
|
-
handleOk: (values: SendModalValues) => Promise<
|
|
7
|
+
handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
|
|
8
8
|
};
|
|
9
9
|
export default useSendModal;
|
|
@@ -8,7 +8,7 @@ import { PosProps } from './const';
|
|
|
8
8
|
*/
|
|
9
9
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
|
10
10
|
className?: string | undefined;
|
|
11
|
-
onChange?: ((status: "
|
|
11
|
+
onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
|
|
12
12
|
[keys: string]: unknown;
|
|
13
13
|
} | undefined, other?: any) => void) | undefined;
|
|
14
14
|
onClose: () => void;
|
|
@@ -10,7 +10,7 @@ import './device.less';
|
|
|
10
10
|
declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
|
|
11
11
|
api: PayProps['api'];
|
|
12
12
|
className?: string | undefined;
|
|
13
|
-
onChange?: ((status: "
|
|
13
|
+
onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
|
|
14
14
|
[keys: string]: unknown;
|
|
15
15
|
} | undefined, other?: any) => void) | undefined;
|
|
16
16
|
onClose: () => void;
|
|
@@ -15,7 +15,7 @@ export declare const useStoreRef: <T extends {
|
|
|
15
15
|
readonly numRef: React.MutableRefObject<string | number | undefined>;
|
|
16
16
|
readonly orderIdRef: React.MutableRefObject<string | number>;
|
|
17
17
|
readonly modeRef: React.MutableRefObject<ModeEnum>;
|
|
18
|
-
readonly statusRef: React.MutableRefObject<"
|
|
18
|
+
readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
|
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
|
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
|
|
|
174
174
|
export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
|
|
175
175
|
type: EActionTypes;
|
|
176
176
|
payload: {
|
|
177
|
-
status: "
|
|
177
|
+
status: "loading" | "success" | "warn" | "fail" | "question";
|
|
178
178
|
};
|
|
179
179
|
};
|
|
180
180
|
/**
|
|
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
308
308
|
net?: boolean | undefined;
|
|
309
309
|
component?: string | undefined;
|
|
310
310
|
form?: string | undefined;
|
|
311
|
-
status?: "
|
|
311
|
+
status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
|
|
312
312
|
warn?: string | undefined;
|
|
313
313
|
steps?: {
|
|
314
314
|
/** 用于重置当前步骤 */
|
|
@@ -17,6 +17,6 @@ declare let modal: Omit<ModalStaticFunctions, "warn">;
|
|
|
17
17
|
export declare const setModal: (m: Omit<ModalStaticFunctions, "warn">) => void;
|
|
18
18
|
export declare const saveConfirm: () => Promise<{
|
|
19
19
|
destroy: () => void;
|
|
20
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
20
|
+
update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
|
|
21
21
|
}>;
|
|
22
22
|
export { modal };
|
|
@@ -22,7 +22,8 @@ var Product = function Product(props) {
|
|
|
22
22
|
isShowChangeResource = state.isShowChangeResource,
|
|
23
23
|
isShowDelete = state.isShowDelete,
|
|
24
24
|
isShowChangeHolder = state.isShowChangeHolder,
|
|
25
|
-
isShowHolder = state.isShowHolder
|
|
25
|
+
isShowHolder = state.isShowHolder,
|
|
26
|
+
isShowAddHolderButton = state.isShowAddHolderButton;
|
|
26
27
|
var clearCart = useClearCart(id);
|
|
27
28
|
|
|
28
29
|
/**
|
|
@@ -45,9 +46,11 @@ var Product = function Product(props) {
|
|
|
45
46
|
isShowChangeResource: isShowChangeResource,
|
|
46
47
|
isShowChangeHolder: isShowChangeHolder,
|
|
47
48
|
isShowDelete: isShowDelete,
|
|
48
|
-
isShowHolder: isShowHolder
|
|
49
|
+
isShowHolder: isShowHolder,
|
|
50
|
+
isShowAddHolderButton: isShowAddHolderButton
|
|
49
51
|
};
|
|
50
|
-
}, [isShowNote, isShowPackageNote, disabledEdit, isShowChangeResource, isShowDelete]);
|
|
52
|
+
}, [isShowNote, isShowPackageNote, disabledEdit, isShowChangeResource, isShowDelete, isShowHolder, isShowAddHolderButton]);
|
|
53
|
+
console.log('productParams', productParams);
|
|
51
54
|
return /*#__PURE__*/React.createElement("div", {
|
|
52
55
|
className: "pisell-lowcode__shopping-cart-content"
|
|
53
56
|
}, clearCart, lists === null || lists === void 0 ? void 0 : lists.map(function (item) {
|
|
@@ -80,7 +83,7 @@ var Product = function Product(props) {
|
|
|
80
83
|
return handleChange(item, 'change_holder', e);
|
|
81
84
|
},
|
|
82
85
|
onAddHolder: function onAddHolder(e) {
|
|
83
|
-
return handleChange(item, 'add_holder');
|
|
86
|
+
return handleChange(item, 'add_holder', e);
|
|
84
87
|
}
|
|
85
88
|
}, productParams));
|
|
86
89
|
}), !hideAddBtn && platform !== 'h5' && isAdd ? useAddService(id, 'more') : null);
|
package/es/utils/index.d.ts
CHANGED
|
@@ -18,6 +18,6 @@ declare let modal: Omit<ModalStaticFunctions, 'warn'>;
|
|
|
18
18
|
export declare const setModal: (m: Omit<ModalStaticFunctions, 'warn'>) => void;
|
|
19
19
|
export declare const saveConfirm: () => Promise<{
|
|
20
20
|
destroy: () => void;
|
|
21
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
21
|
+
update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
|
|
22
22
|
}>;
|
|
23
23
|
export { modal };
|
|
@@ -71,6 +71,7 @@ var CartItem = () => {
|
|
|
71
71
|
return accountLists.map((item) => item.id);
|
|
72
72
|
}, [accountLists, isFormSubject]);
|
|
73
73
|
const holders = (0, import_react.useMemo)(() => {
|
|
74
|
+
if (isFormSubject) return [];
|
|
74
75
|
return (0, import_utils2.formatHolder)(accountLists);
|
|
75
76
|
}, [accountLists, isFormSubject]);
|
|
76
77
|
const hasGoodPassApp = (0, import_react.useMemo)(() => {
|
|
@@ -117,7 +118,7 @@ var CartItem = () => {
|
|
|
117
118
|
import_shoppingCart.default,
|
|
118
119
|
{
|
|
119
120
|
productParams: {
|
|
120
|
-
products: (0, import_utils2.formatCarts)(carts, resources),
|
|
121
|
+
products: (0, import_utils2.formatCarts)(carts, resources, accountLists),
|
|
121
122
|
hideAddBtn: false,
|
|
122
123
|
holders,
|
|
123
124
|
disabledEdit: isLastStep,
|
|
@@ -125,7 +126,8 @@ var CartItem = () => {
|
|
|
125
126
|
isShowDelete: ((_d = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _d.key) === "select-service",
|
|
126
127
|
isShowPackageNote: false,
|
|
127
128
|
isShowChangeHolder: isFormSubject && isLogin,
|
|
128
|
-
isShowHolder: isFormSubject
|
|
129
|
+
isShowHolder: isFormSubject,
|
|
130
|
+
isShowAddHolderButton: true
|
|
129
131
|
},
|
|
130
132
|
collapseParams: {
|
|
131
133
|
activeKey: holderIds,
|
|
@@ -45,7 +45,7 @@ export declare const formatMonthDisplay: (dateString: string) => string;
|
|
|
45
45
|
export declare const resourceTitle: (data: any) => any;
|
|
46
46
|
export declare const formatHolder: (data: any[]) => any[];
|
|
47
47
|
export declare const formatGuest: (data: any[], products: any) => any[];
|
|
48
|
-
export declare const formatCarts: (data: any[], resources: any[]) => any[];
|
|
48
|
+
export declare const formatCarts: (data: any[], resources: any[], accountLists?: any) => any[];
|
|
49
49
|
/**
|
|
50
50
|
* @title: 对资源进行排序
|
|
51
51
|
* @description:
|
|
@@ -118,7 +118,7 @@ var formatGuest = (data, products) => {
|
|
|
118
118
|
};
|
|
119
119
|
});
|
|
120
120
|
};
|
|
121
|
-
var formatCarts = (data, resources) => {
|
|
121
|
+
var formatCarts = (data, resources, accountLists) => {
|
|
122
122
|
try {
|
|
123
123
|
const locale = "en-US";
|
|
124
124
|
const symbol = "$";
|
|
@@ -143,7 +143,7 @@ var formatCarts = (data, resources) => {
|
|
|
143
143
|
resources: currentResources,
|
|
144
144
|
is_hide_like: true,
|
|
145
145
|
holder_title: "",
|
|
146
|
-
holders:
|
|
146
|
+
holders: formatHolder(accountLists)
|
|
147
147
|
};
|
|
148
148
|
});
|
|
149
149
|
} catch (error) {
|
|
@@ -4,6 +4,6 @@ declare const useSendModal: (bookingId?: number) => {
|
|
|
4
4
|
setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
5
5
|
handleOpen: () => void;
|
|
6
6
|
handleValuesChange: (val: any) => void;
|
|
7
|
-
handleOk: (values: SendModalValues) => Promise<
|
|
7
|
+
handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
|
|
8
8
|
};
|
|
9
9
|
export default useSendModal;
|
|
@@ -8,7 +8,7 @@ import { PosProps } from './const';
|
|
|
8
8
|
*/
|
|
9
9
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
|
10
10
|
className?: string | undefined;
|
|
11
|
-
onChange?: ((status: "
|
|
11
|
+
onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
|
|
12
12
|
[keys: string]: unknown;
|
|
13
13
|
} | undefined, other?: any) => void) | undefined;
|
|
14
14
|
onClose: () => void;
|
|
@@ -10,7 +10,7 @@ import './device.less';
|
|
|
10
10
|
declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
|
|
11
11
|
api: PayProps['api'];
|
|
12
12
|
className?: string | undefined;
|
|
13
|
-
onChange?: ((status: "
|
|
13
|
+
onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
|
|
14
14
|
[keys: string]: unknown;
|
|
15
15
|
} | undefined, other?: any) => void) | undefined;
|
|
16
16
|
onClose: () => void;
|
|
@@ -15,7 +15,7 @@ export declare const useStoreRef: <T extends {
|
|
|
15
15
|
readonly numRef: React.MutableRefObject<string | number | undefined>;
|
|
16
16
|
readonly orderIdRef: React.MutableRefObject<string | number>;
|
|
17
17
|
readonly modeRef: React.MutableRefObject<ModeEnum>;
|
|
18
|
-
readonly statusRef: React.MutableRefObject<"
|
|
18
|
+
readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
|
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
|
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
|
|
|
174
174
|
export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
|
|
175
175
|
type: EActionTypes;
|
|
176
176
|
payload: {
|
|
177
|
-
status: "
|
|
177
|
+
status: "loading" | "success" | "warn" | "fail" | "question";
|
|
178
178
|
};
|
|
179
179
|
};
|
|
180
180
|
/**
|
|
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
308
308
|
net?: boolean | undefined;
|
|
309
309
|
component?: string | undefined;
|
|
310
310
|
form?: string | undefined;
|
|
311
|
-
status?: "
|
|
311
|
+
status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
|
|
312
312
|
warn?: string | undefined;
|
|
313
313
|
steps?: {
|
|
314
314
|
/** 用于重置当前步骤 */
|
|
@@ -17,6 +17,6 @@ declare let modal: Omit<ModalStaticFunctions, "warn">;
|
|
|
17
17
|
export declare const setModal: (m: Omit<ModalStaticFunctions, "warn">) => void;
|
|
18
18
|
export declare const saveConfirm: () => Promise<{
|
|
19
19
|
destroy: () => void;
|
|
20
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
20
|
+
update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
|
|
21
21
|
}>;
|
|
22
22
|
export { modal };
|
|
@@ -49,7 +49,8 @@ var Product = (props) => {
|
|
|
49
49
|
isShowChangeResource,
|
|
50
50
|
isShowDelete,
|
|
51
51
|
isShowChangeHolder,
|
|
52
|
-
isShowHolder
|
|
52
|
+
isShowHolder,
|
|
53
|
+
isShowAddHolderButton
|
|
53
54
|
} = state;
|
|
54
55
|
const clearCart = (0, import_useClearCart.default)(id);
|
|
55
56
|
const handleChange = (item, type, other) => {
|
|
@@ -64,15 +65,19 @@ var Product = (props) => {
|
|
|
64
65
|
isShowChangeResource,
|
|
65
66
|
isShowChangeHolder,
|
|
66
67
|
isShowDelete,
|
|
67
|
-
isShowHolder
|
|
68
|
+
isShowHolder,
|
|
69
|
+
isShowAddHolderButton
|
|
68
70
|
};
|
|
69
71
|
}, [
|
|
70
72
|
isShowNote,
|
|
71
73
|
isShowPackageNote,
|
|
72
74
|
disabledEdit,
|
|
73
75
|
isShowChangeResource,
|
|
74
|
-
isShowDelete
|
|
76
|
+
isShowDelete,
|
|
77
|
+
isShowHolder,
|
|
78
|
+
isShowAddHolderButton
|
|
75
79
|
]);
|
|
80
|
+
console.log("productParams", productParams);
|
|
76
81
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__shopping-cart-content" }, clearCart, lists == null ? void 0 : lists.map((item) => {
|
|
77
82
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
78
83
|
import_materials.ProductCard,
|
|
@@ -86,7 +91,7 @@ var Product = (props) => {
|
|
|
86
91
|
onCard: (e) => handleChange == null ? void 0 : handleChange(e, "view"),
|
|
87
92
|
onChangeResource: (e) => handleChange(item, "change_resource", e),
|
|
88
93
|
onChangeHolder: (e) => handleChange(item, "change_holder", e),
|
|
89
|
-
onAddHolder: (e) => handleChange(item, "add_holder"),
|
|
94
|
+
onAddHolder: (e) => handleChange(item, "add_holder", e),
|
|
90
95
|
...productParams
|
|
91
96
|
}
|
|
92
97
|
);
|
package/lib/utils/index.d.ts
CHANGED
|
@@ -18,6 +18,6 @@ declare let modal: Omit<ModalStaticFunctions, 'warn'>;
|
|
|
18
18
|
export declare const setModal: (m: Omit<ModalStaticFunctions, 'warn'>) => void;
|
|
19
19
|
export declare const saveConfirm: () => Promise<{
|
|
20
20
|
destroy: () => void;
|
|
21
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
21
|
+
update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
|
|
22
22
|
}>;
|
|
23
23
|
export { modal };
|