@pisell/materials 2.2.52 → 2.2.54
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 +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 +14 -14
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +14 -14
- package/es/components/Pagination/index.d.ts +1 -1
- package/es/components/TimeResourceSelector/index.d.ts +21 -0
- package/es/components/appVersionControl/index.d.ts +1 -0
- package/es/components/collapse/index.d.ts +15 -0
- package/es/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -2
- package/es/components/dataSourceComponents/dataSourceMenu/Basic.js +13 -3
- package/es/components/dataSourceComponents/dataSourceMenu/index.d.ts +8 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/index.d.ts +11 -11
- package/es/components/drag-sort-tree/index.d.ts +1 -0
- package/es/components/page/index.d.ts +1 -0
- package/es/components/pisellAnchor/index.d.ts +1 -1
- package/es/components/pisellAnchor/index.js +109 -199
- package/es/components/pisellAnchor/index.less +3 -5
- package/es/components/pisellAvatar/index.js +2 -1
- package/es/components/pisellAvatar/index.less +2 -1
- package/es/components/pisellCard/index.d.ts +20 -0
- package/es/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
- package/es/components/pisellDropdown/index.d.ts +20 -0
- package/es/components/pisellHeaderProgressBar/index.d.ts +29 -0
- package/es/components/pisellImageCarousels/index.d.ts +18 -0
- package/es/components/pisellModal/components/MobileModal/index.less +4 -0
- package/es/components/pisellSectionHeaders/index.d.ts +21 -0
- package/es/components/pisellText/components/Amount/index.d.ts +20 -0
- package/es/components/productCard/components/Action/index.d.ts +4 -0
- package/es/components/productCard/components/AmountFooter/index.d.ts +4 -0
- package/es/components/productCard/components/Divider/index.d.ts +4 -0
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +4 -0
- package/es/components/productCard/components/Header/index.d.ts +4 -0
- package/es/components/productCard/components/MultiDay/index.d.ts +4 -0
- package/es/components/productCard/components/MultiDay/utils.d.ts +14 -0
- package/es/components/productCard/components/Note/index.d.ts +4 -0
- package/es/components/productCard/components/Packages/components/collapsibleList/index.d.ts +10 -0
- package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +2 -0
- package/es/components/productCard/components/Packages/components/options/index.d.ts +4 -0
- package/es/components/productCard/components/Packages/index.d.ts +4 -0
- package/es/components/productCard/components/Packages/utils.d.ts +20 -0
- package/es/components/productCard/components/Sales/index.d.ts +4 -0
- package/es/components/productCard/components/Time/components/Like/index.d.ts +9 -0
- package/es/components/productCard/components/Time/index.d.ts +4 -0
- package/es/components/productCard/locales.d.ts +3 -0
- package/es/components/productCard/locales.js +10 -1
- package/es/components/productCard/status.d.ts +32 -0
- package/es/components/productCard/types.d.ts +78 -0
- package/es/components/productCard/utils.js +8 -2
- package/es/components/section-footers/index.d.ts +9 -0
- package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
- package/es/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
- package/es/components/table/Actions/component/Group/index.d.ts +1 -0
- package/es/components/table/Actions/component/ViewMode/index.d.ts +1 -0
- package/es/components/table/Actions/index.d.ts +1 -0
- package/es/components/table/BasicTable/index.d.ts +1 -0
- package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
- package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
- package/es/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
- package/es/components/table/View/index.d.ts +1 -0
- package/es/components/virtual-keyboard/Number/index.d.ts +0 -1
- package/es/components/walletCard/Guest/index.d.ts +4 -0
- package/es/components/walletCard/index.d.ts +65 -0
- package/es/index.d.ts +9 -11
- package/es/index.js +10 -12
- package/lib/components/Pagination/index.d.ts +1 -1
- package/lib/components/TimeResourceSelector/index.d.ts +21 -0
- package/lib/components/appVersionControl/index.d.ts +1 -0
- package/lib/components/collapse/index.d.ts +15 -0
- package/lib/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -2
- package/lib/components/dataSourceComponents/dataSourceMenu/Basic.js +12 -3
- package/lib/components/dataSourceComponents/dataSourceMenu/index.d.ts +8 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +11 -11
- package/lib/components/drag-sort-tree/index.d.ts +1 -0
- package/lib/components/page/index.d.ts +1 -0
- package/lib/components/pisellAnchor/index.d.ts +1 -1
- package/lib/components/pisellAnchor/index.js +64 -131
- package/lib/components/pisellAnchor/index.less +3 -5
- package/lib/components/pisellAvatar/index.js +1 -1
- package/lib/components/pisellAvatar/index.less +2 -1
- package/lib/components/pisellCard/index.d.ts +20 -0
- package/lib/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
- package/lib/components/pisellDropdown/index.d.ts +20 -0
- package/lib/components/pisellEmpty/index.js +9 -1
- package/lib/components/pisellHeaderProgressBar/index.d.ts +29 -0
- package/lib/components/pisellImageCarousels/index.d.ts +18 -0
- package/lib/components/pisellModal/components/MobileModal/index.less +4 -0
- package/lib/components/pisellSectionHeaders/index.d.ts +21 -0
- package/lib/components/pisellText/components/Amount/index.d.ts +20 -0
- package/lib/components/productCard/components/Action/index.d.ts +4 -0
- package/lib/components/productCard/components/AmountFooter/index.d.ts +4 -0
- package/lib/components/productCard/components/Divider/index.d.ts +4 -0
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +4 -0
- package/lib/components/productCard/components/Header/index.d.ts +4 -0
- package/lib/components/productCard/components/MultiDay/index.d.ts +4 -0
- package/lib/components/productCard/components/MultiDay/utils.d.ts +14 -0
- package/lib/components/productCard/components/Note/index.d.ts +4 -0
- package/lib/components/productCard/components/Packages/components/collapsibleList/index.d.ts +10 -0
- package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +2 -0
- package/lib/components/productCard/components/Packages/components/options/index.d.ts +4 -0
- package/lib/components/productCard/components/Packages/index.d.ts +4 -0
- package/lib/components/productCard/components/Packages/utils.d.ts +20 -0
- package/lib/components/productCard/components/Sales/index.d.ts +4 -0
- package/lib/components/productCard/components/Time/components/Like/index.d.ts +9 -0
- package/lib/components/productCard/components/Time/index.d.ts +4 -0
- package/lib/components/productCard/locales.d.ts +3 -0
- package/lib/components/productCard/locales.js +4 -1
- package/lib/components/productCard/status.d.ts +32 -0
- package/lib/components/productCard/types.d.ts +78 -0
- package/lib/components/productCard/utils.js +6 -2
- package/lib/components/section-footers/index.d.ts +9 -0
- package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
- package/lib/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
- package/lib/components/table/Actions/component/Group/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ViewMode/index.d.ts +1 -0
- package/lib/components/table/Actions/index.d.ts +1 -0
- package/lib/components/table/BasicTable/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
- package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
- package/lib/components/table/View/index.d.ts +1 -0
- package/lib/components/virtual-keyboard/Number/index.d.ts +0 -1
- package/lib/components/walletCard/Guest/index.d.ts +4 -0
- package/lib/components/walletCard/index.d.ts +65 -0
- package/lib/index.d.ts +9 -11
- package/lib/index.js +9 -15
- package/lowcode/button-group/meta.ts +1 -4
- package/package.json +3 -3
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface InputItem {
|
|
2
|
+
start_date: string;
|
|
3
|
+
end_date: string;
|
|
4
|
+
total: number;
|
|
5
|
+
num: number;
|
|
6
|
+
}
|
|
7
|
+
interface OutputItem {
|
|
8
|
+
start_date: string;
|
|
9
|
+
end_date: string;
|
|
10
|
+
total: number;
|
|
11
|
+
num: number;
|
|
12
|
+
}
|
|
13
|
+
export declare function formatDateRanges(list: InputItem[]): OutputItem[];
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface CollapsibleListProps<T> {
|
|
4
|
+
list: T[];
|
|
5
|
+
renderItem: (item: T, index: number) => React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
}
|
|
9
|
+
declare const CollapsibleList: React.FC<CollapsibleListProps<any>>;
|
|
10
|
+
export default CollapsibleList;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @title: 金额是否是负
|
|
3
|
+
* @description:
|
|
4
|
+
* @param {string} type
|
|
5
|
+
* @return {*}
|
|
6
|
+
* @Author: WangHan
|
|
7
|
+
* @Date: 2024-11-22 10:01
|
|
8
|
+
*/
|
|
9
|
+
export declare const minusSign: (item: any, type?: string) => "" | "-";
|
|
10
|
+
/**
|
|
11
|
+
* @title: 金额格式化
|
|
12
|
+
* @description:
|
|
13
|
+
* @param {number} price
|
|
14
|
+
* @param {string} amountSymbol
|
|
15
|
+
* @param {number} digit
|
|
16
|
+
* @return {*}
|
|
17
|
+
* @Author: WangHan
|
|
18
|
+
* @Date: 2024-11-22 10:58
|
|
19
|
+
*/
|
|
20
|
+
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
en: {
|
|
3
3
|
'pisell2.product.card.day': (val: number) => string;
|
|
4
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
4
5
|
'pisell2.product.card.discount.reason': string;
|
|
5
6
|
'pisell2.product.card.discount.note': string;
|
|
6
7
|
'pisell2.product.card.discount.add.note': string;
|
|
@@ -14,6 +15,7 @@ declare const _default: {
|
|
|
14
15
|
};
|
|
15
16
|
'zh-CN': {
|
|
16
17
|
'pisell2.product.card.day': (val: number) => string;
|
|
18
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
17
19
|
'pisell2.product.card.discount.reason': string;
|
|
18
20
|
'pisell2.product.card.discount.note': string;
|
|
19
21
|
'pisell2.product.card.discount.add.note': string;
|
|
@@ -27,6 +29,7 @@ declare const _default: {
|
|
|
27
29
|
};
|
|
28
30
|
'zh-HK': {
|
|
29
31
|
'pisell2.product.card.day': (val: number) => string;
|
|
32
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
30
33
|
'pisell2.product.card.discount.reason': string;
|
|
31
34
|
'pisell2.product.card.discount.note': string;
|
|
32
35
|
'pisell2.product.card.discount.add.note': string;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
'en': {
|
|
3
3
|
'pisell2.product.card.day': function pisell2ProductCardDay(val) {
|
|
4
|
-
return "".concat(val > 1 ? 'days' : 'day');
|
|
4
|
+
return "".concat(val > 1 ? ' days' : ' day');
|
|
5
|
+
},
|
|
6
|
+
'pisell2.product.card.day.event': function pisell2ProductCardDayEvent(val) {
|
|
7
|
+
return "".concat(val > 1 ? ' events' : ' event');
|
|
5
8
|
},
|
|
6
9
|
'pisell2.product.card.discount.reason': 'Discount reason',
|
|
7
10
|
'pisell2.product.card.discount.note': 'Note',
|
|
@@ -18,6 +21,9 @@ export default {
|
|
|
18
21
|
'pisell2.product.card.day': function pisell2ProductCardDay(val) {
|
|
19
22
|
return '天';
|
|
20
23
|
},
|
|
24
|
+
'pisell2.product.card.day.event': function pisell2ProductCardDayEvent(val) {
|
|
25
|
+
return '个活动';
|
|
26
|
+
},
|
|
21
27
|
'pisell2.product.card.discount.reason': '折扣原因',
|
|
22
28
|
'pisell2.product.card.discount.note': '备注',
|
|
23
29
|
'pisell2.product.card.discount.add.note': '添加备注',
|
|
@@ -33,6 +39,9 @@ export default {
|
|
|
33
39
|
'pisell2.product.card.day': function pisell2ProductCardDay(val) {
|
|
34
40
|
return '天';
|
|
35
41
|
},
|
|
42
|
+
'pisell2.product.card.day.event': function pisell2ProductCardDayEvent(val) {
|
|
43
|
+
return '个活動';
|
|
44
|
+
},
|
|
36
45
|
'pisell2.product.card.discount.reason': '折扣原因',
|
|
37
46
|
'pisell2.product.card.discount.note': '備註',
|
|
38
47
|
'pisell2.product.card.discount.add.note': '添加備註',
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ProductCardTypes, bundleType, optionType, productType } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* @title: 套餐数据
|
|
4
|
+
* @description:
|
|
5
|
+
* @return {*}
|
|
6
|
+
* @Author: WangHan
|
|
7
|
+
* @Date: 2025-01-02 23:21
|
|
8
|
+
*/
|
|
9
|
+
export declare const defaultBundle: bundleType;
|
|
10
|
+
/**
|
|
11
|
+
* @description: 单规格
|
|
12
|
+
* @return {*}
|
|
13
|
+
* @Author: WangHan
|
|
14
|
+
* @Date: 2025-01-02 23:00
|
|
15
|
+
*/
|
|
16
|
+
export declare const defaultOption: optionType;
|
|
17
|
+
/**
|
|
18
|
+
* @title: 商品商品类型
|
|
19
|
+
* @description:
|
|
20
|
+
* @return {*}
|
|
21
|
+
* @Author: WangHan
|
|
22
|
+
* @Date: 2025-01-02 22:48
|
|
23
|
+
*/
|
|
24
|
+
export declare const defaultProduct: productType;
|
|
25
|
+
/**
|
|
26
|
+
* @title: 默认数据
|
|
27
|
+
* @description:
|
|
28
|
+
* @return {*}
|
|
29
|
+
* @Author: WangHan
|
|
30
|
+
* @Date: 2024-12-12 16:49
|
|
31
|
+
*/
|
|
32
|
+
export declare const defaultValue: ProductCardTypes;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export declare type bundleType = {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
num: number;
|
|
5
|
+
price: number;
|
|
6
|
+
total: number;
|
|
7
|
+
origin_total?: number;
|
|
8
|
+
price_type?: string;
|
|
9
|
+
options?: optionType[];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @description:
|
|
13
|
+
* @return {*}
|
|
14
|
+
* @Author: WangHan
|
|
15
|
+
* @Date: 2025-01-02 23:00
|
|
16
|
+
*/
|
|
17
|
+
export declare type optionType = {
|
|
18
|
+
id: number;
|
|
19
|
+
name: string;
|
|
20
|
+
num: number;
|
|
21
|
+
price: number;
|
|
22
|
+
total: number;
|
|
23
|
+
origin_total?: number;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* @title: 商品商品类型
|
|
27
|
+
* @description:
|
|
28
|
+
* @return {*}
|
|
29
|
+
* @Author: WangHan
|
|
30
|
+
* @Date: 2025-01-02 22:48
|
|
31
|
+
*/
|
|
32
|
+
export declare type productType = {
|
|
33
|
+
_id: string | number;
|
|
34
|
+
id: number;
|
|
35
|
+
name: string;
|
|
36
|
+
price: number;
|
|
37
|
+
total: number;
|
|
38
|
+
num: number;
|
|
39
|
+
origin_total?: number;
|
|
40
|
+
image?: string;
|
|
41
|
+
isShowNote?: boolean;
|
|
42
|
+
note?: string;
|
|
43
|
+
like_status?: string;
|
|
44
|
+
bundle?: bundleType[];
|
|
45
|
+
options?: optionType[];
|
|
46
|
+
isShowAction?: boolean;
|
|
47
|
+
actionText?: string;
|
|
48
|
+
errorMessage?: string;
|
|
49
|
+
product_option_string?: string;
|
|
50
|
+
discount_reason?: string;
|
|
51
|
+
relation_products?: any[];
|
|
52
|
+
resource_id?: string | number;
|
|
53
|
+
relation_form_name?: string;
|
|
54
|
+
holder_title?: string;
|
|
55
|
+
start_date?: string;
|
|
56
|
+
end_date?: string;
|
|
57
|
+
is_show_duration?: boolean;
|
|
58
|
+
is_show_week?: boolean;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* 排序总配置
|
|
62
|
+
*/
|
|
63
|
+
export declare type ProductCardTypes = {
|
|
64
|
+
dataSource: productType;
|
|
65
|
+
isShowImage?: boolean;
|
|
66
|
+
isShowHolder?: boolean;
|
|
67
|
+
isShowNote?: boolean;
|
|
68
|
+
isShowPackageNote?: boolean;
|
|
69
|
+
isShowDelete?: boolean;
|
|
70
|
+
disabledEdit?: boolean;
|
|
71
|
+
locale?: string;
|
|
72
|
+
symbol?: string;
|
|
73
|
+
onAction?: (val: any) => void;
|
|
74
|
+
onDelete?: (val: any) => void;
|
|
75
|
+
onNote?: (val: any) => void;
|
|
76
|
+
onLike?: (val: any) => void;
|
|
77
|
+
onCard?: (val: any) => void;
|
|
78
|
+
};
|
|
@@ -68,7 +68,7 @@ export var getServiceTime = function getServiceTime(item, currentDate) {
|
|
|
68
68
|
dayjs.locale(localeTypes[locale]);
|
|
69
69
|
var startDate = dayjs(item === null || item === void 0 ? void 0 : item.start_date);
|
|
70
70
|
var endDate = dayjs(item === null || item === void 0 ? void 0 : item.end_date);
|
|
71
|
-
var diffInDays = endDate.diff(startDate, 'day');
|
|
71
|
+
var diffInDays = (item === null || item === void 0 ? void 0 : item.custom_day_count) || endDate.diff(startDate, 'day');
|
|
72
72
|
var _format = isEn ? 'ddd, DD/MM/YYYY' : 'YYYY-MM-DD,ddd';
|
|
73
73
|
|
|
74
74
|
// 是否自定义格式
|
|
@@ -83,6 +83,12 @@ export var getServiceTime = function getServiceTime(item, currentDate) {
|
|
|
83
83
|
endDate = dayjs("".concat(item === null || item === void 0 ? void 0 : item.end_date, " ").concat(item === null || item === void 0 ? void 0 : item.end_time));
|
|
84
84
|
}
|
|
85
85
|
var date = "".concat(startDate.format(_format), " ~ ").concat(endDate.format(_format));
|
|
86
|
-
|
|
86
|
+
|
|
87
|
+
// 自定义文案
|
|
88
|
+
var text = locales.getText('pisell2.product.card.day')(diffInDays);
|
|
89
|
+
if (item !== null && item !== void 0 && item.custom_day_count) {
|
|
90
|
+
text = locales.getText('pisell2.product.card.day.event')(diffInDays);
|
|
91
|
+
}
|
|
92
|
+
var duration = "".concat(diffInDays).concat(text);
|
|
87
93
|
return "".concat(date, " (").concat(duration, ")");
|
|
88
94
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface SectionFooterProps {
|
|
3
|
+
left?: React.ReactNode;
|
|
4
|
+
middle?: React.ReactNode;
|
|
5
|
+
right?: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const SectionFooters: (props: SectionFooterProps) => JSX.Element;
|
|
9
|
+
export default SectionFooters;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
declare global {
|
|
4
|
+
namespace JSX {
|
|
5
|
+
interface IntrinsicElements {
|
|
6
|
+
[elemName: string]: any;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export interface WalletCardItem {
|
|
11
|
+
key: string;
|
|
12
|
+
label?: string;
|
|
13
|
+
hidden?: boolean;
|
|
14
|
+
value?: number;
|
|
15
|
+
}
|
|
16
|
+
export interface WalletCardProps {
|
|
17
|
+
/** 二维码弹窗适配平台 */
|
|
18
|
+
platform?: 'pc' | 'h5' | 'ipad';
|
|
19
|
+
/** 卡片主题 */
|
|
20
|
+
mode?: 'dark' | 'light';
|
|
21
|
+
/** 默认还是完整显示code */
|
|
22
|
+
cardStyle?: 'normal' | 'full';
|
|
23
|
+
/** 条形码还是二维码 */
|
|
24
|
+
codeType?: 'barCode' | 'orCode';
|
|
25
|
+
/** 二维码方向 */
|
|
26
|
+
codeDirection?: 'bottom' | 'top';
|
|
27
|
+
/** 自定义背景图 */
|
|
28
|
+
customBackgroundImage?: string;
|
|
29
|
+
/** 图标:可以是React组件或图片URL */
|
|
30
|
+
showIcon?: boolean;
|
|
31
|
+
showWalletName?: boolean;
|
|
32
|
+
iconImg?: string;
|
|
33
|
+
/** 钱包名称 */
|
|
34
|
+
walletName?: string;
|
|
35
|
+
/** 店铺名称 */
|
|
36
|
+
shopName?: string;
|
|
37
|
+
/** 是否显示店铺名称 */
|
|
38
|
+
showShopName?: boolean;
|
|
39
|
+
/** 卡号 */
|
|
40
|
+
cardNo?: string;
|
|
41
|
+
/** 是否显示卡号 */
|
|
42
|
+
showCardNo?: boolean;
|
|
43
|
+
/** 是否显示二维码 */
|
|
44
|
+
showCode?: boolean;
|
|
45
|
+
/** 点击二维码/条形码的回调 */
|
|
46
|
+
onCodeClick?: () => void;
|
|
47
|
+
/** 货币符号 */
|
|
48
|
+
symbol: string;
|
|
49
|
+
/** 点击卡片的回调 */
|
|
50
|
+
onClick?: () => void;
|
|
51
|
+
/** 自定义类名 */
|
|
52
|
+
className?: string;
|
|
53
|
+
items: WalletCardItem[];
|
|
54
|
+
/** 自定义样式 */
|
|
55
|
+
style?: React.CSSProperties;
|
|
56
|
+
title?: string;
|
|
57
|
+
subTitle?: string;
|
|
58
|
+
align?: 'left' | 'center';
|
|
59
|
+
buttonText?: string;
|
|
60
|
+
[key: string]: any;
|
|
61
|
+
/** 是否已登录 */
|
|
62
|
+
isLogin?: boolean;
|
|
63
|
+
}
|
|
64
|
+
declare const WalletCard: React.FC<WalletCardProps>;
|
|
65
|
+
export default WalletCard;
|
package/es/index.d.ts
CHANGED
|
@@ -117,17 +117,6 @@ export { default as Upload } from './components/upload';
|
|
|
117
117
|
export { default as VirtualKeyboard } from './components/virtual-keyboard';
|
|
118
118
|
export { default as VirtualKeyboardTime } from './components/virtual-keyboard/Time';
|
|
119
119
|
export { default as WalletCard } from './components/walletCard';
|
|
120
|
-
export { default as PisellPriceKeyboard } from './components/virtual-keyboard/Amount';
|
|
121
|
-
export { default as PisellNumberKeyboard } from './components/virtual-keyboard/Number';
|
|
122
|
-
export { default as ProductCard } from './components/productCard';
|
|
123
|
-
export { default as Collapse } from './components/collapse';
|
|
124
|
-
export { default as PisellCustomCheckboxGroup } from './components/pisellCustomCheckboxGroup';
|
|
125
|
-
export { default as PisellDropdown } from './components/pisellDropdown';
|
|
126
|
-
export { default as PisellSectionHeaders } from './components/pisellSectionHeaders';
|
|
127
|
-
export { default as PisellImageCarousels } from './components/pisellImageCarousels';
|
|
128
|
-
export { default as PisellHeaderProgressBar } from './components/pisellHeaderProgressBar';
|
|
129
|
-
export { default as PisellList01 } from './components/pisellList01';
|
|
130
|
-
export { default as SectionFooters } from './components/section-footers';
|
|
131
120
|
export { default as PublishVersionModal } from './components/versionModal';
|
|
132
121
|
export { default as IconSelect } from './components/iconSelect';
|
|
133
122
|
export { default as CustomSelect } from './components/customSelect';
|
|
@@ -138,3 +127,12 @@ export { default as PisellNavigationMenu } from './components/pisellNavigationMe
|
|
|
138
127
|
export { default as PisellAppCard } from './components/pisellAppCard';
|
|
139
128
|
export type { PisellAppCardProps } from './components/pisellAppCard/types';
|
|
140
129
|
export { default as BaseTranslation } from './components/dataSourceComponents/fields/Translation/BaseTranslation';
|
|
130
|
+
export { default as PisellCustomCheckboxGroup } from './components/pisellCustomCheckboxGroup';
|
|
131
|
+
export { default as PisellDropdown } from './components/pisellDropdown';
|
|
132
|
+
export { default as PisellSectionHeaders } from './components/pisellSectionHeaders';
|
|
133
|
+
export { default as PisellImageCarousels } from './components/pisellImageCarousels';
|
|
134
|
+
export { default as PisellHeaderProgressBar } from './components/pisellHeaderProgressBar';
|
|
135
|
+
export { default as PisellList01 } from './components/pisellList01';
|
|
136
|
+
export { default as SectionFooters } from './components/section-footers';
|
|
137
|
+
export { default as ProductCard } from './components/productCard';
|
|
138
|
+
export { default as Collapse } from './components/collapse';
|
package/es/index.js
CHANGED
|
@@ -118,17 +118,6 @@ export { default as Upload } from "./components/upload";
|
|
|
118
118
|
export { default as VirtualKeyboard } from "./components/virtual-keyboard";
|
|
119
119
|
export { default as VirtualKeyboardTime } from "./components/virtual-keyboard/Time";
|
|
120
120
|
export { default as WalletCard } from "./components/walletCard";
|
|
121
|
-
export { default as PisellPriceKeyboard } from "./components/virtual-keyboard/Amount";
|
|
122
|
-
export { default as PisellNumberKeyboard } from "./components/virtual-keyboard/Number";
|
|
123
|
-
export { default as ProductCard } from "./components/productCard";
|
|
124
|
-
export { default as Collapse } from "./components/collapse";
|
|
125
|
-
export { default as PisellCustomCheckboxGroup } from "./components/pisellCustomCheckboxGroup";
|
|
126
|
-
export { default as PisellDropdown } from "./components/pisellDropdown";
|
|
127
|
-
export { default as PisellSectionHeaders } from "./components/pisellSectionHeaders";
|
|
128
|
-
export { default as PisellImageCarousels } from "./components/pisellImageCarousels";
|
|
129
|
-
export { default as PisellHeaderProgressBar } from "./components/pisellHeaderProgressBar";
|
|
130
|
-
export { default as PisellList01 } from "./components/pisellList01";
|
|
131
|
-
export { default as SectionFooters } from "./components/section-footers";
|
|
132
121
|
export { default as PublishVersionModal } from "./components/versionModal";
|
|
133
122
|
export { default as IconSelect } from "./components/iconSelect";
|
|
134
123
|
export { default as CustomSelect } from "./components/customSelect";
|
|
@@ -137,4 +126,13 @@ export { default as Image } from "./components/image";
|
|
|
137
126
|
export { default as PisellDropSort } from "./components/pisellDropSort";
|
|
138
127
|
export { default as PisellNavigationMenu } from "./components/pisellNavigationMenu";
|
|
139
128
|
export { default as PisellAppCard } from "./components/pisellAppCard";
|
|
140
|
-
export { default as BaseTranslation } from "./components/dataSourceComponents/fields/Translation/BaseTranslation";
|
|
129
|
+
export { default as BaseTranslation } from "./components/dataSourceComponents/fields/Translation/BaseTranslation";
|
|
130
|
+
export { default as PisellCustomCheckboxGroup } from "./components/pisellCustomCheckboxGroup";
|
|
131
|
+
export { default as PisellDropdown } from "./components/pisellDropdown";
|
|
132
|
+
export { default as PisellSectionHeaders } from "./components/pisellSectionHeaders";
|
|
133
|
+
export { default as PisellImageCarousels } from "./components/pisellImageCarousels";
|
|
134
|
+
export { default as PisellHeaderProgressBar } from "./components/pisellHeaderProgressBar";
|
|
135
|
+
export { default as PisellList01 } from "./components/pisellList01";
|
|
136
|
+
export { default as SectionFooters } from "./components/section-footers";
|
|
137
|
+
export { default as ProductCard } from "./components/productCard";
|
|
138
|
+
export { default as Collapse } from "./components/collapse";
|
|
@@ -5,7 +5,7 @@ export declare const paginationConfig: {
|
|
|
5
5
|
className: string;
|
|
6
6
|
defaultCurrent: number;
|
|
7
7
|
showTotal: (total: number, range: [number, number]) => string;
|
|
8
|
-
itemRender: (page: number, type: "
|
|
8
|
+
itemRender: (page: number, type: "next" | "page" | "prev" | "jump-prev" | "jump-next", element: React.ReactNode) => React.ReactNode;
|
|
9
9
|
responsive: boolean;
|
|
10
10
|
size: string;
|
|
11
11
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface TimeSlot {
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
time: string;
|
|
7
|
+
remainingCount: number;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface TimeResourceSelectorProps {
|
|
11
|
+
timeSlots?: TimeSlot[];
|
|
12
|
+
multiple?: boolean;
|
|
13
|
+
showUnavailable?: boolean;
|
|
14
|
+
defaultExpanded?: boolean;
|
|
15
|
+
defaultSelectFirst?: boolean;
|
|
16
|
+
onChange?: (values: string | string[]) => void;
|
|
17
|
+
className?: string;
|
|
18
|
+
style?: React.CSSProperties;
|
|
19
|
+
}
|
|
20
|
+
declare const TimeResourceSelector: React.FC<TimeResourceSelectorProps>;
|
|
21
|
+
export default TimeResourceSelector;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface CollapseProps {
|
|
4
|
+
panelBackground?: string;
|
|
5
|
+
panelMarginBottom?: string | 0;
|
|
6
|
+
panelBorderRadius?: string | 0;
|
|
7
|
+
items: any[];
|
|
8
|
+
showHeader?: boolean;
|
|
9
|
+
headerColor?: string | '#101828';
|
|
10
|
+
headerFontSize?: string | 14;
|
|
11
|
+
expandIcon?: any;
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}
|
|
14
|
+
declare const Collapse: React.FC<CollapseProps>;
|
|
15
|
+
export default Collapse;
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PisellMenuProps } from '../../pisellMenu/types';
|
|
3
|
+
/**
|
|
4
|
+
* @title: 数据源表单组件
|
|
5
|
+
* @description: 基于数据源动态生成表单,支持编辑、查看、禁用三种模式
|
|
6
|
+
*/
|
|
7
|
+
declare const DataSourceMenu: React.ForwardRefExoticComponent<PisellMenuProps & React.RefAttributes<any>>;
|
|
8
|
+
export default DataSourceMenu;
|