@pisell/materials 2.2.34 → 2.2.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.
- 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/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +30 -30
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +23 -23
- package/es/components/Pagination/index.d.ts +1 -1
- package/es/components/cardPro/index.d.ts +4 -0
- package/es/components/cardPro/index.js +69 -0
- package/es/components/cardPro/index.less +55 -0
- package/es/components/collapse/index.d.ts +15 -0
- package/es/components/collapse/index.js +80 -0
- package/es/components/collapse/index.less +0 -0
- package/es/components/productCard/components/Action/index.d.ts +4 -0
- package/es/components/productCard/components/Action/index.js +21 -0
- package/es/components/productCard/components/Action/index.less +14 -0
- package/es/components/productCard/components/AmountFooter/index.d.ts +4 -0
- package/es/components/productCard/components/AmountFooter/index.js +38 -0
- package/es/components/productCard/components/AmountFooter/index.less +39 -0
- package/es/components/productCard/components/Divider/index.d.ts +4 -0
- package/es/components/productCard/components/Divider/index.js +11 -0
- package/es/components/productCard/components/Divider/index.less +13 -0
- package/es/components/productCard/components/Header/index.d.ts +4 -0
- package/es/components/productCard/components/Header/index.js +70 -0
- package/es/components/productCard/components/Header/index.less +63 -0
- package/es/components/productCard/components/Note/index.d.ts +4 -0
- package/es/components/productCard/components/Note/index.js +25 -0
- package/es/components/productCard/components/Note/index.less +20 -0
- package/es/components/productCard/components/Packages/components/collapsibleList/index.d.ts +10 -0
- package/es/components/productCard/components/Packages/components/collapsibleList/index.js +96 -0
- package/es/components/productCard/components/Packages/components/collapsibleList/index.less +53 -0
- package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +2 -0
- package/es/components/productCard/components/Packages/components/collapsibleList/utils.js +33 -0
- package/es/components/productCard/components/Packages/components/options/index.d.ts +4 -0
- package/es/components/productCard/components/Packages/components/options/index.js +23 -0
- package/es/components/productCard/components/Packages/components/options/index.less +29 -0
- package/es/components/productCard/components/Packages/index.d.ts +4 -0
- package/es/components/productCard/components/Packages/index.js +32 -0
- package/es/components/productCard/components/Packages/index.less +17 -0
- package/es/components/productCard/components/Packages/utils.d.ts +20 -0
- package/es/components/productCard/components/Packages/utils.js +40 -0
- package/es/components/productCard/components/Sales/index.d.ts +4 -0
- package/es/components/productCard/components/Sales/index.js +39 -0
- package/es/components/productCard/components/Sales/index.less +18 -0
- package/es/components/productCard/components/Time/components/Like/index.d.ts +9 -0
- package/es/components/productCard/components/Time/components/Like/index.js +26 -0
- package/es/components/productCard/components/Time/components/Like/index.less +6 -0
- package/es/components/productCard/components/Time/components/Like/like-heart.png +0 -0
- package/es/components/productCard/components/Time/components/Like/like-hide-heart.png +0 -0
- package/es/components/productCard/components/Time/index.d.ts +4 -0
- package/es/components/productCard/components/Time/index.js +44 -0
- package/es/components/productCard/components/Time/index.less +35 -0
- package/es/components/productCard/hooks/useOpenNote.d.ts +3 -0
- package/es/components/productCard/hooks/useOpenNote.js +65 -0
- package/es/components/productCard/index.d.ts +5 -0
- package/es/components/productCard/index.js +131 -0
- package/es/components/productCard/index.less +53 -0
- package/es/components/productCard/locales.d.ts +42 -0
- package/es/components/productCard/locales.js +47 -0
- package/es/components/productCard/status.d.ts +9 -0
- package/es/components/productCard/status.js +15 -0
- package/es/components/productCard/types.d.ts +17 -0
- package/es/components/productCard/types.js +1 -0
- package/es/components/productCard/utils.d.ts +162 -0
- package/es/components/productCard/utils.js +700 -0
- package/es/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
- package/es/components/table/Actions/component/ExportImport/utils/index.js +11 -0
- package/es/components/table/BasicTable/index.js +7 -1
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/index.d.ts +4 -2
- package/es/index.js +7 -2
- package/lib/components/Pagination/index.d.ts +1 -1
- package/lib/components/cardPro/index.d.ts +4 -0
- package/lib/components/cardPro/index.js +101 -0
- package/lib/components/cardPro/index.less +55 -0
- package/lib/components/collapse/index.d.ts +15 -0
- package/lib/components/collapse/index.js +83 -0
- package/lib/components/collapse/index.less +0 -0
- package/lib/components/productCard/components/Action/index.d.ts +4 -0
- package/lib/components/productCard/components/Action/index.js +55 -0
- package/lib/components/productCard/components/Action/index.less +14 -0
- package/lib/components/productCard/components/AmountFooter/index.d.ts +4 -0
- package/lib/components/productCard/components/AmountFooter/index.js +61 -0
- package/lib/components/productCard/components/AmountFooter/index.less +39 -0
- package/lib/components/productCard/components/Divider/index.d.ts +4 -0
- package/lib/components/productCard/components/Divider/index.js +50 -0
- package/lib/components/productCard/components/Divider/index.less +13 -0
- package/lib/components/productCard/components/Header/index.d.ts +4 -0
- package/lib/components/productCard/components/Header/index.js +82 -0
- package/lib/components/productCard/components/Header/index.less +63 -0
- package/lib/components/productCard/components/Note/index.d.ts +4 -0
- package/lib/components/productCard/components/Note/index.js +56 -0
- package/lib/components/productCard/components/Note/index.less +20 -0
- package/lib/components/productCard/components/Packages/components/collapsibleList/index.d.ts +10 -0
- package/lib/components/productCard/components/Packages/components/collapsibleList/index.js +93 -0
- package/lib/components/productCard/components/Packages/components/collapsibleList/index.less +53 -0
- package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +2 -0
- package/lib/components/productCard/components/Packages/components/collapsibleList/utils.js +52 -0
- package/lib/components/productCard/components/Packages/components/options/index.d.ts +4 -0
- package/lib/components/productCard/components/Packages/components/options/index.js +73 -0
- package/lib/components/productCard/components/Packages/components/options/index.less +29 -0
- package/lib/components/productCard/components/Packages/index.d.ts +4 -0
- package/lib/components/productCard/components/Packages/index.js +56 -0
- package/lib/components/productCard/components/Packages/index.less +17 -0
- package/lib/components/productCard/components/Packages/utils.d.ts +20 -0
- package/lib/components/productCard/components/Packages/utils.js +44 -0
- package/lib/components/productCard/components/Sales/index.d.ts +4 -0
- package/lib/components/productCard/components/Sales/index.js +61 -0
- package/lib/components/productCard/components/Sales/index.less +18 -0
- package/lib/components/productCard/components/Time/components/Like/index.d.ts +9 -0
- package/lib/components/productCard/components/Time/components/Like/index.js +64 -0
- package/lib/components/productCard/components/Time/components/Like/index.less +6 -0
- package/lib/components/productCard/components/Time/components/Like/like-heart.png +0 -0
- package/lib/components/productCard/components/Time/components/Like/like-hide-heart.png +0 -0
- package/lib/components/productCard/components/Time/index.d.ts +4 -0
- package/lib/components/productCard/components/Time/index.js +64 -0
- package/lib/components/productCard/components/Time/index.less +35 -0
- package/lib/components/productCard/hooks/useOpenNote.d.ts +3 -0
- package/lib/components/productCard/hooks/useOpenNote.js +83 -0
- package/lib/components/productCard/index.d.ts +5 -0
- package/lib/components/productCard/index.js +160 -0
- package/lib/components/productCard/index.less +53 -0
- package/lib/components/productCard/locales.d.ts +42 -0
- package/lib/components/productCard/locales.js +65 -0
- package/lib/components/productCard/status.d.ts +9 -0
- package/lib/components/productCard/status.js +36 -0
- package/lib/components/productCard/types.d.ts +17 -0
- package/lib/components/productCard/types.js +17 -0
- package/lib/components/productCard/utils.d.ts +162 -0
- package/lib/components/productCard/utils.js +613 -0
- package/lib/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
- package/lib/components/table/Actions/component/ExportImport/utils/index.js +31 -0
- package/lib/components/table/BasicTable/index.js +5 -1
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/index.d.ts +4 -2
- package/lib/index.js +38 -32
- package/lowcode/card-pro/meta.ts +338 -0
- package/lowcode/card-pro/snippe.ts +39 -0
- package/lowcode/collapse/meta.ts +85 -1
- package/lowcode/date-picker.range-picker/meta.ts +20 -0
- package/lowcode/product-card/meta.ts +92 -0
- package/lowcode/product-card/snippets.ts +23 -0
- package/lowcode/table/meta.ts +22 -0
- package/package.json +3 -3
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
4
|
+
'pisell2.product.card.discount.reason': string;
|
|
5
|
+
'pisell2.product.card.discount.note': string;
|
|
6
|
+
'pisell2.product.card.discount.add.note': string;
|
|
7
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
8
|
+
'pisell2.product.card.confirm': string;
|
|
9
|
+
'pisell2.product.card.cancel': string;
|
|
10
|
+
'pisell2.product.card.note.pla': string;
|
|
11
|
+
'pisell2.product.card.items.package': string;
|
|
12
|
+
'pisell2.product.card.view-all': string;
|
|
13
|
+
'pisell2.product.card.view-less': string;
|
|
14
|
+
};
|
|
15
|
+
'zh-CN': {
|
|
16
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
17
|
+
'pisell2.product.card.discount.reason': string;
|
|
18
|
+
'pisell2.product.card.discount.note': string;
|
|
19
|
+
'pisell2.product.card.discount.add.note': string;
|
|
20
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
21
|
+
'pisell2.product.card.confirm': string;
|
|
22
|
+
'pisell2.product.card.cancel': string;
|
|
23
|
+
'pisell2.product.card.note.pla': string;
|
|
24
|
+
'pisell2.product.card.items.package': string;
|
|
25
|
+
'pisell2.product.card.view-all': string;
|
|
26
|
+
'pisell2.product.card.view-less': string;
|
|
27
|
+
};
|
|
28
|
+
'zh-HK': {
|
|
29
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
30
|
+
'pisell2.product.card.discount.reason': string;
|
|
31
|
+
'pisell2.product.card.discount.note': string;
|
|
32
|
+
'pisell2.product.card.discount.add.note': string;
|
|
33
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
34
|
+
'pisell2.product.card.confirm': string;
|
|
35
|
+
'pisell2.product.card.cancel': string;
|
|
36
|
+
'pisell2.product.card.note.pla': string;
|
|
37
|
+
'pisell2.product.card.items.package': string;
|
|
38
|
+
'pisell2.product.card.view-all': string;
|
|
39
|
+
'pisell2.product.card.view-less': string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export default _default;
|
|
@@ -0,0 +1,65 @@
|
|
|
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/productCard/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.product.card.day": (val) => `${val > 1 ? "days" : "day"}`,
|
|
28
|
+
"pisell2.product.card.discount.reason": "Discount reason",
|
|
29
|
+
"pisell2.product.card.discount.note": "Note",
|
|
30
|
+
"pisell2.product.card.discount.add.note": "Add note",
|
|
31
|
+
"pisell2.product.card.discount.edit.note": "Edit note",
|
|
32
|
+
"pisell2.product.card.confirm": "Confirm",
|
|
33
|
+
"pisell2.product.card.cancel": "Cancel",
|
|
34
|
+
"pisell2.product.card.note.pla": "Please enter the note",
|
|
35
|
+
"pisell2.product.card.items.package": "Items in package",
|
|
36
|
+
"pisell2.product.card.view-all": "View all",
|
|
37
|
+
"pisell2.product.card.view-less": "View less"
|
|
38
|
+
},
|
|
39
|
+
"zh-CN": {
|
|
40
|
+
"pisell2.product.card.day": (val) => "天",
|
|
41
|
+
"pisell2.product.card.discount.reason": "折扣原因",
|
|
42
|
+
"pisell2.product.card.discount.note": "备注",
|
|
43
|
+
"pisell2.product.card.discount.add.note": "添加备注",
|
|
44
|
+
"pisell2.product.card.discount.edit.note": "编辑备注",
|
|
45
|
+
"pisell2.product.card.confirm": "确定",
|
|
46
|
+
"pisell2.product.card.cancel": "取消",
|
|
47
|
+
"pisell2.product.card.note.pla": "请输入备注",
|
|
48
|
+
"pisell2.product.card.items.package": "包含的商品",
|
|
49
|
+
"pisell2.product.card.view-all": "查看全部",
|
|
50
|
+
"pisell2.product.card.view-less": "收起"
|
|
51
|
+
},
|
|
52
|
+
"zh-HK": {
|
|
53
|
+
"pisell2.product.card.day": (val) => "天",
|
|
54
|
+
"pisell2.product.card.discount.reason": "折扣原因",
|
|
55
|
+
"pisell2.product.card.discount.note": "備註",
|
|
56
|
+
"pisell2.product.card.discount.add.note": "添加備註",
|
|
57
|
+
"pisell2.product.card.discount.edit.note": "編輯備註",
|
|
58
|
+
"pisell2.product.card.confirm": "確定",
|
|
59
|
+
"pisell2.product.card.cancel": "取消",
|
|
60
|
+
"pisell2.product.card.note.pla": "請輸入備註",
|
|
61
|
+
"pisell2.product.card.items.package": "包含的商品",
|
|
62
|
+
"pisell2.product.card.view-all": "查看全部",
|
|
63
|
+
"pisell2.product.card.view-less": "收起"
|
|
64
|
+
}
|
|
65
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
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/productCard/status.ts
|
|
20
|
+
var status_exports = {};
|
|
21
|
+
__export(status_exports, {
|
|
22
|
+
defaultValue: () => defaultValue
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(status_exports);
|
|
25
|
+
var defaultValue = {
|
|
26
|
+
dataSource: {},
|
|
27
|
+
isShowImage: true,
|
|
28
|
+
isShowHolder: true,
|
|
29
|
+
isShowNote: true,
|
|
30
|
+
isShowDelete: true,
|
|
31
|
+
isShowPackageNote: true
|
|
32
|
+
};
|
|
33
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
34
|
+
0 && (module.exports = {
|
|
35
|
+
defaultValue
|
|
36
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 排序总配置
|
|
3
|
+
*/
|
|
4
|
+
export declare type ProductCardTypes = {
|
|
5
|
+
dataSource: any;
|
|
6
|
+
isShowImage?: boolean;
|
|
7
|
+
isShowHolder?: boolean;
|
|
8
|
+
isShowNote?: boolean;
|
|
9
|
+
isShowPackageNote?: boolean;
|
|
10
|
+
isShowDelete?: boolean;
|
|
11
|
+
disabledEdit?: boolean;
|
|
12
|
+
onAction?: (val: any) => void;
|
|
13
|
+
onDelete?: (val: any) => void;
|
|
14
|
+
onNote?: (val: any) => void;
|
|
15
|
+
onLike?: (val: any) => void;
|
|
16
|
+
onCard?: (val: any) => void;
|
|
17
|
+
};
|
|
@@ -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/productCard/types.ts
|
|
16
|
+
var types_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(types_exports);
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
declare type RType = (url: string, data?: {} | undefined, config?: {} | undefined) => Promise<any>;
|
|
3
|
+
declare class Request {
|
|
4
|
+
private request;
|
|
5
|
+
constructor();
|
|
6
|
+
setRequest(val: any): void;
|
|
7
|
+
getRequest(): {
|
|
8
|
+
get: RType;
|
|
9
|
+
post: RType;
|
|
10
|
+
put: RType;
|
|
11
|
+
remove: RType;
|
|
12
|
+
custom: RType;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export declare const request: Request;
|
|
16
|
+
/**
|
|
17
|
+
* @title: 格式化持续时长用于展示
|
|
18
|
+
* @description:
|
|
19
|
+
* @param {number} service_times
|
|
20
|
+
* @return {*}
|
|
21
|
+
* @Author: zhiwei.Wang
|
|
22
|
+
* @Date: 2024-04-26 14:00
|
|
23
|
+
*/
|
|
24
|
+
export declare const getDiscountTime: (service_times: number) => string;
|
|
25
|
+
/**
|
|
26
|
+
* @title: 时间切片
|
|
27
|
+
* @description:
|
|
28
|
+
* @param {any} config
|
|
29
|
+
* @param {string} locale
|
|
30
|
+
* @return {*}
|
|
31
|
+
* @Author: zhiwei.Wang
|
|
32
|
+
* @Date: 2024-04-26 13:59
|
|
33
|
+
*/
|
|
34
|
+
export declare const sliceDayIntoFiveMinutes: (config: any, locale: string) => {
|
|
35
|
+
timeSlices: {
|
|
36
|
+
label: string;
|
|
37
|
+
value: string;
|
|
38
|
+
}[];
|
|
39
|
+
durationSlicesBasedOnTime: {
|
|
40
|
+
label: string;
|
|
41
|
+
value: number;
|
|
42
|
+
}[];
|
|
43
|
+
};
|
|
44
|
+
export declare const getNowTime: () => string;
|
|
45
|
+
export declare const isNowTime: (time: string) => boolean;
|
|
46
|
+
/**
|
|
47
|
+
* @title: 获取服务的开始时间, 如果是now 转换为当前的时间
|
|
48
|
+
* @description:
|
|
49
|
+
* @param {string} start_time
|
|
50
|
+
* @return {*}
|
|
51
|
+
* @Author: zhiwei.Wang
|
|
52
|
+
* @Date: 2024-04-26 14:03
|
|
53
|
+
*/
|
|
54
|
+
export declare const getServeStartTime: (start_time: string) => string;
|
|
55
|
+
/**
|
|
56
|
+
* @title: 格式化服务的 开始时间-结束时间-时长, 用于展示
|
|
57
|
+
* @description:
|
|
58
|
+
* @param {any} item
|
|
59
|
+
* @param {any} currentDate
|
|
60
|
+
* @return {*}
|
|
61
|
+
* @Author: zhiwei.Wang
|
|
62
|
+
* @Date: 2024-04-26 14:04
|
|
63
|
+
*/
|
|
64
|
+
export declare const getServiceTime: (item: any, currentDate: any) => string;
|
|
65
|
+
export declare const findNextSlice: ({ timeSlices, index, date, }: {
|
|
66
|
+
timeSlices: any[];
|
|
67
|
+
index?: number | undefined;
|
|
68
|
+
date?: string | undefined;
|
|
69
|
+
}) => any;
|
|
70
|
+
export declare const findNextDuration: (current: any, array: any, defaultValue?: any) => any;
|
|
71
|
+
export declare const formatProductListByCategory: (list: any, filterItem: any) => unknown[];
|
|
72
|
+
export declare const getResourceTimeIsUsable: (item: any, cacheItem: any) => any;
|
|
73
|
+
/**
|
|
74
|
+
* @title: 查找是否有可用的time
|
|
75
|
+
* @description:
|
|
76
|
+
* @param {any} resourceItem
|
|
77
|
+
* @return {*}
|
|
78
|
+
* @Author: zhiwei.Wang
|
|
79
|
+
* @Date: 2024-01-09 13:57
|
|
80
|
+
*/
|
|
81
|
+
export declare const formatTimes: (resourceItem: any, cacheItem: any) => any;
|
|
82
|
+
/**
|
|
83
|
+
* @title: 获取店铺的营业结束时间
|
|
84
|
+
* @description:
|
|
85
|
+
* @return {*}
|
|
86
|
+
* @Author: zhiwei.Wang
|
|
87
|
+
* @Date: 2024-02-23 10:00
|
|
88
|
+
*/
|
|
89
|
+
export declare const getShopOpeningHours: () => string;
|
|
90
|
+
/**
|
|
91
|
+
* @title: 对灵活时长进行处理
|
|
92
|
+
* @description:
|
|
93
|
+
* @return {*}
|
|
94
|
+
* @Author: zhiwei.Wang
|
|
95
|
+
* @Date: 2024-02-23 10:00
|
|
96
|
+
*/
|
|
97
|
+
export declare const flexibleObj: {
|
|
98
|
+
create: (num: number) => any;
|
|
99
|
+
getValue: (str: string | number) => number;
|
|
100
|
+
isFlexible: (str: string | number) => boolean;
|
|
101
|
+
add: (current: number | string, duration: number) => any;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* @title: 获取结束时间
|
|
105
|
+
* @description: 取 endDate | 店铺营业时间 最小的那一个
|
|
106
|
+
* @param {any} startDate
|
|
107
|
+
* @param {string} duration
|
|
108
|
+
* @param {any} endDate
|
|
109
|
+
* @return {*}
|
|
110
|
+
* @Author: zhiwei.Wang
|
|
111
|
+
* @Date: 2024-02-23 10:01
|
|
112
|
+
*/
|
|
113
|
+
export declare const getEndDate: (startDate: any, duration: string | number, endDate: any) => any;
|
|
114
|
+
export declare const getServiceTimes: (service: any) => {
|
|
115
|
+
startDate: dayjs.Dayjs;
|
|
116
|
+
endDate: dayjs.Dayjs;
|
|
117
|
+
};
|
|
118
|
+
export declare const getErrorList: (resource: any, cacheItem: any) => {
|
|
119
|
+
label: any;
|
|
120
|
+
type: string;
|
|
121
|
+
}[];
|
|
122
|
+
/**
|
|
123
|
+
* @title: 格式化资源, 添加自定义参数
|
|
124
|
+
* @description:
|
|
125
|
+
* @param {any} resourceItem
|
|
126
|
+
* @return {*}
|
|
127
|
+
* @Author: zhiwei.Wang
|
|
128
|
+
* @Date: 2024-01-09 13:40
|
|
129
|
+
*/
|
|
130
|
+
export declare const formatResource: (resourceItem: any, cacheItem?: any, formatLabel?: any) => any;
|
|
131
|
+
export declare const getLastServer: (list: any) => any;
|
|
132
|
+
export declare const getCacheParams: () => any;
|
|
133
|
+
export declare const deleteCacheParams: () => void;
|
|
134
|
+
/**
|
|
135
|
+
* @title: 创建一个服务商品
|
|
136
|
+
* @description:
|
|
137
|
+
* @param {any} state
|
|
138
|
+
* @param {any} item
|
|
139
|
+
* @return {*}
|
|
140
|
+
* @Author: zhiwei.Wang
|
|
141
|
+
* @Date: 2024-01-26 14:09
|
|
142
|
+
*/
|
|
143
|
+
export declare const getServerItemExtend: (state: any, cacheItem: any, timeObj: any) => any;
|
|
144
|
+
export declare const getProductTotalPrice: (item: any) => number;
|
|
145
|
+
/**
|
|
146
|
+
* @title: 判断 duration
|
|
147
|
+
* @description: 用于处理不同格式的duration
|
|
148
|
+
* @param {number} duration
|
|
149
|
+
* @return {*}
|
|
150
|
+
* @Author: zhiwei.Wang
|
|
151
|
+
* @Date: 2024-02-23 10:02
|
|
152
|
+
*/
|
|
153
|
+
export declare const getDuration: (duration: number | {
|
|
154
|
+
type: string;
|
|
155
|
+
value: number;
|
|
156
|
+
}) => number | {
|
|
157
|
+
type: string;
|
|
158
|
+
value: number;
|
|
159
|
+
} | "flexible";
|
|
160
|
+
export declare const isWalkIn: (customer_id?: number | string) => boolean;
|
|
161
|
+
export declare const getIsEdit: (state: any) => boolean;
|
|
162
|
+
export {};
|