pb-sxp-ui 1.0.69 → 1.0.71
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/dist/index.cjs +301 -174
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -2
- package/dist/index.js +301 -174
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +3 -3
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +304 -177
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +3 -3
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/DiyPortalPreview/VideoWidget.js +3 -2
- package/es/core/components/SxpPageCore/index.js +2 -2
- package/es/core/components/SxpPageRender/FingerSwipeTip/index.d.ts +2 -1
- package/es/core/components/SxpPageRender/FingerSwipeTip/index.js +2 -2
- package/es/core/components/SxpPageRender/FormatImage.js +1 -2
- package/es/core/components/SxpPageRender/Nudge/index.js +2 -2
- package/es/core/components/SxpPageRender/VideoWidget/index.js +1 -1
- package/es/core/components/SxpPageRender/WaterFall/List.js +5 -9
- package/es/core/components/SxpPageRender/index.d.ts +5 -0
- package/es/core/components/SxpPageRender/index.js +21 -24
- package/es/core/components/SxpPageRender/typing.d.ts +1 -0
- package/es/core/context/SxpDataSourceProvider.d.ts +0 -1
- package/es/core/context/SxpDataSourceProvider.js +12 -4
- package/es/materials/sxp/HashTag/settingRender.d.ts +2 -7
- package/es/materials/sxp/HashTag/settingRender.js +0 -5
- package/es/materials/sxp/defaultSetting.d.ts +1 -4
- package/es/materials/sxp/defaultSetting.js +4 -5
- package/es/materials/sxp/popup/AppointForm/index.d.ts +2 -1
- package/es/materials/sxp/popup/AppointForm/index.js +3 -8
- package/es/materials/sxp/popup/AppointForm/settingRender.d.ts +29 -8
- package/es/materials/sxp/popup/AppointForm/settingRender.js +33 -2
- package/es/materials/sxp/popup/CommodityDetail/index.d.ts +1 -0
- package/es/materials/sxp/popup/CommodityDetail/index.js +7 -1
- package/es/materials/sxp/popup/CommodityDetail/material.js +5 -2
- package/es/materials/sxp/popup/CommodityDetail/settingRender.d.ts +28 -0
- package/es/materials/sxp/popup/CommodityDetail/settingRender.js +30 -0
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.d.ts +1 -0
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +7 -1
- package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.d.ts +16 -0
- package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +13 -0
- package/es/materials/sxp/popup/Prompt/index.d.ts +2 -1
- package/es/materials/sxp/popup/Prompt/index.js +2 -2
- package/es/materials/sxp/popup/Prompt/settingRender.d.ts +46 -11
- package/es/materials/sxp/popup/Prompt/settingRender.js +57 -14
- package/es/materials/sxp/template/Commodity/index.d.ts +1 -0
- package/es/materials/sxp/template/Commodity/index.js +12 -6
- package/es/materials/sxp/template/CommodityDiro/index.d.ts +1 -0
- package/es/materials/sxp/template/CommodityDiro/index.js +12 -6
- package/es/materials/sxp/template/CommodityDiroNew/index.d.ts +1 -0
- package/es/materials/sxp/template/CommodityDiroNew/index.js +12 -6
- package/es/materials/sxp/template/MultiCommodity/index.d.ts +1 -0
- package/es/materials/sxp/template/MultiCommodity/index.js +7 -5
- package/es/materials/sxp/template/MultiCommodityDiro/index.d.ts +1 -0
- package/es/materials/sxp/template/MultiCommodityDiro/index.js +7 -5
- package/es/materials/sxp/template/MultiCommodityDiroNew/index.d.ts +1 -0
- package/es/materials/sxp/template/MultiCommodityDiroNew/index.js +7 -5
- package/es/materials/sxp/template/components/Img.d.ts +2 -1
- package/es/materials/sxp/template/components/Img.js +2 -2
- package/es/materials/sxp/template/components/settingRender.d.ts +50 -0
- package/es/materials/sxp/template/components/settingRender.js +8 -0
- package/lib/core/components/DiyPortalPreview/VideoWidget.js +3 -2
- package/lib/core/components/SxpPageCore/index.js +2 -2
- package/lib/core/components/SxpPageRender/FingerSwipeTip/index.d.ts +2 -1
- package/lib/core/components/SxpPageRender/FingerSwipeTip/index.js +2 -2
- package/lib/core/components/SxpPageRender/FormatImage.js +0 -1
- package/lib/core/components/SxpPageRender/Nudge/index.js +2 -2
- package/lib/core/components/SxpPageRender/VideoWidget/index.js +1 -1
- package/lib/core/components/SxpPageRender/WaterFall/List.js +5 -9
- package/lib/core/components/SxpPageRender/index.d.ts +5 -0
- package/lib/core/components/SxpPageRender/index.js +21 -24
- package/lib/core/components/SxpPageRender/typing.d.ts +1 -0
- package/lib/core/context/SxpDataSourceProvider.d.ts +0 -1
- package/lib/core/context/SxpDataSourceProvider.js +12 -4
- package/lib/materials/sxp/HashTag/settingRender.d.ts +2 -7
- package/lib/materials/sxp/HashTag/settingRender.js +0 -5
- package/lib/materials/sxp/defaultSetting.d.ts +1 -4
- package/lib/materials/sxp/defaultSetting.js +4 -5
- package/lib/materials/sxp/popup/AppointForm/index.d.ts +2 -1
- package/lib/materials/sxp/popup/AppointForm/index.js +3 -8
- package/lib/materials/sxp/popup/AppointForm/settingRender.d.ts +29 -8
- package/lib/materials/sxp/popup/AppointForm/settingRender.js +34 -2
- package/lib/materials/sxp/popup/CommodityDetail/index.d.ts +1 -0
- package/lib/materials/sxp/popup/CommodityDetail/index.js +7 -1
- package/lib/materials/sxp/popup/CommodityDetail/material.js +5 -2
- package/lib/materials/sxp/popup/CommodityDetail/settingRender.d.ts +28 -0
- package/lib/materials/sxp/popup/CommodityDetail/settingRender.js +30 -0
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.d.ts +1 -0
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +7 -1
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.d.ts +16 -0
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +13 -0
- package/lib/materials/sxp/popup/Prompt/index.d.ts +2 -1
- package/lib/materials/sxp/popup/Prompt/index.js +2 -2
- package/lib/materials/sxp/popup/Prompt/settingRender.d.ts +46 -11
- package/lib/materials/sxp/popup/Prompt/settingRender.js +58 -14
- package/lib/materials/sxp/template/Commodity/index.d.ts +1 -0
- package/lib/materials/sxp/template/Commodity/index.js +12 -6
- package/lib/materials/sxp/template/CommodityDiro/index.d.ts +1 -0
- package/lib/materials/sxp/template/CommodityDiro/index.js +12 -6
- package/lib/materials/sxp/template/CommodityDiroNew/index.d.ts +1 -0
- package/lib/materials/sxp/template/CommodityDiroNew/index.js +12 -6
- package/lib/materials/sxp/template/MultiCommodity/index.d.ts +1 -0
- package/lib/materials/sxp/template/MultiCommodity/index.js +7 -5
- package/lib/materials/sxp/template/MultiCommodityDiro/index.d.ts +1 -0
- package/lib/materials/sxp/template/MultiCommodityDiro/index.js +7 -5
- package/lib/materials/sxp/template/MultiCommodityDiroNew/index.d.ts +1 -0
- package/lib/materials/sxp/template/MultiCommodityDiroNew/index.js +7 -5
- package/lib/materials/sxp/template/components/Img.d.ts +2 -1
- package/lib/materials/sxp/template/components/Img.js +2 -2
- package/lib/materials/sxp/template/components/settingRender.d.ts +50 -0
- package/lib/materials/sxp/template/components/settingRender.js +8 -0
- package/package.json +2 -3
@@ -95,7 +95,13 @@ const CommodityDetail = (_a) => {
|
|
95
95
|
width,
|
96
96
|
height: width
|
97
97
|
} },
|
98
|
-
react_1.default.createElement(FormatImage_1.default, { style: {
|
98
|
+
react_1.default.createElement(FormatImage_1.default, { style: {
|
99
|
+
height: '100%',
|
100
|
+
width: '100%',
|
101
|
+
objectFit: 'cover',
|
102
|
+
display: 'block',
|
103
|
+
transform: `translateY(${swiper === null || swiper === void 0 ? void 0 : swiper.translateY})%`
|
104
|
+
}, src: src }))));
|
99
105
|
}))),
|
100
106
|
!((_j = product === null || product === void 0 ? void 0 : product.homePage) === null || _j === void 0 ? void 0 : _j.length) && (react_1.default.createElement("div", { className: (0, css_1.css)({
|
101
107
|
position: 'relative',
|
@@ -22,7 +22,9 @@ const CommodityDetail = (0, create_1.createMaterial)(_1.default, {
|
|
22
22
|
commodityStyles: {
|
23
23
|
price: {
|
24
24
|
color: '#000',
|
25
|
-
fontSize: 18
|
25
|
+
fontSize: 18,
|
26
|
+
marginTop: 24,
|
27
|
+
marginBottom: 10
|
26
28
|
},
|
27
29
|
title: {
|
28
30
|
color: '#000',
|
@@ -30,7 +32,8 @@ const CommodityDetail = (0, create_1.createMaterial)(_1.default, {
|
|
30
32
|
},
|
31
33
|
collection: {
|
32
34
|
fontSize: 12,
|
33
|
-
color: '#000'
|
35
|
+
color: '#000',
|
36
|
+
marginBottom: 14
|
34
37
|
},
|
35
38
|
info: {
|
36
39
|
color: 'gray',
|
@@ -9,12 +9,28 @@ declare const _default: ({
|
|
9
9
|
}[];
|
10
10
|
name: string[];
|
11
11
|
addonAfter?: undefined;
|
12
|
+
child?: undefined;
|
12
13
|
} | {
|
13
14
|
type: string;
|
14
15
|
name: string[];
|
15
16
|
addonAfter: string;
|
16
17
|
label?: undefined;
|
17
18
|
options?: undefined;
|
19
|
+
child?: undefined;
|
20
|
+
} | {
|
21
|
+
type: string;
|
22
|
+
child: {
|
23
|
+
label: string;
|
24
|
+
type: string;
|
25
|
+
name: string[];
|
26
|
+
min: number;
|
27
|
+
addonAfter: string;
|
28
|
+
initialValue: number;
|
29
|
+
}[];
|
30
|
+
label?: undefined;
|
31
|
+
options?: undefined;
|
32
|
+
name?: undefined;
|
33
|
+
addonAfter?: undefined;
|
18
34
|
})[];
|
19
35
|
} | {
|
20
36
|
title: string;
|
@@ -31,6 +47,18 @@ declare const _default: ({
|
|
31
47
|
name: string[];
|
32
48
|
initialValue: string;
|
33
49
|
child?: undefined;
|
50
|
+
} | {
|
51
|
+
type: string;
|
52
|
+
child: {
|
53
|
+
label: string;
|
54
|
+
type: string;
|
55
|
+
addonAfter: string;
|
56
|
+
name: string[];
|
57
|
+
}[];
|
58
|
+
label?: undefined;
|
59
|
+
options?: undefined;
|
60
|
+
name?: undefined;
|
61
|
+
initialValue?: undefined;
|
34
62
|
} | {
|
35
63
|
type: string;
|
36
64
|
label: string;
|
@@ -25,6 +25,19 @@ exports.default = [
|
|
25
25
|
type: 'Number',
|
26
26
|
name: ['props', 'swiper', 'delay'],
|
27
27
|
addonAfter: 's'
|
28
|
+
},
|
29
|
+
{
|
30
|
+
type: 'Group',
|
31
|
+
child: [
|
32
|
+
{
|
33
|
+
label: '居中垂直偏移',
|
34
|
+
type: 'Number',
|
35
|
+
name: ['props', 'swiper', 'translateY'],
|
36
|
+
min: -100,
|
37
|
+
addonAfter: '%',
|
38
|
+
initialValue: 0
|
39
|
+
}
|
40
|
+
]
|
28
41
|
}
|
29
42
|
]
|
30
43
|
},
|
@@ -59,6 +72,23 @@ exports.default = [
|
|
59
72
|
name: ['props', 'commodityStyles', 'field'],
|
60
73
|
initialValue: 'title'
|
61
74
|
},
|
75
|
+
{
|
76
|
+
type: 'Group',
|
77
|
+
child: [
|
78
|
+
{
|
79
|
+
label: '上边距',
|
80
|
+
type: 'Number',
|
81
|
+
addonAfter: 'px',
|
82
|
+
name: ['marginTop']
|
83
|
+
},
|
84
|
+
{
|
85
|
+
label: '下边距',
|
86
|
+
type: 'Number',
|
87
|
+
addonAfter: 'px',
|
88
|
+
name: ['marginBottom']
|
89
|
+
}
|
90
|
+
]
|
91
|
+
},
|
62
92
|
{
|
63
93
|
type: 'Group',
|
64
94
|
label: '标题字体',
|
@@ -113,7 +113,13 @@ Made in Italy` })));
|
|
113
113
|
width,
|
114
114
|
height: width
|
115
115
|
} },
|
116
|
-
react_1.default.createElement(FormatImage_1.default, { style: {
|
116
|
+
react_1.default.createElement(FormatImage_1.default, { style: {
|
117
|
+
height: '100%',
|
118
|
+
width: '100%',
|
119
|
+
objectFit: 'cover',
|
120
|
+
display: 'block',
|
121
|
+
transform: `translateY(${swiper === null || swiper === void 0 ? void 0 : swiper.translateY})%`
|
122
|
+
}, src: src }))));
|
117
123
|
}))),
|
118
124
|
!((_j = product === null || product === void 0 ? void 0 : product.homePage) === null || _j === void 0 ? void 0 : _j.length) && (react_1.default.createElement("div", { className: (0, css_1.css)({
|
119
125
|
position: 'relative',
|
@@ -9,12 +9,28 @@ declare const _default: ({
|
|
9
9
|
}[];
|
10
10
|
name: string[];
|
11
11
|
addonAfter?: undefined;
|
12
|
+
child?: undefined;
|
12
13
|
} | {
|
13
14
|
type: string;
|
14
15
|
name: string[];
|
15
16
|
addonAfter: string;
|
16
17
|
label?: undefined;
|
17
18
|
options?: undefined;
|
19
|
+
child?: undefined;
|
20
|
+
} | {
|
21
|
+
type: string;
|
22
|
+
child: {
|
23
|
+
label: string;
|
24
|
+
type: string;
|
25
|
+
name: string[];
|
26
|
+
min: number;
|
27
|
+
addonAfter: string;
|
28
|
+
initialValue: number;
|
29
|
+
}[];
|
30
|
+
label?: undefined;
|
31
|
+
options?: undefined;
|
32
|
+
name?: undefined;
|
33
|
+
addonAfter?: undefined;
|
18
34
|
})[];
|
19
35
|
} | {
|
20
36
|
title: string;
|
@@ -25,6 +25,19 @@ exports.default = [
|
|
25
25
|
type: 'Number',
|
26
26
|
name: ['props', 'swiper', 'delay'],
|
27
27
|
addonAfter: 's'
|
28
|
+
},
|
29
|
+
{
|
30
|
+
type: 'Group',
|
31
|
+
child: [
|
32
|
+
{
|
33
|
+
label: '居中垂直偏移',
|
34
|
+
type: 'Number',
|
35
|
+
name: ['props', 'swiper', 'translateY'],
|
36
|
+
min: -100,
|
37
|
+
addonAfter: '%',
|
38
|
+
initialValue: 0
|
39
|
+
}
|
40
|
+
]
|
28
41
|
}
|
29
42
|
]
|
30
43
|
},
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import React from 'react';
|
1
|
+
import React, { CSSProperties } from 'react';
|
2
2
|
import './index.less';
|
3
3
|
export interface IPromptProps {
|
4
4
|
content?: string;
|
@@ -9,6 +9,7 @@ export interface IPromptProps {
|
|
9
9
|
isPopup?: boolean;
|
10
10
|
onClose?: () => void;
|
11
11
|
onClick?: () => void;
|
12
|
+
submitButtonStyle?: CSSProperties;
|
12
13
|
}
|
13
14
|
declare const _default: React.NamedExoticComponent<IPromptProps>;
|
14
15
|
export default _default;
|
@@ -9,7 +9,7 @@ require("./index.less");
|
|
9
9
|
const hooks_1 = require("../../../../core/hooks");
|
10
10
|
const useEventReport_1 = require("../../../../core/hooks/useEventReport");
|
11
11
|
const Prompt = (_a) => {
|
12
|
-
var { content, btnText, style, icon, isPopup, isExternalLink, onClose, onClick } = _a, props = tslib_1.__rest(_a, ["content", "btnText", "style", "icon", "isPopup", "isExternalLink", "onClose", "onClick"]);
|
12
|
+
var { content, btnText, style, icon, isPopup, isExternalLink, onClose, onClick, submitButtonStyle } = _a, props = tslib_1.__rest(_a, ["content", "btnText", "style", "icon", "isPopup", "isExternalLink", "onClose", "onClick", "submitButtonStyle"]);
|
13
13
|
const { popupDetailData } = (0, hooks_1.useSxpDataSource)();
|
14
14
|
const { jumpToWeb } = (0, useEventReport_1.useEventReport)();
|
15
15
|
const iconSrc = typeof icon === 'string' ? icon : (0, materials_1.getMediaValueByMode)(icon);
|
@@ -31,6 +31,6 @@ const Prompt = (_a) => {
|
|
31
31
|
react_1.default.createElement("div", { className: 'pb-prompt-icon' },
|
32
32
|
react_1.default.createElement("img", { width: '100%', src: iconSrc !== null && iconSrc !== void 0 ? iconSrc : success_png_1.default })),
|
33
33
|
react_1.default.createElement("div", { className: 'pb-prompt-content' }, content),
|
34
|
-
react_1.default.createElement("button", { className: 'pb-prompt-btn', onClick: handleOk }, btnText)));
|
34
|
+
react_1.default.createElement("button", { className: 'pb-prompt-btn', style: submitButtonStyle, onClick: handleOk }, btnText)));
|
35
35
|
};
|
36
36
|
exports.default = (0, react_1.memo)(Prompt);
|
@@ -1,12 +1,47 @@
|
|
1
|
-
declare const _default:
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
1
|
+
declare const _default: {
|
2
|
+
title: string;
|
3
|
+
child: ({
|
4
|
+
type: string;
|
5
|
+
label: string;
|
6
|
+
name: string[];
|
7
|
+
mediaType: string;
|
8
|
+
child?: undefined;
|
9
|
+
} | {
|
10
|
+
type: string;
|
11
|
+
label: string;
|
12
|
+
name: string[];
|
13
|
+
mediaType?: undefined;
|
14
|
+
child?: undefined;
|
15
|
+
} | {
|
16
|
+
type: string;
|
17
|
+
label: string;
|
18
|
+
child: ({
|
19
|
+
type: string;
|
20
|
+
name: string[];
|
21
|
+
initialValue: string;
|
22
|
+
options?: undefined;
|
23
|
+
addonAfter?: undefined;
|
24
|
+
} | {
|
25
|
+
type: string;
|
26
|
+
name: string[];
|
27
|
+
options: any[];
|
28
|
+
initialValue: any;
|
29
|
+
addonAfter?: undefined;
|
30
|
+
} | {
|
31
|
+
type: string;
|
32
|
+
name: string[];
|
33
|
+
addonAfter: string;
|
34
|
+
initialValue: number;
|
35
|
+
options?: undefined;
|
36
|
+
})[];
|
37
|
+
name?: undefined;
|
38
|
+
mediaType?: undefined;
|
39
|
+
} | {
|
40
|
+
type: string;
|
41
|
+
name: string[];
|
42
|
+
label?: undefined;
|
43
|
+
mediaType?: undefined;
|
44
|
+
child?: undefined;
|
45
|
+
})[];
|
46
|
+
}[];
|
12
47
|
export default _default;
|
@@ -1,20 +1,64 @@
|
|
1
1
|
"use strict";
|
2
|
+
var _a, _b;
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
+
const tslib_1 = require("tslib");
|
5
|
+
const defaultSetting_1 = tslib_1.__importDefault(require("../../defaultSetting"));
|
3
6
|
exports.default = [
|
4
7
|
{
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
8
|
+
title: '',
|
9
|
+
child: [
|
10
|
+
{
|
11
|
+
type: 'Media',
|
12
|
+
label: '图标',
|
13
|
+
name: ['props', 'icon'],
|
14
|
+
mediaType: 'Image'
|
15
|
+
},
|
16
|
+
{
|
17
|
+
type: 'TextArea',
|
18
|
+
label: '内容',
|
19
|
+
name: ['props', 'content']
|
20
|
+
},
|
21
|
+
{
|
22
|
+
type: 'Text',
|
23
|
+
label: '按钮文案',
|
24
|
+
name: ['props', 'btnText']
|
25
|
+
},
|
26
|
+
{
|
27
|
+
type: 'Group',
|
28
|
+
label: '提交按钮字体',
|
29
|
+
child: [
|
30
|
+
{
|
31
|
+
type: 'Color',
|
32
|
+
name: ['props', 'submitButtonStyle', 'color'],
|
33
|
+
initialValue: '#fff'
|
34
|
+
},
|
35
|
+
{
|
36
|
+
type: 'Select',
|
37
|
+
name: ['props', 'submitButtonStyle', 'fontFamily'],
|
38
|
+
options: defaultSetting_1.default === null || defaultSetting_1.default === void 0 ? void 0 : defaultSetting_1.default.fontOptions,
|
39
|
+
initialValue: (_b = (_a = defaultSetting_1.default === null || defaultSetting_1.default === void 0 ? void 0 : defaultSetting_1.default.fontOptions) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.value
|
40
|
+
},
|
41
|
+
{
|
42
|
+
type: 'Number',
|
43
|
+
name: ['props', 'submitButtonStyle', 'fontSize'],
|
44
|
+
addonAfter: 'px',
|
45
|
+
initialValue: 12
|
46
|
+
}
|
47
|
+
]
|
48
|
+
},
|
49
|
+
{
|
50
|
+
type: 'TextStyle',
|
51
|
+
name: ['props', 'submitButtonStyle']
|
52
|
+
},
|
53
|
+
{
|
54
|
+
type: 'TextAlign',
|
55
|
+
name: ['props', 'submitButtonStyle']
|
56
|
+
},
|
57
|
+
{
|
58
|
+
label: '提交按钮颜色',
|
59
|
+
type: 'Color',
|
60
|
+
name: ['props', 'submitButtonStyle', 'backgroundColor']
|
61
|
+
}
|
62
|
+
]
|
19
63
|
}
|
20
64
|
];
|
@@ -8,14 +8,20 @@ const index_module_less_1 = tslib_1.__importDefault(require("./index.module.less
|
|
8
8
|
const hooks_1 = require("../../../../core/hooks");
|
9
9
|
const FormatImage_1 = tslib_1.__importDefault(require("../../../../core/components/SxpPageRender/FormatImage"));
|
10
10
|
const Commodity = (_a) => {
|
11
|
-
var _b, _c, _d, _e, _f, _g, _h;
|
12
|
-
var { content, style, bgImg, recData, bottom_image, ctaTempStyles, isExternalLink } = _a, props = tslib_1.__rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "isExternalLink"]);
|
11
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
12
|
+
var { content, style, bgImg, recData, bottom_image, ctaTempStyles, isExternalLink, translateY = 0 } = _a, props = tslib_1.__rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "isExternalLink", "translateY"]);
|
13
13
|
const { sxpParameter } = (0, hooks_1.useSxpDataSource)();
|
14
14
|
const product = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProduct;
|
15
|
-
const src = (
|
15
|
+
const src = (_g = (_f = (_d = (_c = recData === null || recData === void 0 ? void 0 : recData.product) === null || _c === void 0 ? void 0 : _c.cover) !== null && _d !== void 0 ? _d : (_e = product === null || product === void 0 ? void 0 : product.homePage) === null || _e === void 0 ? void 0 : _e[0]) !== null && _f !== void 0 ? _f : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _g !== void 0 ? _g : bottom_image;
|
16
16
|
return (react_1.default.createElement(EventProvider_1.default, Object.assign({ isExternalLink: isExternalLink, rec: recData, className: (0, css_1.css)(Object.assign({}, style)), style: { display: 'flex' } }, props),
|
17
17
|
react_1.default.createElement("div", { className: (0, css_1.css)(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
|
18
|
-
react_1.default.createElement(FormatImage_1.default, { className: (0, css_1.css)({
|
18
|
+
react_1.default.createElement(FormatImage_1.default, { className: (0, css_1.css)({
|
19
|
+
width: '100%',
|
20
|
+
objectFit: 'cover',
|
21
|
+
height: '100%',
|
22
|
+
display: 'block',
|
23
|
+
transform: `translateY(${translateY}%)`
|
24
|
+
}), src: src })),
|
19
25
|
react_1.default.createElement("div", { className: (0, css_1.css)({
|
20
26
|
color: '#fff',
|
21
27
|
display: 'flex',
|
@@ -24,7 +30,7 @@ const Commodity = (_a) => {
|
|
24
30
|
width: '100%',
|
25
31
|
overflow: 'hidden'
|
26
32
|
}) },
|
27
|
-
react_1.default.createElement("div", { className: index_module_less_1.default['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (
|
28
|
-
react_1.default.createElement("div", { className: (0, css_1.css)(Object.assign({ padding: '2px 7px', textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (
|
33
|
+
react_1.default.createElement("div", { className: index_module_less_1.default['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (_h = product === null || product === void 0 ? void 0 : product.title) !== null && _h !== void 0 ? _h : 'Product Name'),
|
34
|
+
react_1.default.createElement("div", { className: (0, css_1.css)(Object.assign({ padding: '2px 7px', textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (_k = (_j = product === null || product === void 0 ? void 0 : product.bindCta) === null || _j === void 0 ? void 0 : _j.enTitle) !== null && _k !== void 0 ? _k : 'Shop Now'))));
|
29
35
|
};
|
30
36
|
exports.default = (0, react_1.memo)(Commodity);
|
@@ -8,14 +8,20 @@ const index_module_less_1 = tslib_1.__importDefault(require("./index.module.less
|
|
8
8
|
const hooks_1 = require("../../../../core/hooks");
|
9
9
|
const FormatImage_1 = tslib_1.__importDefault(require("../../../../core/components/SxpPageRender/FormatImage"));
|
10
10
|
const CommodityDiro = (_a) => {
|
11
|
-
var _b, _c, _d, _e, _f, _g, _h;
|
12
|
-
var { content, style, bgImg, recData, bottom_image, ctaTempStyles, isExternalLink } = _a, props = tslib_1.__rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "isExternalLink"]);
|
11
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
12
|
+
var { content, style, bgImg, recData, bottom_image, ctaTempStyles, isExternalLink, translateY = 0 } = _a, props = tslib_1.__rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "isExternalLink", "translateY"]);
|
13
13
|
const { sxpParameter } = (0, hooks_1.useSxpDataSource)();
|
14
14
|
const product = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProduct;
|
15
|
-
const src = (
|
15
|
+
const src = (_g = (_f = (_d = (_c = recData === null || recData === void 0 ? void 0 : recData.product) === null || _c === void 0 ? void 0 : _c.cover) !== null && _d !== void 0 ? _d : (_e = product === null || product === void 0 ? void 0 : product.homePage) === null || _e === void 0 ? void 0 : _e[0]) !== null && _f !== void 0 ? _f : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _g !== void 0 ? _g : bottom_image;
|
16
16
|
return (react_1.default.createElement(EventProvider_1.default, Object.assign({ isExternalLink: isExternalLink, rec: recData, className: (0, css_1.css)(Object.assign({}, style)), style: { display: 'flex' } }, props),
|
17
17
|
react_1.default.createElement("div", { className: (0, css_1.css)(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
|
18
|
-
react_1.default.createElement(FormatImage_1.default, { className: (0, css_1.css)({
|
18
|
+
react_1.default.createElement(FormatImage_1.default, { className: (0, css_1.css)({
|
19
|
+
width: '100%',
|
20
|
+
objectFit: 'cover',
|
21
|
+
height: '100%',
|
22
|
+
display: 'block',
|
23
|
+
transform: `translateY(${translateY}%)`
|
24
|
+
}), src: src })),
|
19
25
|
react_1.default.createElement("div", { className: (0, css_1.css)({
|
20
26
|
color: '#fff',
|
21
27
|
display: 'flex',
|
@@ -24,7 +30,7 @@ const CommodityDiro = (_a) => {
|
|
24
30
|
width: '100%',
|
25
31
|
overflow: 'hidden'
|
26
32
|
}) },
|
27
|
-
react_1.default.createElement("div", { className: index_module_less_1.default['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (
|
28
|
-
react_1.default.createElement("div", { className: (0, css_1.css)(Object.assign({ padding: '2px 7px', textOverflow: 'ellipsis', overflow: 'hidden', borderRadius: '25px', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (
|
33
|
+
react_1.default.createElement("div", { className: index_module_less_1.default['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (_h = product === null || product === void 0 ? void 0 : product.title) !== null && _h !== void 0 ? _h : 'Product Name'),
|
34
|
+
react_1.default.createElement("div", { className: (0, css_1.css)(Object.assign({ padding: '2px 7px', textOverflow: 'ellipsis', overflow: 'hidden', borderRadius: '25px', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (_k = (_j = product === null || product === void 0 ? void 0 : product.bindCta) === null || _j === void 0 ? void 0 : _j.enTitle) !== null && _k !== void 0 ? _k : 'Shop Now'))));
|
29
35
|
};
|
30
36
|
exports.default = (0, react_1.memo)(CommodityDiro);
|
@@ -10,6 +10,7 @@ export interface ICommodityDiroNewProps {
|
|
10
10
|
ctaTempStyles?: ICtaTempStylesType;
|
11
11
|
isExternalLink?: boolean;
|
12
12
|
index?: number;
|
13
|
+
translateY?: number;
|
13
14
|
}
|
14
15
|
declare const _default: React.NamedExoticComponent<ICommodityDiroNewProps>;
|
15
16
|
export default _default;
|
@@ -8,14 +8,20 @@ const index_module_less_1 = tslib_1.__importDefault(require("./index.module.less
|
|
8
8
|
const hooks_1 = require("../../../../core/hooks");
|
9
9
|
const FormatImage_1 = tslib_1.__importDefault(require("../../../../core/components/SxpPageRender/FormatImage"));
|
10
10
|
const CommodityDiroNew = (_a) => {
|
11
|
-
var _b, _c, _d, _e, _f, _g, _h;
|
12
|
-
var { content, style, bgImg, recData, bottom_image, ctaTempStyles, isExternalLink } = _a, props = tslib_1.__rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "isExternalLink"]);
|
11
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
12
|
+
var { content, style, bgImg, recData, bottom_image, ctaTempStyles, isExternalLink, translateY = 0 } = _a, props = tslib_1.__rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "isExternalLink", "translateY"]);
|
13
13
|
const { sxpParameter } = (0, hooks_1.useSxpDataSource)();
|
14
14
|
const product = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProduct;
|
15
|
-
const src = (
|
15
|
+
const src = (_g = (_f = (_d = (_c = recData === null || recData === void 0 ? void 0 : recData.product) === null || _c === void 0 ? void 0 : _c.cover) !== null && _d !== void 0 ? _d : (_e = product === null || product === void 0 ? void 0 : product.homePage) === null || _e === void 0 ? void 0 : _e[0]) !== null && _f !== void 0 ? _f : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _g !== void 0 ? _g : bottom_image;
|
16
16
|
return (react_1.default.createElement(EventProvider_1.default, Object.assign({ isExternalLink: isExternalLink, rec: recData, className: (0, css_1.css)(Object.assign({}, style)), style: { display: 'flex' } }, props),
|
17
17
|
react_1.default.createElement("div", { className: (0, css_1.css)(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
|
18
|
-
react_1.default.createElement(FormatImage_1.default, { className: (0, css_1.css)({
|
18
|
+
react_1.default.createElement(FormatImage_1.default, { className: (0, css_1.css)({
|
19
|
+
width: '100%',
|
20
|
+
objectFit: 'cover',
|
21
|
+
height: '100%',
|
22
|
+
display: 'block',
|
23
|
+
transform: `translateY(${translateY}%)`
|
24
|
+
}), src: src })),
|
19
25
|
react_1.default.createElement("div", { className: (0, css_1.css)({
|
20
26
|
color: '#fff',
|
21
27
|
display: 'flex',
|
@@ -24,7 +30,7 @@ const CommodityDiroNew = (_a) => {
|
|
24
30
|
width: '100%',
|
25
31
|
overflow: 'hidden'
|
26
32
|
}) },
|
27
|
-
react_1.default.createElement("div", { className: index_module_less_1.default['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (
|
28
|
-
react_1.default.createElement("div", { className: (0, css_1.css)(Object.assign({ textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (
|
33
|
+
react_1.default.createElement("div", { className: index_module_less_1.default['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (_h = product === null || product === void 0 ? void 0 : product.title) !== null && _h !== void 0 ? _h : 'Product Name'),
|
34
|
+
react_1.default.createElement("div", { className: (0, css_1.css)(Object.assign({ textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (_k = (_j = product === null || product === void 0 ? void 0 : product.bindCta) === null || _j === void 0 ? void 0 : _j.enTitle) !== null && _k !== void 0 ? _k : 'Shop now'))));
|
29
35
|
};
|
30
36
|
exports.default = (0, react_1.memo)(CommodityDiroNew);
|
@@ -12,7 +12,7 @@ const hooks_1 = require("../../../../core/hooks");
|
|
12
12
|
const useEventReport_1 = require("../../../../core/hooks/useEventReport");
|
13
13
|
const MultiCommodity = (_a) => {
|
14
14
|
var _b, _c;
|
15
|
-
var { content, style, bgImg, recData, onClick, bottom_image, ctaTempStyles, isExternalLink, index } = _a, props = tslib_1.__rest(_a, ["content", "style", "bgImg", "recData", "onClick", "bottom_image", "ctaTempStyles", "isExternalLink", "index"]);
|
15
|
+
var { content, style, bgImg, recData, onClick, bottom_image, ctaTempStyles, isExternalLink, index, translateY = 0 } = _a, props = tslib_1.__rest(_a, ["content", "style", "bgImg", "recData", "onClick", "bottom_image", "ctaTempStyles", "isExternalLink", "index", "translateY"]);
|
16
16
|
const { sxpParameter } = (0, hooks_1.useSxpDataSource)();
|
17
17
|
const { ctaEvent, setPopupDetailData } = (0, hooks_1.useSxpDataSource)();
|
18
18
|
const { popup } = (0, hooks_1.useEditor)();
|
@@ -35,10 +35,12 @@ const MultiCommodity = (_a) => {
|
|
35
35
|
}
|
36
36
|
}, popup === null || popup === void 0 ? void 0 : popup.duration);
|
37
37
|
return (react_1.default.createElement(Scroll_1.default, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item) => {
|
38
|
-
var _a, _b, _c, _d, _e, _f;
|
38
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
39
39
|
return (react_1.default.createElement(react_2.SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item.itemId, className: (0, css_1.css)(Object.assign(Object.assign({}, style), { display: 'flex', flexShrink: 0, marginLeft: 0, marginRight: '8px' })) }, props, { onClick: () => handleClick(item) }),
|
40
40
|
react_1.default.createElement("div", { className: (0, css_1.css)(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
|
41
|
-
react_1.default.createElement(Img_1.default, { src: (
|
41
|
+
react_1.default.createElement(Img_1.default, { src: (_d = (_c = (_a = item === null || item === void 0 ? void 0 : item.cover) !== null && _a !== void 0 ? _a : (_b = item === null || item === void 0 ? void 0 : item.homePage) === null || _b === void 0 ? void 0 : _b[0]) !== null && _c !== void 0 ? _c : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _d !== void 0 ? _d : bottom_image, rec: recData, item: item, index: index, style: {
|
42
|
+
transform: `translateY(${translateY}%)`
|
43
|
+
} })),
|
42
44
|
react_1.default.createElement("div", { className: (0, css_1.css)({
|
43
45
|
color: '#fff',
|
44
46
|
display: 'flex',
|
@@ -47,8 +49,8 @@ const MultiCommodity = (_a) => {
|
|
47
49
|
width: '100%',
|
48
50
|
overflow: 'hidden'
|
49
51
|
}) },
|
50
|
-
react_1.default.createElement("div", { className: index_module_less_1.default['two-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (
|
51
|
-
react_1.default.createElement("div", { className: (0, css_1.css)(Object.assign({ padding: '2px 7px', textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (
|
52
|
+
react_1.default.createElement("div", { className: index_module_less_1.default['two-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (_e = item === null || item === void 0 ? void 0 : item.title) !== null && _e !== void 0 ? _e : 'Product Name'),
|
53
|
+
react_1.default.createElement("div", { className: (0, css_1.css)(Object.assign({ padding: '2px 7px', textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (_g = (_f = item === null || item === void 0 ? void 0 : item.bindCta) === null || _f === void 0 ? void 0 : _f.enTitle) !== null && _g !== void 0 ? _g : 'Shop Now'))));
|
52
54
|
})));
|
53
55
|
};
|
54
56
|
exports.default = (0, react_1.memo)(MultiCommodity);
|
@@ -11,6 +11,7 @@ export interface IMultiCommodityDiroProps {
|
|
11
11
|
ctaTempStyles?: ICtaTempStylesType;
|
12
12
|
isExternalLink?: boolean;
|
13
13
|
index?: number;
|
14
|
+
translateY?: number;
|
14
15
|
}
|
15
16
|
declare const _default: React.NamedExoticComponent<IMultiCommodityDiroProps>;
|
16
17
|
export default _default;
|
@@ -12,7 +12,7 @@ const hooks_1 = require("../../../../core/hooks");
|
|
12
12
|
const useEventReport_1 = require("../../../../core/hooks/useEventReport");
|
13
13
|
const MultiCommodityDiro = (_a) => {
|
14
14
|
var _b, _c;
|
15
|
-
var { content, style, bgImg, recData, onClick, bottom_image, ctaTempStyles, isExternalLink, index } = _a, props = tslib_1.__rest(_a, ["content", "style", "bgImg", "recData", "onClick", "bottom_image", "ctaTempStyles", "isExternalLink", "index"]);
|
15
|
+
var { content, style, bgImg, recData, onClick, bottom_image, ctaTempStyles, isExternalLink, index, translateY = 0 } = _a, props = tslib_1.__rest(_a, ["content", "style", "bgImg", "recData", "onClick", "bottom_image", "ctaTempStyles", "isExternalLink", "index", "translateY"]);
|
16
16
|
const { ctaEvent, setPopupDetailData, sxpParameter } = (0, hooks_1.useSxpDataSource)();
|
17
17
|
const { popup } = (0, hooks_1.useEditor)();
|
18
18
|
const { jumpToWeb } = (0, useEventReport_1.useEventReport)();
|
@@ -34,10 +34,12 @@ const MultiCommodityDiro = (_a) => {
|
|
34
34
|
}
|
35
35
|
}, popup === null || popup === void 0 ? void 0 : popup.duration);
|
36
36
|
return (react_1.default.createElement(Scroll_1.default, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item) => {
|
37
|
-
var _a, _b, _c, _d, _e, _f;
|
37
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
38
38
|
return (react_1.default.createElement(react_2.SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item === null || item === void 0 ? void 0 : item.itemId, className: (0, css_1.css)(Object.assign(Object.assign({}, style), { display: 'flex', flexShrink: 0, marginLeft: 0, marginRight: '8px' })) }, props, { onClick: () => handleClick(item) }),
|
39
39
|
react_1.default.createElement("div", { className: (0, css_1.css)(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
|
40
|
-
react_1.default.createElement(Img_1.default, { src: (
|
40
|
+
react_1.default.createElement(Img_1.default, { src: (_d = (_c = (_a = item === null || item === void 0 ? void 0 : item.cover) !== null && _a !== void 0 ? _a : (_b = item === null || item === void 0 ? void 0 : item.homePage) === null || _b === void 0 ? void 0 : _b[0]) !== null && _c !== void 0 ? _c : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _d !== void 0 ? _d : bottom_image, rec: recData, item: item, index: index, style: {
|
41
|
+
transform: `translateY(${translateY}%)`
|
42
|
+
} })),
|
41
43
|
react_1.default.createElement("div", { className: (0, css_1.css)({
|
42
44
|
color: '#000',
|
43
45
|
display: 'flex',
|
@@ -46,8 +48,8 @@ const MultiCommodityDiro = (_a) => {
|
|
46
48
|
width: '100%',
|
47
49
|
overflow: 'hidden'
|
48
50
|
}) },
|
49
|
-
react_1.default.createElement("div", { className: index_module_less_1.default['two-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (
|
50
|
-
react_1.default.createElement("div", { className: (0, css_1.css)(Object.assign({ padding: '2px 7px', textOverflow: 'ellipsis', overflow: 'hidden', borderRadius: '25px', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (
|
51
|
+
react_1.default.createElement("div", { className: index_module_less_1.default['two-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (_e = item === null || item === void 0 ? void 0 : item.title) !== null && _e !== void 0 ? _e : 'Product Name'),
|
52
|
+
react_1.default.createElement("div", { className: (0, css_1.css)(Object.assign({ padding: '2px 7px', textOverflow: 'ellipsis', overflow: 'hidden', borderRadius: '25px', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (_g = (_f = item === null || item === void 0 ? void 0 : item.bindCta) === null || _f === void 0 ? void 0 : _f.enTitle) !== null && _g !== void 0 ? _g : 'Shop Now'))));
|
51
53
|
})));
|
52
54
|
};
|
53
55
|
exports.default = (0, react_1.memo)(MultiCommodityDiro);
|
@@ -11,6 +11,7 @@ export interface IMultiCommodityDiroNewProps {
|
|
11
11
|
ctaTempStyles?: ICtaTempStylesType;
|
12
12
|
isExternalLink?: boolean;
|
13
13
|
index?: number;
|
14
|
+
translateY?: number;
|
14
15
|
}
|
15
16
|
declare const _default: React.NamedExoticComponent<IMultiCommodityDiroNewProps>;
|
16
17
|
export default _default;
|