@pisell/private-materials 3.0.199 → 3.0.200
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/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +10 -10
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +11 -11
- package/es/components/booking/components/customSelect/index.d.ts +1 -0
- package/es/components/booking/components/customSelect/index.js +6 -2
- package/es/components/booking/components/footer/AppointmentProductModal/index.d.ts +3 -0
- package/es/components/booking/components/footer/AppointmentProductModal/index.js +38 -0
- package/es/components/booking/components/footer/AppointmentProductModal/index.less +0 -0
- package/es/components/booking/components/footer/amount.js +45 -22
- package/es/components/booking/components/footer/index.js +84 -40
- package/es/components/booking/components/footer/utils.js +243 -32
- package/es/components/booking/info/addServiceVariant/index.js +8 -1
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +1 -0
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +14 -13
- package/es/components/booking/info/clientVariant/vertical/index.js +33 -4
- package/es/components/booking/info/dateRange/index.d.ts +5 -0
- package/es/components/booking/info/dateRange/index.js +98 -0
- package/es/components/booking/info/dateRange/index.less +21 -0
- package/es/components/booking/info/main.js +20 -8
- package/es/components/booking/info/model.js +3 -0
- package/es/components/booking/info/pet/ChangePetModal/index.d.ts +4 -0
- package/es/components/booking/info/pet/ChangePetModal/index.js +119 -0
- package/es/components/booking/info/pet/ChangePetModal/index.less +4 -0
- package/es/components/booking/info/pet/index.js +54 -5
- package/es/components/booking/info/service/addService/index.js +142 -22
- package/es/components/booking/info/service/addService/index.less +13 -3
- package/es/components/booking/info/service/addService/utils.d.ts +11 -2
- package/es/components/booking/info/service/addService/utils.js +49 -24
- package/es/components/booking/info/service/editService/index.js +246 -44
- package/es/components/booking/info/service/editService/index.less +18 -13
- package/es/components/booking/info/service2/Lists.d.ts +3 -0
- package/es/components/booking/info/service2/Lists.js +158 -0
- package/es/components/booking/info/service2/hooks/useSelectPet.d.ts +6 -0
- package/es/components/booking/info/service2/hooks/useSelectPet.js +54 -0
- package/es/components/booking/info/service2/index.d.ts +3 -0
- package/es/components/booking/info/service2/index.js +58 -0
- package/es/components/booking/info/service2/status.d.ts +31 -0
- package/es/components/booking/info/service2/status.js +78 -0
- package/es/components/booking/info/service2/utils.d.ts +145 -0
- package/es/components/booking/info/service2/utils.js +438 -0
- package/es/components/booking/info/utils.d.ts +9 -0
- package/es/components/booking/info/utils.js +13 -0
- package/es/components/booking/locales.d.ts +60 -0
- package/es/components/booking/locales.js +75 -3
- package/es/components/booking/materiels/holder/index.d.ts +7 -0
- package/es/components/booking/materiels/holder/index.js +51 -0
- package/es/components/booking/model.d.ts +4 -1
- package/es/components/booking/model.js +4 -2
- package/es/components/booking/utils.d.ts +12 -3
- package/es/components/booking/utils.js +139 -23
- package/es/components/eftpos/form/index.js +6 -12
- package/es/components/eftpos/group/index.d.ts +2 -1
- package/es/components/eftpos/group/index.js +2 -1
- package/es/components/eftpos/index.js +2 -2
- package/es/components/eftposPay/helper.d.ts +0 -1
- package/es/components/eftposPay/helper.js +0 -14
- package/es/components/eftposPay/tyro/index.js +20 -51
- package/es/components/shoppingCart/Provider.d.ts +3 -0
- package/es/components/shoppingCart/Provider.js +86 -0
- package/es/components/shoppingCart/components/Cart/Product.d.ts +4 -0
- package/es/components/shoppingCart/components/Cart/Product.js +96 -0
- package/es/components/shoppingCart/components/Cart/index.d.ts +4 -0
- package/es/components/shoppingCart/components/Cart/index.js +72 -0
- package/es/components/shoppingCart/components/Cart/index.less +68 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +4 -0
- package/es/components/shoppingCart/components/Empty/index.js +14 -0
- package/es/components/shoppingCart/components/Empty/index.less +19 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +4 -0
- package/es/components/shoppingCart/components/Render/index.js +68 -0
- package/es/components/shoppingCart/components/Render/index.less +2 -0
- package/es/components/shoppingCart/components/SelectHolderModal/index.d.ts +4 -0
- package/es/components/shoppingCart/components/SelectHolderModal/index.js +124 -0
- package/es/components/shoppingCart/components/SelectHolderModal/index.less +32 -0
- package/es/components/shoppingCart/hooks/useAddService.d.ts +3 -0
- package/es/components/shoppingCart/hooks/useAddService.js +23 -0
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +3 -0
- package/es/components/shoppingCart/hooks/useClearCart.js +54 -0
- package/es/components/shoppingCart/hooks/useContext.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useContext.js +5 -0
- package/es/components/shoppingCart/index.d.ts +4 -0
- package/es/components/shoppingCart/index.js +24 -0
- package/es/components/shoppingCart/locales.d.ts +33 -0
- package/es/components/shoppingCart/locales.js +38 -0
- package/es/components/shoppingCart/mock.d.ts +40 -0
- package/es/components/shoppingCart/mock.js +40 -0
- package/es/components/shoppingCart/status.d.ts +2 -0
- package/es/components/shoppingCart/status.js +22 -0
- package/es/components/shoppingCart/type.d.ts +39 -0
- package/es/components/shoppingCart/type.js +1 -0
- package/es/components/shoppingCart/utils.d.ts +63 -0
- package/es/components/shoppingCart/utils.js +119 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/lib/components/booking/components/customSelect/index.d.ts +1 -0
- package/lib/components/booking/components/customSelect/index.js +6 -2
- package/lib/components/booking/components/footer/AppointmentProductModal/index.d.ts +3 -0
- package/lib/components/booking/components/footer/AppointmentProductModal/index.js +60 -0
- package/lib/components/booking/components/footer/AppointmentProductModal/index.less +0 -0
- package/lib/components/booking/components/footer/amount.js +26 -8
- package/lib/components/booking/components/footer/index.js +25 -4
- package/lib/components/booking/components/footer/utils.js +157 -31
- package/lib/components/booking/info/addServiceVariant/index.js +5 -0
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +8 -7
- package/lib/components/booking/info/clientVariant/vertical/index.js +36 -10
- package/lib/components/booking/info/dateRange/index.d.ts +5 -0
- package/lib/components/booking/info/dateRange/index.js +111 -0
- package/lib/components/booking/info/dateRange/index.less +21 -0
- package/lib/components/booking/info/main.js +11 -4
- package/lib/components/booking/info/model.js +3 -0
- package/lib/components/booking/info/pet/ChangePetModal/index.d.ts +4 -0
- package/lib/components/booking/info/pet/ChangePetModal/index.js +111 -0
- package/lib/components/booking/info/pet/ChangePetModal/index.less +4 -0
- package/lib/components/booking/info/pet/index.js +61 -25
- package/lib/components/booking/info/service/addService/index.js +107 -34
- package/lib/components/booking/info/service/addService/index.less +13 -3
- package/lib/components/booking/info/service/addService/utils.d.ts +11 -2
- package/lib/components/booking/info/service/addService/utils.js +31 -10
- package/lib/components/booking/info/service/editService/index.js +283 -125
- package/lib/components/booking/info/service/editService/index.less +18 -13
- package/lib/components/booking/info/service2/Lists.d.ts +3 -0
- package/lib/components/booking/info/service2/Lists.js +113 -0
- package/lib/components/booking/info/service2/hooks/useSelectPet.d.ts +6 -0
- package/lib/components/booking/info/service2/hooks/useSelectPet.js +50 -0
- package/lib/components/booking/info/service2/index.d.ts +3 -0
- package/lib/components/booking/info/service2/index.js +75 -0
- package/lib/components/booking/info/service2/status.d.ts +31 -0
- package/lib/components/booking/info/service2/status.js +81 -0
- package/lib/components/booking/info/service2/utils.d.ts +145 -0
- package/lib/components/booking/info/service2/utils.js +322 -0
- package/lib/components/booking/info/utils.d.ts +9 -0
- package/lib/components/booking/info/utils.js +6 -0
- package/lib/components/booking/locales.d.ts +60 -0
- package/lib/components/booking/locales.js +63 -3
- package/lib/components/booking/materiels/holder/index.d.ts +7 -0
- package/lib/components/booking/materiels/holder/index.js +65 -0
- package/lib/components/booking/model.d.ts +4 -1
- package/lib/components/booking/model.js +4 -2
- package/lib/components/booking/utils.d.ts +12 -3
- package/lib/components/booking/utils.js +87 -15
- package/lib/components/eftpos/form/index.js +6 -12
- package/lib/components/eftpos/group/index.d.ts +2 -1
- package/lib/components/eftpos/group/index.js +1 -0
- package/lib/components/eftpos/index.js +2 -2
- package/lib/components/eftposPay/helper.d.ts +0 -1
- package/lib/components/eftposPay/helper.js +0 -21
- package/lib/components/eftposPay/tyro/index.js +7 -36
- package/lib/components/shoppingCart/Provider.d.ts +3 -0
- package/lib/components/shoppingCart/Provider.js +110 -0
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +4 -0
- package/lib/components/shoppingCart/components/Cart/Product.js +89 -0
- package/lib/components/shoppingCart/components/Cart/index.d.ts +4 -0
- package/lib/components/shoppingCart/components/Cart/index.js +77 -0
- package/lib/components/shoppingCart/components/Cart/index.less +68 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +4 -0
- package/lib/components/shoppingCart/components/Empty/index.js +43 -0
- package/lib/components/shoppingCart/components/Empty/index.less +19 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +4 -0
- package/lib/components/shoppingCart/components/Render/index.js +79 -0
- package/lib/components/shoppingCart/components/Render/index.less +2 -0
- package/lib/components/shoppingCart/components/SelectHolderModal/index.d.ts +4 -0
- package/lib/components/shoppingCart/components/SelectHolderModal/index.js +116 -0
- package/lib/components/shoppingCart/components/SelectHolderModal/index.less +32 -0
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +3 -0
- package/lib/components/shoppingCart/hooks/useAddService.js +55 -0
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +3 -0
- package/lib/components/shoppingCart/hooks/useClearCart.js +71 -0
- package/lib/components/shoppingCart/hooks/useContext.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useContext.js +31 -0
- package/lib/components/shoppingCart/index.d.ts +4 -0
- package/lib/components/shoppingCart/index.js +60 -0
- package/lib/components/shoppingCart/locales.d.ts +33 -0
- package/lib/components/shoppingCart/locales.js +56 -0
- package/lib/components/shoppingCart/mock.d.ts +40 -0
- package/lib/components/shoppingCart/mock.js +76 -0
- package/lib/components/shoppingCart/status.d.ts +2 -0
- package/lib/components/shoppingCart/status.js +60 -0
- package/lib/components/shoppingCart/type.d.ts +39 -0
- package/lib/components/shoppingCart/type.js +17 -0
- package/lib/components/shoppingCart/utils.d.ts +63 -0
- package/lib/components/shoppingCart/utils.js +92 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -0
- package/lowcode/shopping-cart/meta.ts +98 -0
- package/package.json +4 -4
- package/es/components/eftpos/receipt/index.d.ts +0 -24
- package/es/components/eftpos/receipt/index.js +0 -96
- package/lib/components/eftpos/receipt/index.d.ts +0 -24
- package/lib/components/eftpos/receipt/index.js +0 -88
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/shoppingCart/hooks/useAddService.tsx
|
|
30
|
+
var useAddService_exports = {};
|
|
31
|
+
__export(useAddService_exports, {
|
|
32
|
+
default: () => useAddService_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(useAddService_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_classnames = __toESM(require("classnames"));
|
|
37
|
+
var import_materials = require("@pisell/materials");
|
|
38
|
+
var import_useContext = require("./useContext");
|
|
39
|
+
var import_utils = require("@pisell/utils");
|
|
40
|
+
var useAddService = (id, type) => {
|
|
41
|
+
const { state, onAddProduct } = (0, import_useContext.useContext)();
|
|
42
|
+
const { isProductList, disabledEdit } = state;
|
|
43
|
+
return !disabledEdit ? /* @__PURE__ */ import_react.default.createElement(
|
|
44
|
+
"div",
|
|
45
|
+
{
|
|
46
|
+
className: (0, import_classnames.default)("pisell-lowcode__shopping-cart-add-service", {
|
|
47
|
+
"pisell-lowcode__shopping-cart-add-service-products": isProductList
|
|
48
|
+
}),
|
|
49
|
+
onClick: () => onAddProduct(id)
|
|
50
|
+
},
|
|
51
|
+
/* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-plus-circle" }),
|
|
52
|
+
/* @__PURE__ */ import_react.default.createElement("span", null, type === "more" ? import_utils.locales.getText("pisell2.text.shopping-cart.add.more") : import_utils.locales.getText("pisell2.text.shopping-cart.add.service"))
|
|
53
|
+
) : null;
|
|
54
|
+
};
|
|
55
|
+
var useAddService_default = useAddService;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/shoppingCart/hooks/useClearCart.tsx
|
|
30
|
+
var useClearCart_exports = {};
|
|
31
|
+
__export(useClearCart_exports, {
|
|
32
|
+
default: () => useClearCart_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(useClearCart_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_classnames = __toESM(require("classnames"));
|
|
37
|
+
var import_materials = require("@pisell/materials");
|
|
38
|
+
var import_useContext = require("./useContext");
|
|
39
|
+
var import_utils = require("@pisell/utils");
|
|
40
|
+
var import_utils2 = require("../utils");
|
|
41
|
+
var useClearCart = (key) => {
|
|
42
|
+
const { state, updateState, onChange } = (0, import_useContext.useContext)();
|
|
43
|
+
const { isProductList, disabledEdit } = state;
|
|
44
|
+
const handleClear = () => {
|
|
45
|
+
let products = [...(state == null ? void 0 : state.products) || []];
|
|
46
|
+
if (typeof key === "undefined") {
|
|
47
|
+
products = [];
|
|
48
|
+
} else {
|
|
49
|
+
products = products.filter(
|
|
50
|
+
(item) => {
|
|
51
|
+
var _a;
|
|
52
|
+
return ((_a = item == null ? void 0 : item._extend) == null ? void 0 : _a.holder_id) !== key;
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
updateState((0, import_utils2.updateProduct)(state, products));
|
|
57
|
+
onChange(products);
|
|
58
|
+
};
|
|
59
|
+
return !disabledEdit ? /* @__PURE__ */ import_react.default.createElement(
|
|
60
|
+
"span",
|
|
61
|
+
{
|
|
62
|
+
className: (0, import_classnames.default)("pisell-lowcode__shopping-cart-clear-btn", {
|
|
63
|
+
"pisell-lowcode__shopping-cart-clear-btn-empty": isProductList
|
|
64
|
+
}),
|
|
65
|
+
onClick: handleClear
|
|
66
|
+
},
|
|
67
|
+
/* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-trash-01" }),
|
|
68
|
+
/* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("pisell2.booking.info.text.clear-cart"))
|
|
69
|
+
) : null;
|
|
70
|
+
};
|
|
71
|
+
var useClearCart_default = useClearCart;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useContext: () => any;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/shoppingCart/hooks/useContext.tsx
|
|
20
|
+
var useContext_exports = {};
|
|
21
|
+
__export(useContext_exports, {
|
|
22
|
+
useContext: () => useContext
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(useContext_exports);
|
|
25
|
+
var import_react = require("react");
|
|
26
|
+
var import_Provider = require("../Provider");
|
|
27
|
+
var useContext = () => (0, import_react.useContext)(import_Provider.CartContext);
|
|
28
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
29
|
+
0 && (module.exports = {
|
|
30
|
+
useContext
|
|
31
|
+
});
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/shoppingCart/index.tsx
|
|
30
|
+
var shoppingCart_exports = {};
|
|
31
|
+
__export(shoppingCart_exports, {
|
|
32
|
+
default: () => shoppingCart_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(shoppingCart_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_Render = __toESM(require("./components/Render"));
|
|
37
|
+
var import_Provider = require("./Provider");
|
|
38
|
+
var import_utils = require("@pisell/utils");
|
|
39
|
+
var import_locales = __toESM(require("./locales"));
|
|
40
|
+
import_utils.locales.init(import_locales.default, localStorage.getItem("umi_locale") || "en");
|
|
41
|
+
var shoppingCart = ({
|
|
42
|
+
onCard,
|
|
43
|
+
onChange,
|
|
44
|
+
onAddProduct,
|
|
45
|
+
onActiveKey,
|
|
46
|
+
...props
|
|
47
|
+
}) => {
|
|
48
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
49
|
+
import_Provider.CartProvider,
|
|
50
|
+
{
|
|
51
|
+
props,
|
|
52
|
+
onCard,
|
|
53
|
+
onChange,
|
|
54
|
+
onAddProduct,
|
|
55
|
+
onActiveKey
|
|
56
|
+
},
|
|
57
|
+
/* @__PURE__ */ import_react.default.createElement(import_Render.default, null)
|
|
58
|
+
);
|
|
59
|
+
};
|
|
60
|
+
var shoppingCart_default = shoppingCart;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell2.text.shopping-cart.item': (num: number) => string;
|
|
4
|
+
'pisell2.text.shopping-cart.clear.cart': string;
|
|
5
|
+
'pisell2.text.shopping-cart.add.service': string;
|
|
6
|
+
'pisell2.text.shopping-cart.add.more': string;
|
|
7
|
+
'pisell2.text.shopping-cart.no.selected': string;
|
|
8
|
+
'pisell2.text.shopping-cart.confirm': string;
|
|
9
|
+
'pisell2.text.shopping-cart.cancel': string;
|
|
10
|
+
'pisell2.text.shopping-cart.select.holder.modal.title': string;
|
|
11
|
+
};
|
|
12
|
+
'zh-CN': {
|
|
13
|
+
'pisell2.text.shopping-cart.item': (num: number) => string;
|
|
14
|
+
'pisell2.text.shopping-cart.clear.cart': string;
|
|
15
|
+
'pisell2.text.shopping-cart.add.service': string;
|
|
16
|
+
'pisell2.text.shopping-cart.add.more': string;
|
|
17
|
+
'pisell2.text.shopping-cart.no.selected': string;
|
|
18
|
+
'pisell2.text.shopping-cart.confirm': string;
|
|
19
|
+
'pisell2.text.shopping-cart.cancel': string;
|
|
20
|
+
'pisell2.text.shopping-cart.select.holder.modal.title': string;
|
|
21
|
+
};
|
|
22
|
+
'zh-HK': {
|
|
23
|
+
'pisell2.text.shopping-cart.item': (num: number) => string;
|
|
24
|
+
'pisell2.text.shopping-cart.clear.cart': string;
|
|
25
|
+
'pisell2.text.shopping-cart.add.service': string;
|
|
26
|
+
'pisell2.text.shopping-cart.add.more': string;
|
|
27
|
+
'pisell2.text.shopping-cart.no.selected': string;
|
|
28
|
+
'pisell2.text.shopping-cart.confirm': string;
|
|
29
|
+
'pisell2.text.shopping-cart.cancel': string;
|
|
30
|
+
'pisell2.text.shopping-cart.select.holder.modal.title': string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export default _default;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/shoppingCart/locales.ts
|
|
20
|
+
var locales_exports = {};
|
|
21
|
+
__export(locales_exports, {
|
|
22
|
+
default: () => locales_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(locales_exports);
|
|
25
|
+
var locales_default = {
|
|
26
|
+
"en": {
|
|
27
|
+
"pisell2.text.shopping-cart.item": (num) => `(${num} ${num > 1 ? "items" : "item"})`,
|
|
28
|
+
"pisell2.text.shopping-cart.clear.cart": "Clear cart",
|
|
29
|
+
"pisell2.text.shopping-cart.add.service": "Add items",
|
|
30
|
+
"pisell2.text.shopping-cart.add.more": "Add more",
|
|
31
|
+
"pisell2.text.shopping-cart.no.selected": "No items selected",
|
|
32
|
+
"pisell2.text.shopping-cart.confirm": "Confirm",
|
|
33
|
+
"pisell2.text.shopping-cart.cancel": "Cancel",
|
|
34
|
+
"pisell2.text.shopping-cart.select.holder.modal.title": "Item Assignment"
|
|
35
|
+
},
|
|
36
|
+
"zh-CN": {
|
|
37
|
+
"pisell2.text.shopping-cart.item": (num) => `(${num} 项)`,
|
|
38
|
+
"pisell2.text.shopping-cart.clear.cart": "清空购物车",
|
|
39
|
+
"pisell2.text.shopping-cart.add.service": "添加项目",
|
|
40
|
+
"pisell2.text.shopping-cart.add.more": "添加更多",
|
|
41
|
+
"pisell2.text.shopping-cart.no.selected": "未选择任何项目",
|
|
42
|
+
"pisell2.text.shopping-cart.confirm": "确定",
|
|
43
|
+
"pisell2.text.shopping-cart.cancel": "取消",
|
|
44
|
+
"pisell2.text.shopping-cart.select.holder.modal.title": "商品分配"
|
|
45
|
+
},
|
|
46
|
+
"zh-HK": {
|
|
47
|
+
"pisell2.text.shopping-cart.item": (num) => `(${num} 項)`,
|
|
48
|
+
"pisell2.text.shopping-cart.clear.cart": "清空購物車",
|
|
49
|
+
"pisell2.text.shopping-cart.add.service": "添加項目",
|
|
50
|
+
"pisell2.text.shopping-cart.add.more": "添加更多",
|
|
51
|
+
"pisell2.text.shopping-cart.no.selected": "未選擇任何項目",
|
|
52
|
+
"pisell2.text.shopping-cart.confirm": "確定",
|
|
53
|
+
"pisell2.text.shopping-cart.cancel": "取消",
|
|
54
|
+
"pisell2.text.shopping-cart.select.holder.modal.title": "商品分配"
|
|
55
|
+
}
|
|
56
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export declare const holder: {
|
|
2
|
+
key: number;
|
|
3
|
+
label: string;
|
|
4
|
+
tip: string;
|
|
5
|
+
img: string;
|
|
6
|
+
}[];
|
|
7
|
+
export declare const products: ({
|
|
8
|
+
id: number;
|
|
9
|
+
title: string;
|
|
10
|
+
from_id: number;
|
|
11
|
+
holder: string;
|
|
12
|
+
price: number;
|
|
13
|
+
total: number;
|
|
14
|
+
num: number;
|
|
15
|
+
origin_price: number;
|
|
16
|
+
symbol: string;
|
|
17
|
+
relation_form_name: string;
|
|
18
|
+
like_status: string;
|
|
19
|
+
_extend: {
|
|
20
|
+
start_time: string;
|
|
21
|
+
duration: number;
|
|
22
|
+
date: string;
|
|
23
|
+
like_status: string;
|
|
24
|
+
};
|
|
25
|
+
product_cover: string;
|
|
26
|
+
} | {
|
|
27
|
+
id: number;
|
|
28
|
+
title: string;
|
|
29
|
+
from_id: number;
|
|
30
|
+
holder: string;
|
|
31
|
+
price: number;
|
|
32
|
+
total: number;
|
|
33
|
+
num: number;
|
|
34
|
+
symbol: string;
|
|
35
|
+
origin_price?: undefined;
|
|
36
|
+
relation_form_name?: undefined;
|
|
37
|
+
like_status?: undefined;
|
|
38
|
+
_extend?: undefined;
|
|
39
|
+
product_cover?: undefined;
|
|
40
|
+
})[];
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/shoppingCart/mock.ts
|
|
20
|
+
var mock_exports = {};
|
|
21
|
+
__export(mock_exports, {
|
|
22
|
+
holder: () => holder,
|
|
23
|
+
products: () => products
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(mock_exports);
|
|
26
|
+
var holder = [
|
|
27
|
+
{
|
|
28
|
+
key: 1,
|
|
29
|
+
label: "旺旺",
|
|
30
|
+
tip: "french",
|
|
31
|
+
img: "https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
key: 2,
|
|
35
|
+
label: "咪咪",
|
|
36
|
+
tip: "french",
|
|
37
|
+
img: "https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg"
|
|
38
|
+
}
|
|
39
|
+
];
|
|
40
|
+
var products = [
|
|
41
|
+
{
|
|
42
|
+
id: 1,
|
|
43
|
+
title: "旺旺1",
|
|
44
|
+
from_id: 1,
|
|
45
|
+
holder: "holder1",
|
|
46
|
+
price: 4,
|
|
47
|
+
total: 5,
|
|
48
|
+
num: 2,
|
|
49
|
+
origin_price: 6,
|
|
50
|
+
symbol: "&",
|
|
51
|
+
relation_form_name: "Room1",
|
|
52
|
+
like_status: "like",
|
|
53
|
+
_extend: {
|
|
54
|
+
start_time: "2024-10-23 18:40:00",
|
|
55
|
+
duration: 120,
|
|
56
|
+
date: "2024-10-27 18:40:00",
|
|
57
|
+
like_status: "like"
|
|
58
|
+
},
|
|
59
|
+
product_cover: "https://file.mypisell.com/pisel/manual/janedeer/2024-2-8/25.png"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
id: 2,
|
|
63
|
+
title: "旺旺2",
|
|
64
|
+
from_id: 1,
|
|
65
|
+
holder: "Room2",
|
|
66
|
+
price: 4,
|
|
67
|
+
total: 4,
|
|
68
|
+
num: 2,
|
|
69
|
+
symbol: "&"
|
|
70
|
+
}
|
|
71
|
+
];
|
|
72
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
73
|
+
0 && (module.exports = {
|
|
74
|
+
holder,
|
|
75
|
+
products
|
|
76
|
+
});
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/shoppingCart/status.ts
|
|
30
|
+
var status_exports = {};
|
|
31
|
+
__export(status_exports, {
|
|
32
|
+
defaultData: () => defaultData
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(status_exports);
|
|
35
|
+
var import_utils = require("@pisell/utils");
|
|
36
|
+
var import_locales = __toESM(require("./locales"));
|
|
37
|
+
import_utils.locales.init(import_locales.default, localStorage.getItem("umi_locale") || "en");
|
|
38
|
+
var productDefault = {
|
|
39
|
+
hideAddBtn: false,
|
|
40
|
+
isShowNote: true,
|
|
41
|
+
isShowPackageNote: true,
|
|
42
|
+
holders: [],
|
|
43
|
+
products: [],
|
|
44
|
+
isEdit: false,
|
|
45
|
+
disabledEdit: false
|
|
46
|
+
};
|
|
47
|
+
var defaultData = {
|
|
48
|
+
isOpenGroup: true,
|
|
49
|
+
carts: [],
|
|
50
|
+
platform: "shop",
|
|
51
|
+
emptyText: import_utils.locales.getText("pisell2.text.shopping-cart.no.selected"),
|
|
52
|
+
activeKey: [],
|
|
53
|
+
defaultActiveKey: [],
|
|
54
|
+
className: "",
|
|
55
|
+
productParams: productDefault
|
|
56
|
+
};
|
|
57
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
58
|
+
0 && (module.exports = {
|
|
59
|
+
defaultData
|
|
60
|
+
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { CollapseProps } from 'antd';
|
|
2
|
+
export interface productProps {
|
|
3
|
+
hideAddBtn?: boolean;
|
|
4
|
+
isShowNote?: boolean;
|
|
5
|
+
isShowPackageNote?: boolean;
|
|
6
|
+
products?: any[];
|
|
7
|
+
holders?: any[];
|
|
8
|
+
isEdit?: boolean;
|
|
9
|
+
disabledEdit?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface shoppingCartProps {
|
|
12
|
+
isOpenGroup?: boolean;
|
|
13
|
+
carts?: any[];
|
|
14
|
+
platform?: 'shop' | 'h5';
|
|
15
|
+
emptyText?: string;
|
|
16
|
+
activeKey?: string[] | number[];
|
|
17
|
+
defaultActiveKey?: string[] | number[];
|
|
18
|
+
className?: string;
|
|
19
|
+
onCard?: (e: any) => void;
|
|
20
|
+
onChange?: (e: any) => void;
|
|
21
|
+
onAddProduct?: (e?: any) => void;
|
|
22
|
+
onActiveKey?: (e: any) => void;
|
|
23
|
+
isShowImage?: boolean;
|
|
24
|
+
isShowHolder?: boolean;
|
|
25
|
+
isShowDelete?: boolean;
|
|
26
|
+
collapseParams?: CollapseProps;
|
|
27
|
+
productParams?: productProps;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* @title: 商品卡片
|
|
31
|
+
* @description:
|
|
32
|
+
* @return {*}
|
|
33
|
+
* @Author: WangHan
|
|
34
|
+
* @Date: 2024-11-29 09:52
|
|
35
|
+
*/
|
|
36
|
+
export interface ProductProps {
|
|
37
|
+
id?: any;
|
|
38
|
+
lists: any[];
|
|
39
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
|
|
15
|
+
// src/components/shoppingCart/type.ts
|
|
16
|
+
var type_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(type_exports);
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @title: 格式化购物车列表
|
|
3
|
+
* @description:
|
|
4
|
+
* @param {any} state
|
|
5
|
+
* @return {*}
|
|
6
|
+
* @Author: WangHan
|
|
7
|
+
* @Date: 2024-11-28 16:52
|
|
8
|
+
*/
|
|
9
|
+
export declare const formatCartList: (state: any) => any;
|
|
10
|
+
/**
|
|
11
|
+
* @title: 是否是空页面
|
|
12
|
+
* @description:
|
|
13
|
+
* @param {any} state
|
|
14
|
+
* @return {*}
|
|
15
|
+
* @Author: WangHan
|
|
16
|
+
* @Date: 2024-11-28 16:47
|
|
17
|
+
*/
|
|
18
|
+
export declare const isEmptyStatus: (state: any) => boolean;
|
|
19
|
+
/**
|
|
20
|
+
* @title: 是否是商品列表页面
|
|
21
|
+
* @description:
|
|
22
|
+
* @param {any} state
|
|
23
|
+
* @return {*}
|
|
24
|
+
* @Author: WangHan
|
|
25
|
+
* @Date: 2024-11-28 17:23
|
|
26
|
+
*/
|
|
27
|
+
export declare const isProductList: (state: any) => boolean;
|
|
28
|
+
/**
|
|
29
|
+
* @title: 格式化数据最终结果
|
|
30
|
+
* @description:
|
|
31
|
+
* @param {any} state
|
|
32
|
+
* @return {*}
|
|
33
|
+
* @Author: WangHan
|
|
34
|
+
* @Date: 2024-11-28 18:35
|
|
35
|
+
*/
|
|
36
|
+
export declare const formatState: (state: any) => {
|
|
37
|
+
isEmpty: boolean;
|
|
38
|
+
isProductList: boolean;
|
|
39
|
+
carts: any;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* @title: 更新商品
|
|
43
|
+
* @description:
|
|
44
|
+
* @param {any} newState
|
|
45
|
+
* @param {any} state
|
|
46
|
+
* @return {*}
|
|
47
|
+
* @Author: WangHan
|
|
48
|
+
* @Date: 2024-11-28 22:30
|
|
49
|
+
*/
|
|
50
|
+
export declare const updateProduct: (state: any, newProducts: any[]) => {
|
|
51
|
+
products: any[];
|
|
52
|
+
carts: any;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* @title: 格式化服务
|
|
56
|
+
* @description:
|
|
57
|
+
* @param {any} service
|
|
58
|
+
* @param {number} id holder_id
|
|
59
|
+
* @return {*}
|
|
60
|
+
* @Author: WangHan
|
|
61
|
+
* @Date: 2024-12-09 22:47
|
|
62
|
+
*/
|
|
63
|
+
export declare const formatService: (service: any[], id: number) => any[];
|