@pisell/materials 1.0.879 → 1.0.881
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +3 -3
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +2 -2
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +6 -6
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +1 -0
- package/es/components/productCard/cartSkuCard/components/timeRange/index.less +1 -1
- package/es/components/productCard/cartSkuCard/index.js +2 -2
- package/es/components/productCard/cartSkuCard/index.less +4 -0
- package/es/components/productCard/locales.js +3 -3
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +2 -2
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +1 -0
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.less +1 -1
- package/lib/components/productCard/cartSkuCard/index.js +2 -2
- package/lib/components/productCard/cartSkuCard/index.less +4 -0
- package/lib/components/productCard/locales.js +3 -3
- package/package.json +1 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -32
- package/es/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +0 -5
- package/es/components/dataSourceComponents/fields/utils.d.ts +0 -3
- package/es/components/pisellGoodPassCard/index.d.ts +0 -50
- package/es/components/pisellToast/index.d.ts +0 -16
- package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -27
- package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
- package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -4
- package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
- package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
- package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -45
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -7
- package/es/components/productCard/cartSkuCard/locales.d.ts +0 -96
- package/es/components/productCard/components/AmountFooter/index.d.ts +0 -3
- package/es/components/productCard/components/Header/index.d.ts +0 -3
- package/es/components/productCard/components/Sales/index.d.ts +0 -3
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
- package/es/components/translation/index.d.ts +0 -14
- package/es/components/virtual-keyboard/index.d.ts +0 -25
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -32
- package/lib/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +0 -5
- package/lib/components/dataSourceComponents/fields/utils.d.ts +0 -3
- package/lib/components/pisellGoodPassCard/index.d.ts +0 -50
- package/lib/components/pisellToast/index.d.ts +0 -16
- package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -27
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
- package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -4
- package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
- package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
- package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -45
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -7
- package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -96
- package/lib/components/productCard/components/AmountFooter/index.d.ts +0 -3
- package/lib/components/productCard/components/Header/index.d.ts +0 -3
- package/lib/components/productCard/components/Sales/index.d.ts +0 -3
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
- package/lib/components/translation/index.d.ts +0 -14
- package/lib/components/virtual-keyboard/index.d.ts +0 -25
|
@@ -55,24 +55,24 @@ var BasicInfo = function BasicInfo(props) {
|
|
|
55
55
|
style: style || {}
|
|
56
56
|
}, renderNumTag(), renderImage(), !isShowImage || !image && !name ? /*#__PURE__*/React.createElement("div", {
|
|
57
57
|
style: {
|
|
58
|
-
width:
|
|
58
|
+
width: 20
|
|
59
59
|
}
|
|
60
60
|
}) : null, /*#__PURE__*/React.createElement("div", {
|
|
61
61
|
className: "product-info"
|
|
62
62
|
}, /*#__PURE__*/React.createElement("div", {
|
|
63
63
|
className: "product-name"
|
|
64
|
-
}, name),
|
|
65
|
-
dataSource: dataSource
|
|
66
|
-
}) : /*#__PURE__*/React.createElement("div", {
|
|
64
|
+
}, name), !holder_id || !(holder_id !== null && holder_id !== void 0 && holder_id.length) ? /*#__PURE__*/React.createElement("div", {
|
|
67
65
|
className: "product-price"
|
|
68
|
-
}, formatAmount(price, 2, symbol))
|
|
66
|
+
}, formatAmount(price, 2, symbol)) : /*#__PURE__*/React.createElement(Holders, {
|
|
67
|
+
dataSource: dataSource
|
|
68
|
+
})));
|
|
69
69
|
}
|
|
70
70
|
return /*#__PURE__*/React.createElement("div", {
|
|
71
71
|
className: "".concat(PREFIX, "__basic-info"),
|
|
72
72
|
style: style || {}
|
|
73
73
|
}, renderNumTag(), renderImage(), !isShowImage || !image && !name ? /*#__PURE__*/React.createElement("div", {
|
|
74
74
|
style: {
|
|
75
|
-
width:
|
|
75
|
+
width: 20
|
|
76
76
|
}
|
|
77
77
|
}) : null, /*#__PURE__*/React.createElement("div", {
|
|
78
78
|
className: "product-info"
|
|
@@ -133,7 +133,7 @@ var CartSkuCard = function CartSkuCard(props) {
|
|
|
133
133
|
}, /*#__PURE__*/React.createElement(Iconfont, {
|
|
134
134
|
type: "pisell2-trash-01"
|
|
135
135
|
})) : null, /*#__PURE__*/React.createElement(BasicInfo, {
|
|
136
|
-
isShowImage:
|
|
136
|
+
isShowImage: isShowImage,
|
|
137
137
|
dataSource: dataSource,
|
|
138
138
|
isMainProduct: true,
|
|
139
139
|
type: type
|
|
@@ -192,7 +192,7 @@ var CartSkuCard = function CartSkuCard(props) {
|
|
|
192
192
|
}, renderContent())) : /*#__PURE__*/React.createElement("div", {
|
|
193
193
|
className: classNames("".concat(PREFIX, "-wrapper"))
|
|
194
194
|
}, /*#__PURE__*/React.createElement("div", {
|
|
195
|
-
className: classNames(PREFIX, "".concat(PREFIX, "
|
|
195
|
+
className: classNames(PREFIX, "".concat(PREFIX, "-").concat(type)),
|
|
196
196
|
onClick: function onClick(e) {
|
|
197
197
|
e.preventDefault();
|
|
198
198
|
e.stopPropagation();
|
|
@@ -31,7 +31,7 @@ export default {
|
|
|
31
31
|
},
|
|
32
32
|
'pisell2.product.card.add.holder.modal.title.1': "Please Select",
|
|
33
33
|
'pisell2.product.card.hour.minute': function pisell2ProductCardHourMinute(hour, minute) {
|
|
34
|
-
if (hour
|
|
34
|
+
if (hour <= 0 && minute <= 0) return "".concat(0, "min");
|
|
35
35
|
return "".concat(hour > 0 ? "".concat(hour, "h") : '').concat(hour > 0 && minute > 0 ? ' ' : '').concat(minute > 0 ? "".concat(minute, "min") : '');
|
|
36
36
|
},
|
|
37
37
|
'pisell2.product.card.sales': 'Sales',
|
|
@@ -73,7 +73,7 @@ export default {
|
|
|
73
73
|
},
|
|
74
74
|
'pisell2.product.card.add.holder.modal.title.1': "\u8BF7\u9009\u62E9",
|
|
75
75
|
'pisell2.product.card.hour.minute': function pisell2ProductCardHourMinute(hour, minute) {
|
|
76
|
-
if (hour
|
|
76
|
+
if (hour <= 0 && minute <= 0) return "".concat(0, "\u5206\u949F");
|
|
77
77
|
return "".concat(hour > 0 ? "".concat(hour, "\u5C0F\u65F6") : '').concat(minute > 0 ? "".concat(minute, "\u5206\u949F") : '');
|
|
78
78
|
},
|
|
79
79
|
'pisell2.product.card.sales': '销售',
|
|
@@ -115,7 +115,7 @@ export default {
|
|
|
115
115
|
},
|
|
116
116
|
'pisell2.product.card.add.holder.modal.title.1': "\u8ACB\u9078\u64C7",
|
|
117
117
|
'pisell2.product.card.hour.minute': function pisell2ProductCardHourMinute(hour, minute) {
|
|
118
|
-
if (hour
|
|
118
|
+
if (hour <= 0 && minute <= 0) return "".concat(0, "\u5206\u9418");
|
|
119
119
|
return "".concat(hour > 0 ? "".concat(hour, "\u5C0F\u6642") : '').concat(minute > 0 ? "".concat(minute, "\u5206\u9418") : '');
|
|
120
120
|
},
|
|
121
121
|
'pisell2.product.card.sales': '銷售',
|
|
@@ -75,8 +75,8 @@ var BasicInfo = (props) => {
|
|
|
75
75
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: `product-cover-text` }, displayText);
|
|
76
76
|
};
|
|
77
77
|
if (type === "a5") {
|
|
78
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${import__.PREFIX}__basic-info`, style: style || {} }, renderNumTag(), renderImage(), !isShowImage || !image && !name ? /* @__PURE__ */ import_react.default.createElement("div", { style: { width:
|
|
78
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${import__.PREFIX}__basic-info`, style: style || {} }, renderNumTag(), renderImage(), !isShowImage || !image && !name ? /* @__PURE__ */ import_react.default.createElement("div", { style: { width: 20 } }) : null, /* @__PURE__ */ import_react.default.createElement("div", { className: `product-info` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `product-name` }, name), !holder_id || !(holder_id == null ? void 0 : holder_id.length) ? /* @__PURE__ */ import_react.default.createElement("div", { className: `product-price` }, (0, import_utils.formatAmount)(price, 2, symbol)) : /* @__PURE__ */ import_react.default.createElement(import_holders.default, { dataSource })));
|
|
79
79
|
}
|
|
80
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${import__.PREFIX}__basic-info`, style: style || {} }, renderNumTag(), renderImage(), !isShowImage || !image && !name ? /* @__PURE__ */ import_react.default.createElement("div", { style: { width:
|
|
80
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${import__.PREFIX}__basic-info`, style: style || {} }, renderNumTag(), renderImage(), !isShowImage || !image && !name ? /* @__PURE__ */ import_react.default.createElement("div", { style: { width: 20 } }) : null, /* @__PURE__ */ import_react.default.createElement("div", { className: `product-info` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `product-name` }, name), hasSpecs ? /* @__PURE__ */ import_react.default.createElement(import_specs.default, { dataSource }) : /* @__PURE__ */ import_react.default.createElement("div", { className: `product-price` }, (0, import_utils.formatAmount)(price, 2, symbol))), /* @__PURE__ */ import_react.default.createElement("div", { className: `product-amount` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `total-amont` }, (0, import_utils.formatAmount)(total * num, 2, symbol)), origin_total && Number(total) !== Number(origin_total) ? /* @__PURE__ */ import_react.default.createElement("div", { className: `origin-amount` }, (0, import_utils.formatAmount)(origin_total * num, 2, symbol)) : null));
|
|
81
81
|
};
|
|
82
82
|
var basicInfo_default = BasicInfo;
|
|
@@ -161,7 +161,7 @@ var CartSkuCard = (props) => {
|
|
|
161
161
|
) : null, /* @__PURE__ */ import_react.default.createElement(
|
|
162
162
|
import_basicInfo.default,
|
|
163
163
|
{
|
|
164
|
-
isShowImage
|
|
164
|
+
isShowImage,
|
|
165
165
|
dataSource,
|
|
166
166
|
isMainProduct: true,
|
|
167
167
|
type
|
|
@@ -222,7 +222,7 @@ var CartSkuCard = (props) => {
|
|
|
222
222
|
) : /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)(`${PREFIX}-wrapper`) }, /* @__PURE__ */ import_react.default.createElement(
|
|
223
223
|
"div",
|
|
224
224
|
{
|
|
225
|
-
className: (0, import_classnames.default)(PREFIX, `${PREFIX}
|
|
225
|
+
className: (0, import_classnames.default)(PREFIX, `${PREFIX}-${type}`),
|
|
226
226
|
onClick: (e) => {
|
|
227
227
|
e.preventDefault();
|
|
228
228
|
e.stopPropagation();
|
|
@@ -43,7 +43,7 @@ var locales_default = {
|
|
|
43
43
|
"pisell2.product.card.add.holder.placeholder.multiple": (num, val) => `Please Select ${num} ${val || ""}`,
|
|
44
44
|
"pisell2.product.card.add.holder.modal.title.1": `Please Select`,
|
|
45
45
|
"pisell2.product.card.hour.minute": (hour, minute) => {
|
|
46
|
-
if (hour
|
|
46
|
+
if (hour <= 0 && minute <= 0) return `${0}min`;
|
|
47
47
|
return `${hour > 0 ? `${hour}h` : ""}${hour > 0 && minute > 0 ? " " : ""}${minute > 0 ? `${minute}min` : ""}`;
|
|
48
48
|
},
|
|
49
49
|
"pisell2.product.card.sales": "Sales",
|
|
@@ -73,7 +73,7 @@ var locales_default = {
|
|
|
73
73
|
"pisell2.product.card.add.holder.placeholder.multiple": (num, val) => `请选择${num}${val || ""}`,
|
|
74
74
|
"pisell2.product.card.add.holder.modal.title.1": `请选择`,
|
|
75
75
|
"pisell2.product.card.hour.minute": (hour, minute) => {
|
|
76
|
-
if (hour
|
|
76
|
+
if (hour <= 0 && minute <= 0) return `${0}分钟`;
|
|
77
77
|
return `${hour > 0 ? `${hour}小时` : ""}${minute > 0 ? `${minute}分钟` : ""}`;
|
|
78
78
|
},
|
|
79
79
|
"pisell2.product.card.sales": "销售",
|
|
@@ -103,7 +103,7 @@ var locales_default = {
|
|
|
103
103
|
"pisell2.product.card.add.holder.placeholder.multiple": (num, val) => `請選擇${num}${val || ""}`,
|
|
104
104
|
"pisell2.product.card.add.holder.modal.title.1": `請選擇`,
|
|
105
105
|
"pisell2.product.card.hour.minute": (hour, minute) => {
|
|
106
|
-
if (hour
|
|
106
|
+
if (hour <= 0 && minute <= 0) return `${0}分鐘`;
|
|
107
107
|
return `${hour > 0 ? `${hour}小時` : ""}${minute > 0 ? `${minute}分鐘` : ""}`;
|
|
108
108
|
},
|
|
109
109
|
"pisell2.product.card.sales": "銷售",
|
package/package.json
CHANGED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { DataSourceTableProps } from '../type';
|
|
2
|
-
declare type Params = {
|
|
3
|
-
pagination?: {
|
|
4
|
-
page: number;
|
|
5
|
-
size: number;
|
|
6
|
-
};
|
|
7
|
-
order_by?: string;
|
|
8
|
-
tabs?: {
|
|
9
|
-
name: string;
|
|
10
|
-
filterBy: Record<string, any>;
|
|
11
|
-
sortBy: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
declare const useTableQuery: (props: DataSourceTableProps) => {
|
|
15
|
-
queryPageConfig: {
|
|
16
|
-
page: number;
|
|
17
|
-
pageSize: number;
|
|
18
|
-
filter: Record<string, any>;
|
|
19
|
-
sort: string;
|
|
20
|
-
};
|
|
21
|
-
setQueryPageConfig: import("react").Dispatch<import("react").SetStateAction<{
|
|
22
|
-
page: number;
|
|
23
|
-
pageSize: number;
|
|
24
|
-
filter: Record<string, any>;
|
|
25
|
-
sort: string;
|
|
26
|
-
}>>;
|
|
27
|
-
handleValuesChange: (params: Params, allParams: Params) => void;
|
|
28
|
-
refreshData: () => void;
|
|
29
|
-
handleFilterChange: (changedFields: any, allFields: any) => void;
|
|
30
|
-
refreshCurrentPage: () => void;
|
|
31
|
-
};
|
|
32
|
-
export default useTableQuery;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface ApplicableProductDetails {
|
|
4
|
-
amount: string;
|
|
5
|
-
type: string;
|
|
6
|
-
resource_id: number;
|
|
7
|
-
title: string;
|
|
8
|
-
original_amount: string;
|
|
9
|
-
}
|
|
10
|
-
interface Discount {
|
|
11
|
-
id: number;
|
|
12
|
-
product_name: string;
|
|
13
|
-
encoded: string;
|
|
14
|
-
code: string;
|
|
15
|
-
tag: string;
|
|
16
|
-
expire_time?: string;
|
|
17
|
-
product_id: number;
|
|
18
|
-
relation_type: string;
|
|
19
|
-
par_value: string;
|
|
20
|
-
used_par_value: string;
|
|
21
|
-
limit_status: string;
|
|
22
|
-
limited_relation_product_data: any;
|
|
23
|
-
balance: string;
|
|
24
|
-
format_title: any;
|
|
25
|
-
product: any;
|
|
26
|
-
savedAmount: number;
|
|
27
|
-
isDisabled: boolean;
|
|
28
|
-
isSelected?: boolean;
|
|
29
|
-
isAvailable?: boolean;
|
|
30
|
-
isUsed?: boolean;
|
|
31
|
-
applicableProductIds?: number[];
|
|
32
|
-
applicableProductDetails: ApplicableProductDetails[];
|
|
33
|
-
appliedProductDetails: any[];
|
|
34
|
-
}
|
|
35
|
-
export interface PisellGoodPassCardProps {
|
|
36
|
-
/**数据源 */
|
|
37
|
-
dataSource: Array<Discount>;
|
|
38
|
-
/**事件 */
|
|
39
|
-
onChange?: (current: {
|
|
40
|
-
id: string | number;
|
|
41
|
-
isSelected: boolean;
|
|
42
|
-
}) => void;
|
|
43
|
-
/**样式 */
|
|
44
|
-
style: React.CSSProperties;
|
|
45
|
-
/**快捷展示排序 */
|
|
46
|
-
mixedSort?: (val: Discount[]) => Discount[];
|
|
47
|
-
isInModal: boolean;
|
|
48
|
-
}
|
|
49
|
-
declare const index: (props: PisellGoodPassCardProps) => JSX.Element;
|
|
50
|
-
export default index;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface PisellToastProps {
|
|
4
|
-
/** 提示内容 */
|
|
5
|
-
content: React.ReactNode;
|
|
6
|
-
/** 自动关闭的延时,单位秒。设为 0 时不自动关闭 */
|
|
7
|
-
duration?: number;
|
|
8
|
-
/** 是否展示action */
|
|
9
|
-
showAction?: boolean;
|
|
10
|
-
/** action文案 */
|
|
11
|
-
actionText?: string;
|
|
12
|
-
/** 关闭时触发的回调函数 */
|
|
13
|
-
onClose?: () => void;
|
|
14
|
-
}
|
|
15
|
-
declare const PisellToast: (props: PisellToastProps) => void;
|
|
16
|
-
export default PisellToast;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface IProps {
|
|
4
|
-
isShowImage?: boolean;
|
|
5
|
-
dataSource: {
|
|
6
|
-
image?: string;
|
|
7
|
-
bundle?: any[];
|
|
8
|
-
options?: any[];
|
|
9
|
-
product_option_string?: string;
|
|
10
|
-
name?: string;
|
|
11
|
-
symbol?: string;
|
|
12
|
-
price?: string | number;
|
|
13
|
-
total?: number;
|
|
14
|
-
origin_total?: number;
|
|
15
|
-
num?: number;
|
|
16
|
-
holder_id?: any;
|
|
17
|
-
};
|
|
18
|
-
style?: React.CSSProperties;
|
|
19
|
-
/** 作为主商品卡片展示
|
|
20
|
-
* 1. 影响商品数量 tag 的位置
|
|
21
|
-
* 2. isMain 且 type 为 a5,展示holder
|
|
22
|
-
*/
|
|
23
|
-
isMainProduct?: boolean;
|
|
24
|
-
type?: 'a2' | 'a5';
|
|
25
|
-
}
|
|
26
|
-
declare const BasicInfo: (props: IProps) => JSX.Element;
|
|
27
|
-
export default BasicInfo;
|
|
@@ -1,20 +0,0 @@
|
|
|
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) => any;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import './index.less';
|
|
2
|
-
interface IProps {
|
|
3
|
-
hideDivider?: boolean;
|
|
4
|
-
dataSource: {
|
|
5
|
-
symbol?: string;
|
|
6
|
-
relation_products?: any[];
|
|
7
|
-
bundle?: any[];
|
|
8
|
-
};
|
|
9
|
-
isShowImage?: boolean;
|
|
10
|
-
}
|
|
11
|
-
declare const Sales: ({ hideDivider, dataSource, isShowImage }: IProps) => JSX.Element | null;
|
|
12
|
-
export default Sales;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
declare type NativeProps<S extends string = never> = {
|
|
4
|
-
className?: string;
|
|
5
|
-
style?: React.CSSProperties & Partial<Record<S, string>>;
|
|
6
|
-
};
|
|
7
|
-
declare type PropagationEvent = 'click';
|
|
8
|
-
import './index.less';
|
|
9
|
-
declare type SideType = 'left' | 'right';
|
|
10
|
-
export declare type SwipeActionRef = {
|
|
11
|
-
close: () => void;
|
|
12
|
-
show: (side?: SideType) => void;
|
|
13
|
-
};
|
|
14
|
-
declare type ActionColor = 'light' | 'weak' | 'primary' | 'success' | 'warning' | 'danger';
|
|
15
|
-
export declare type Action = {
|
|
16
|
-
key: string | number;
|
|
17
|
-
text: ReactNode;
|
|
18
|
-
color?: ActionColor | string;
|
|
19
|
-
onClick?: (e: React.MouseEvent) => void;
|
|
20
|
-
};
|
|
21
|
-
export declare type SwipeActionProps = {
|
|
22
|
-
rightActions?: Action[];
|
|
23
|
-
leftActions?: Action[];
|
|
24
|
-
onAction?: (action: Action, e: React.MouseEvent) => void;
|
|
25
|
-
closeOnTouchOutside?: boolean;
|
|
26
|
-
closeOnAction?: boolean;
|
|
27
|
-
children: ReactNode;
|
|
28
|
-
stopPropagation?: PropagationEvent[];
|
|
29
|
-
onActionsReveal?: (side: SideType) => void;
|
|
30
|
-
onClose?: () => void;
|
|
31
|
-
escapeDom?: string;
|
|
32
|
-
} & NativeProps<'--background'>;
|
|
33
|
-
export declare const SwipeAction: React.ForwardRefExoticComponent<{
|
|
34
|
-
rightActions?: Action[] | undefined;
|
|
35
|
-
leftActions?: Action[] | undefined;
|
|
36
|
-
onAction?: ((action: Action, e: React.MouseEvent) => void) | undefined;
|
|
37
|
-
closeOnTouchOutside?: boolean | undefined;
|
|
38
|
-
closeOnAction?: boolean | undefined;
|
|
39
|
-
children: ReactNode;
|
|
40
|
-
stopPropagation?: "click"[] | undefined;
|
|
41
|
-
onActionsReveal?: ((side: SideType) => void) | undefined;
|
|
42
|
-
onClose?: (() => void) | undefined;
|
|
43
|
-
escapeDom?: string | undefined;
|
|
44
|
-
} & NativeProps<"--background"> & React.RefAttributes<SwipeActionRef>>;
|
|
45
|
-
export {};
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
en: {
|
|
3
|
-
'pisell2.product.card.discount.reason': string;
|
|
4
|
-
'pisell2.cart.sku-card.more': string;
|
|
5
|
-
'pisell2.cart.sku-card.packages.title': string;
|
|
6
|
-
'pisell2.cart.sku-card.sales.title': string;
|
|
7
|
-
'pisell2.cart.sku-card.actions.delete': string;
|
|
8
|
-
'pisell2.product.card.day': (val: number) => string;
|
|
9
|
-
'pisell2.product.card.day.event': (val: number) => string;
|
|
10
|
-
'pisell2.product.card.minute': (val: number) => string;
|
|
11
|
-
'pisell2.product.card.discount.note': string;
|
|
12
|
-
'pisell2.product.card.edit': string;
|
|
13
|
-
'pisell2.product.card.discount.add.note': string;
|
|
14
|
-
'pisell2.product.card.discount.edit.note': string;
|
|
15
|
-
'pisell2.product.card.confirm': string;
|
|
16
|
-
'pisell2.product.card.cancel': string;
|
|
17
|
-
'pisell2.product.card.note.pla': string;
|
|
18
|
-
'pisell2.product.card.items.package': string;
|
|
19
|
-
'pisell2.product.card.view-all': string;
|
|
20
|
-
'pisell2.product.card.view-less': string;
|
|
21
|
-
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
22
|
-
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
23
|
-
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
24
|
-
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
25
|
-
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
26
|
-
'pisell2.product.card.sales': string;
|
|
27
|
-
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
28
|
-
'pisell2.product.card.add.holder.modal.clear': string;
|
|
29
|
-
'pisell2.product.card.add.holder.modal.apply': string;
|
|
30
|
-
'pisell2.product.card.add.holder.modal.add': string;
|
|
31
|
-
'pisell2.product.card.closing-soon.warning': string;
|
|
32
|
-
};
|
|
33
|
-
'zh-CN': {
|
|
34
|
-
'pisell2.product.card.discount.reason': string;
|
|
35
|
-
'pisell2.cart.sku-card.more': string;
|
|
36
|
-
'pisell2.cart.sku-card.packages.title': string;
|
|
37
|
-
'pisell2.cart.sku-card.sales.title': string;
|
|
38
|
-
'pisell2.cart.sku-card.actions.delete': string;
|
|
39
|
-
'pisell2.product.card.edit': string;
|
|
40
|
-
'pisell2.product.card.day': (val: number) => string;
|
|
41
|
-
'pisell2.product.card.day.event': (val: number) => string;
|
|
42
|
-
'pisell2.product.card.minute': (val: number) => string;
|
|
43
|
-
'pisell2.product.card.discount.note': string;
|
|
44
|
-
'pisell2.product.card.discount.add.note': string;
|
|
45
|
-
'pisell2.product.card.discount.edit.note': string;
|
|
46
|
-
'pisell2.product.card.confirm': string;
|
|
47
|
-
'pisell2.product.card.cancel': string;
|
|
48
|
-
'pisell2.product.card.note.pla': string;
|
|
49
|
-
'pisell2.product.card.items.package': string;
|
|
50
|
-
'pisell2.product.card.view-all': string;
|
|
51
|
-
'pisell2.product.card.view-less': string;
|
|
52
|
-
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
53
|
-
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
54
|
-
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
55
|
-
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
56
|
-
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
57
|
-
'pisell2.product.card.sales': string;
|
|
58
|
-
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
59
|
-
'pisell2.product.card.add.holder.modal.clear': string;
|
|
60
|
-
'pisell2.product.card.add.holder.modal.apply': string;
|
|
61
|
-
'pisell2.product.card.add.holder.modal.add': string;
|
|
62
|
-
'pisell2.product.card.closing-soon.warning': string;
|
|
63
|
-
};
|
|
64
|
-
'zh-HK': {
|
|
65
|
-
'pisell2.product.card.discount.reason': string;
|
|
66
|
-
'pisell2.cart.sku-card.more': string;
|
|
67
|
-
'pisell2.cart.sku-card.packages.title': string;
|
|
68
|
-
'pisell2.cart.sku-card.sales.title': string;
|
|
69
|
-
'pisell2.cart.sku-card.actions.delete': string;
|
|
70
|
-
'pisell2.product.card.edit': string;
|
|
71
|
-
'pisell2.product.card.day': (val: number) => string;
|
|
72
|
-
'pisell2.product.card.day.event': (val: number) => string;
|
|
73
|
-
'pisell2.product.card.minute': (val: number) => string;
|
|
74
|
-
'pisell2.product.card.discount.note': string;
|
|
75
|
-
'pisell2.product.card.discount.add.note': string;
|
|
76
|
-
'pisell2.product.card.discount.edit.note': string;
|
|
77
|
-
'pisell2.product.card.confirm': string;
|
|
78
|
-
'pisell2.product.card.cancel': string;
|
|
79
|
-
'pisell2.product.card.note.pla': string;
|
|
80
|
-
'pisell2.product.card.items.package': string;
|
|
81
|
-
'pisell2.product.card.view-all': string;
|
|
82
|
-
'pisell2.product.card.view-less': string;
|
|
83
|
-
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
84
|
-
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
85
|
-
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
86
|
-
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
87
|
-
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
88
|
-
'pisell2.product.card.sales': string;
|
|
89
|
-
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
90
|
-
'pisell2.product.card.add.holder.modal.clear': string;
|
|
91
|
-
'pisell2.product.card.add.holder.modal.apply': string;
|
|
92
|
-
'pisell2.product.card.add.holder.modal.add': string;
|
|
93
|
-
'pisell2.product.card.closing-soon.warning': string;
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import './index.less';
|
|
2
|
-
interface SelectHolderModalProps {
|
|
3
|
-
visible: boolean;
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
onConfirm: (value: any) => void;
|
|
6
|
-
lists: any[];
|
|
7
|
-
value: any[];
|
|
8
|
-
holderMaxCount: number;
|
|
9
|
-
addHolderButtonText: string;
|
|
10
|
-
onAdd: () => void;
|
|
11
|
-
}
|
|
12
|
-
declare const SelectHolderModal: (props: SelectHolderModalProps) => JSX.Element;
|
|
13
|
-
export default SelectHolderModal;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
declare type Value = {
|
|
4
|
-
en: string;
|
|
5
|
-
'zh-CN': string;
|
|
6
|
-
'zh-HK': string;
|
|
7
|
-
};
|
|
8
|
-
interface TranslationProps {
|
|
9
|
-
value: Value;
|
|
10
|
-
onChange: (value: Value) => void;
|
|
11
|
-
maxLength?: number;
|
|
12
|
-
}
|
|
13
|
-
declare const Translation: React.FC<TranslationProps>;
|
|
14
|
-
export default Translation;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { KeyboardProps } from "./Keyboard";
|
|
3
|
-
import { VirtualKeyInputProps } from "./VirtualKeyInput";
|
|
4
|
-
import "./index.less";
|
|
5
|
-
interface VirtualKeyboardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
-
keyboardProps?: KeyboardProps;
|
|
7
|
-
virtualKeyInputProps?: VirtualKeyInputProps;
|
|
8
|
-
rightPanel?: React.ReactNode;
|
|
9
|
-
style?: React.CSSProperties;
|
|
10
|
-
onChange?: (value?: any) => void;
|
|
11
|
-
value?: string;
|
|
12
|
-
selectType?: 'light' | 'dark';
|
|
13
|
-
backgroundColor?: string;
|
|
14
|
-
containerBackgroundColor?: string;
|
|
15
|
-
buttonBackgroundColor?: string;
|
|
16
|
-
textColor?: string;
|
|
17
|
-
keyboardBackgroundColor?: string;
|
|
18
|
-
keyboardButtonBackgroundColor?: string;
|
|
19
|
-
keyboardButtonTextColor?: string;
|
|
20
|
-
keyboardButtonHoverColor?: string;
|
|
21
|
-
primaryButtonBackgroundColor?: string;
|
|
22
|
-
primaryButtonTextColor?: string;
|
|
23
|
-
}
|
|
24
|
-
declare const VirtualKeyboard: (props: VirtualKeyboardProps) => JSX.Element;
|
|
25
|
-
export default VirtualKeyboard;
|