pb-sxp-ui 1.18.1 → 1.19.0-alpha.1
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 +504 -489
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +15 -7
- package/dist/index.js +504 -489
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +6 -6
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +6 -6
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +504 -489
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +6 -6
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/DiyPortalPreview/VideoWidget.js +8 -10
- package/es/core/components/DiyPortalPreview/index.js +5 -3
- package/es/core/components/DiyStoryPreview/index.js +7 -18
- package/es/core/components/SxpPageRender/LikeButton/index.js +16 -18
- package/es/core/components/SxpPageRender/PictureGroup/index.d.ts +0 -5
- package/es/core/components/SxpPageRender/PictureGroup/index.js +13 -39
- package/es/core/components/SxpPageRender/RenderCard.d.ts +0 -1
- package/es/core/components/SxpPageRender/RenderCard.js +14 -2
- package/es/core/components/SxpPageRender/VideoWidget/index.js +45 -32
- package/es/core/components/SxpPageRender/WaterFall/index.js +3 -4
- package/es/core/components/SxpPageRender/index.d.ts +1 -0
- package/es/core/components/SxpPageRender/index.js +102 -115
- package/es/core/context/SxpDataSourceProvider.d.ts +12 -5
- package/es/core/context/SxpDataSourceProvider.js +128 -94
- package/es/core/hooks/useEventReport.js +5 -6
- package/es/core/utils/tool.d.ts +3 -1
- package/es/core/utils/tool.js +29 -1
- package/es/materials/sxp/consentPopup/Display/index.js +1 -1
- package/es/materials/sxp/cta/AniLinkPopup/material.js +2 -3
- package/es/materials/sxp/popup/CommodityDetail/material.js +1 -2
- package/es/materials/sxp/popup/CommodityList/index.js +4 -5
- package/es/materials/sxp/popup/CommodityList/material.js +1 -1
- package/es/materials/sxp/popup/CommodityList/settingRender.js +1 -1
- package/es/materials/sxp/template/Appoint/material.js +1 -2
- package/es/materials/sxp/template/Commodity/material.js +2 -3
- package/es/materials/sxp/template/CommodityDiro/material.js +2 -3
- package/es/materials/sxp/template/CommodityDiroNew/material.js +2 -4
- package/es/materials/sxp/template/Link/material.js +2 -4
- package/es/materials/sxp/template/MultiCommodity/index.js +2 -2
- package/es/materials/sxp/template/MultiCommodity/material.js +1 -2
- package/es/materials/sxp/template/MultiCommodityDiro/index.js +2 -2
- package/es/materials/sxp/template/MultiCommodityDiro/material.js +2 -3
- package/es/materials/sxp/template/MultiCommodityDiroNew/index.js +2 -2
- package/es/materials/sxp/template/MultiCommodityDiroNew/material.js +2 -4
- package/es/materials/sxp/template/NineCommodity/material.js +2 -3
- package/es/materials/sxp/template/components/CommodityGroup.js +1 -1
- package/es/materials/sxp/template/components/settingRender.js +1 -1
- package/lib/core/components/DiyPortalPreview/VideoWidget.js +8 -10
- package/lib/core/components/DiyPortalPreview/index.js +5 -3
- package/lib/core/components/DiyStoryPreview/index.js +7 -18
- package/lib/core/components/SxpPageRender/LikeButton/index.js +16 -18
- package/lib/core/components/SxpPageRender/PictureGroup/index.d.ts +0 -5
- package/lib/core/components/SxpPageRender/PictureGroup/index.js +12 -38
- package/lib/core/components/SxpPageRender/RenderCard.d.ts +0 -1
- package/lib/core/components/SxpPageRender/RenderCard.js +14 -2
- package/lib/core/components/SxpPageRender/VideoWidget/index.js +45 -32
- package/lib/core/components/SxpPageRender/WaterFall/index.js +3 -4
- package/lib/core/components/SxpPageRender/index.d.ts +1 -0
- package/lib/core/components/SxpPageRender/index.js +102 -115
- package/lib/core/context/SxpDataSourceProvider.d.ts +12 -5
- package/lib/core/context/SxpDataSourceProvider.js +127 -93
- package/lib/core/hooks/useEventReport.js +5 -6
- package/lib/core/utils/tool.d.ts +3 -1
- package/lib/core/utils/tool.js +31 -1
- package/lib/materials/sxp/consentPopup/Display/index.js +1 -1
- package/lib/materials/sxp/cta/AniLinkPopup/material.js +1 -2
- package/lib/materials/sxp/popup/CommodityDetail/material.js +1 -2
- package/lib/materials/sxp/popup/CommodityList/index.js +4 -5
- package/lib/materials/sxp/popup/CommodityList/material.js +1 -1
- package/lib/materials/sxp/popup/CommodityList/settingRender.js +1 -1
- package/lib/materials/sxp/template/Appoint/material.js +1 -2
- package/lib/materials/sxp/template/Commodity/material.js +2 -3
- package/lib/materials/sxp/template/CommodityDiro/material.js +2 -3
- package/lib/materials/sxp/template/CommodityDiroNew/material.js +2 -4
- package/lib/materials/sxp/template/Link/material.js +2 -4
- package/lib/materials/sxp/template/MultiCommodity/index.js +2 -2
- package/lib/materials/sxp/template/MultiCommodity/material.js +1 -2
- package/lib/materials/sxp/template/MultiCommodityDiro/index.js +2 -2
- package/lib/materials/sxp/template/MultiCommodityDiro/material.js +2 -3
- package/lib/materials/sxp/template/MultiCommodityDiroNew/index.js +2 -2
- package/lib/materials/sxp/template/MultiCommodityDiroNew/material.js +2 -4
- package/lib/materials/sxp/template/NineCommodity/material.js +2 -3
- package/lib/materials/sxp/template/components/CommodityGroup.js +1 -1
- package/lib/materials/sxp/template/components/settingRender.js +1 -1
- package/package.json +1 -1
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AniLinkPopup = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const settingRender_1 = tslib_1.__importDefault(require("./settingRender"));
|
|
6
|
+
const interactionRender_1 = tslib_1.__importDefault(require("./interactionRender"));
|
|
6
7
|
const _1 = tslib_1.__importDefault(require("."));
|
|
7
8
|
const create_1 = require("../../../../core/create");
|
|
8
|
-
const interactionRender_1 = tslib_1.__importDefault(require("./interactionRender"));
|
|
9
9
|
const AniLinkPopup = (0, create_1.createMaterial)(_1.default, {
|
|
10
10
|
displayName: '竖版弹窗CTA',
|
|
11
11
|
icon: '',
|
|
@@ -28,7 +28,6 @@ const AniLinkPopup = (0, create_1.createMaterial)(_1.default, {
|
|
|
28
28
|
title: {
|
|
29
29
|
fontSize: 14,
|
|
30
30
|
color: '#000',
|
|
31
|
-
textAlign: 'left',
|
|
32
31
|
lineHeight: 2.6
|
|
33
32
|
},
|
|
34
33
|
ctaTitle: {
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CommodityDetail = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const settingRender_1 = tslib_1.__importDefault(require("./settingRender"));
|
|
6
|
+
const interactionRender_1 = tslib_1.__importDefault(require("./interactionRender"));
|
|
6
7
|
const _1 = tslib_1.__importDefault(require("."));
|
|
7
8
|
const create_1 = require("../../../../core/create");
|
|
8
|
-
const interactionRender_1 = tslib_1.__importDefault(require("./interactionRender"));
|
|
9
9
|
const CommodityDetail = (0, create_1.createMaterial)(_1.default, {
|
|
10
10
|
displayName: '商品详情',
|
|
11
11
|
icon: '',
|
|
@@ -44,7 +44,6 @@ const CommodityDetail = (0, create_1.createMaterial)(_1.default, {
|
|
|
44
44
|
taxInfo: {
|
|
45
45
|
color: '#000',
|
|
46
46
|
fontSize: 13,
|
|
47
|
-
textAlign: 'left',
|
|
48
47
|
marginBottom: '10px'
|
|
49
48
|
}
|
|
50
49
|
},
|
|
@@ -3,12 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const css_1 = require("@emotion/css");
|
|
5
5
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
|
+
const lodash_1 = require("lodash");
|
|
7
|
+
const Img_1 = tslib_1.__importDefault(require("../../template/components/Img"));
|
|
6
8
|
const hooks_1 = require("../../../../core/hooks");
|
|
7
9
|
require("./index.less");
|
|
8
10
|
const useEventReport_1 = require("../../../../core/hooks/useEventReport");
|
|
9
11
|
const tool_1 = require("../../../../core/utils/tool");
|
|
10
|
-
const Img_1 = tslib_1.__importDefault(require("../../template/components/Img"));
|
|
11
|
-
const lodash_1 = require("lodash");
|
|
12
12
|
const materials_1 = require("../../../../core/utils/materials");
|
|
13
13
|
const CommodityList = (_a) => {
|
|
14
14
|
var _b, _c, _d;
|
|
@@ -55,12 +55,11 @@ const CommodityList = (_a) => {
|
|
|
55
55
|
react_1.default.createElement("button", Object.assign({ role: 'button', "aria-label": item === null || item === void 0 ? void 0 : item.title, tabIndex: 0, className: (0, css_1.css)({
|
|
56
56
|
display: 'flex',
|
|
57
57
|
alignItems: 'normal',
|
|
58
|
-
width: '100%'
|
|
59
|
-
textAlign: 'left'
|
|
58
|
+
width: '100%'
|
|
60
59
|
}) }, props),
|
|
61
60
|
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, translateY: translateY, imgStyle: commodityPicture, enableEventReport: false }),
|
|
62
61
|
react_1.default.createElement("div", { style: {
|
|
63
|
-
width: `calc(100% - ${(_e = commodityPicture === null || commodityPicture === void 0 ? void 0 : commodityPicture.width) !== null && _e !== void 0 ? _e : 0}px - ${(_f = commodityPicture === null || commodityPicture === void 0 ? void 0 : commodityPicture.
|
|
62
|
+
width: `calc(100% - ${(_e = commodityPicture === null || commodityPicture === void 0 ? void 0 : commodityPicture.width) !== null && _e !== void 0 ? _e : 0}px - ${(_f = commodityPicture === null || commodityPicture === void 0 ? void 0 : commodityPicture.marginInlineEnd) !== null && _f !== void 0 ? _f : 0}px)`,
|
|
64
63
|
display: 'flex',
|
|
65
64
|
flexDirection: 'column',
|
|
66
65
|
justifyContent: 'space-between'
|
|
@@ -23,12 +23,11 @@ const Appoint = (0, create_1.createMaterial)(_1.default, {
|
|
|
23
23
|
borderRadius: 3,
|
|
24
24
|
width: 30,
|
|
25
25
|
height: 30,
|
|
26
|
-
|
|
26
|
+
marginInlineEnd: 8
|
|
27
27
|
},
|
|
28
28
|
ctaTitle: {
|
|
29
29
|
fontSize: 12,
|
|
30
30
|
color: '#fff',
|
|
31
|
-
textAlign: 'left',
|
|
32
31
|
width: 130,
|
|
33
32
|
height: 20
|
|
34
33
|
}
|
|
@@ -23,12 +23,11 @@ const Commodity = (0, create_1.createMaterial)(_1.default, {
|
|
|
23
23
|
borderRadius: 3,
|
|
24
24
|
width: 60,
|
|
25
25
|
height: 60,
|
|
26
|
-
|
|
26
|
+
marginInlineEnd: 8
|
|
27
27
|
},
|
|
28
28
|
title: {
|
|
29
29
|
fontSize: 12,
|
|
30
|
-
color: '#fff'
|
|
31
|
-
textAlign: 'left'
|
|
30
|
+
color: '#fff'
|
|
32
31
|
},
|
|
33
32
|
ctaTitle: {
|
|
34
33
|
fontSize: 10,
|
|
@@ -23,12 +23,11 @@ const CommodityDiro = (0, create_1.createMaterial)(_1.default, {
|
|
|
23
23
|
borderRadius: 3,
|
|
24
24
|
width: 60,
|
|
25
25
|
height: 60,
|
|
26
|
-
|
|
26
|
+
marginInlineEnd: 8
|
|
27
27
|
},
|
|
28
28
|
title: {
|
|
29
29
|
fontSize: 12,
|
|
30
|
-
color: '#000'
|
|
31
|
-
textAlign: 'left'
|
|
30
|
+
color: '#000'
|
|
32
31
|
},
|
|
33
32
|
ctaTitle: {
|
|
34
33
|
fontSize: 10,
|
|
@@ -23,19 +23,17 @@ const CommodityDiroNew = (0, create_1.createMaterial)(_1.default, {
|
|
|
23
23
|
borderRadius: 8,
|
|
24
24
|
width: 78,
|
|
25
25
|
height: 78,
|
|
26
|
-
|
|
26
|
+
marginInlineEnd: 16
|
|
27
27
|
},
|
|
28
28
|
title: {
|
|
29
29
|
fontSize: 13,
|
|
30
|
-
color: '#000'
|
|
31
|
-
textAlign: 'left'
|
|
30
|
+
color: '#000'
|
|
32
31
|
},
|
|
33
32
|
ctaTitle: {
|
|
34
33
|
textDecoration: 'underline',
|
|
35
34
|
fontSize: 14,
|
|
36
35
|
fontWeight: 'bold',
|
|
37
36
|
color: '#000',
|
|
38
|
-
textAlign: 'left',
|
|
39
37
|
width: 150,
|
|
40
38
|
height: 20
|
|
41
39
|
}
|
|
@@ -5,9 +5,9 @@ exports.Link = void 0;
|
|
|
5
5
|
const tslib_1 = require("tslib");
|
|
6
6
|
const settingRender_1 = tslib_1.__importDefault(require("../components/settingRender"));
|
|
7
7
|
const settingRender_2 = tslib_1.__importDefault(require("./settingRender"));
|
|
8
|
+
const interactionRender_1 = tslib_1.__importDefault(require("./interactionRender"));
|
|
8
9
|
const _1 = tslib_1.__importDefault(require("."));
|
|
9
10
|
const create_1 = require("../../../../core/create");
|
|
10
|
-
const interactionRender_1 = tslib_1.__importDefault(require("./interactionRender"));
|
|
11
11
|
const Link = (0, create_1.createMaterial)(_1.default, {
|
|
12
12
|
displayName: '普通CTA',
|
|
13
13
|
icon: '',
|
|
@@ -25,19 +25,17 @@ const Link = (0, create_1.createMaterial)(_1.default, {
|
|
|
25
25
|
borderRadius: 3,
|
|
26
26
|
width: 60,
|
|
27
27
|
height: 60,
|
|
28
|
-
|
|
28
|
+
marginInlineEnd: 8
|
|
29
29
|
},
|
|
30
30
|
ctaTitle: {
|
|
31
31
|
fontSize: 12,
|
|
32
32
|
color: '#fff',
|
|
33
|
-
textAlign: 'left',
|
|
34
33
|
width: 130,
|
|
35
34
|
height: 20
|
|
36
35
|
}
|
|
37
36
|
},
|
|
38
37
|
customTitle: {
|
|
39
38
|
style: {
|
|
40
|
-
textAlign: 'left',
|
|
41
39
|
textDecoration: 'underline',
|
|
42
40
|
fontWeight: 'bold',
|
|
43
41
|
width: 130,
|
|
@@ -6,10 +6,10 @@ const react_1 = tslib_1.__importStar(require("react"));
|
|
|
6
6
|
const react_2 = require("swiper/react");
|
|
7
7
|
const Img_1 = tslib_1.__importDefault(require("../components/Img"));
|
|
8
8
|
const Scroll_1 = tslib_1.__importDefault(require("../components/Scroll"));
|
|
9
|
+
const EventProvider_1 = tslib_1.__importDefault(require("../components/EventProvider"));
|
|
9
10
|
const index_module_less_1 = tslib_1.__importDefault(require("./index.module.less"));
|
|
10
11
|
const hooks_1 = require("../../../../core/hooks");
|
|
11
12
|
const tool_1 = require("../../../../core/utils/tool");
|
|
12
|
-
const EventProvider_1 = tslib_1.__importDefault(require("../components/EventProvider"));
|
|
13
13
|
const MultiCommodity = (_a) => {
|
|
14
14
|
var _b, _c;
|
|
15
15
|
var { content, style, bgImg, recData, bottom_image, ctaTempStyles, translateY = 0, isActive, index } = _a, props = tslib_1.__rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "translateY", "isActive", "index"]);
|
|
@@ -17,7 +17,7 @@ const MultiCommodity = (_a) => {
|
|
|
17
17
|
const [products] = (0, react_1.useState)((_c = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProducts) !== null && _c !== void 0 ? _c : [1, 2]);
|
|
18
18
|
return (react_1.default.createElement(Scroll_1.default, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
|
|
19
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
20
|
-
return (react_1.default.createElement(react_1.default.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (react_1.default.createElement(react_2.SwiperSlide, { key: itemIndex, className: (0, css_1.css)(Object.assign(Object.assign({}, style), { flexShrink: 0,
|
|
20
|
+
return (react_1.default.createElement(react_1.default.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (react_1.default.createElement(react_2.SwiperSlide, { key: itemIndex, className: (0, css_1.css)(Object.assign(Object.assign({}, style), { flexShrink: 0, marginInlineStart: 0, marginInlineEnd: '8px' })), tag: 'li', role: 'listitem' },
|
|
21
21
|
react_1.default.createElement(EventProvider_1.default, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props),
|
|
22
22
|
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, translateY: translateY, imgStyle: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img, isActive: isActive }),
|
|
23
23
|
react_1.default.createElement("div", { className: (0, css_1.css)({
|
|
@@ -23,12 +23,11 @@ const MultiCommodity = (0, create_1.createMaterial)(_1.default, {
|
|
|
23
23
|
borderRadius: 3,
|
|
24
24
|
width: 60,
|
|
25
25
|
height: 60,
|
|
26
|
-
|
|
26
|
+
marginInlineEnd: 8
|
|
27
27
|
},
|
|
28
28
|
title: {
|
|
29
29
|
fontSize: 12,
|
|
30
30
|
color: '#fff',
|
|
31
|
-
textAlign: 'left'
|
|
32
31
|
},
|
|
33
32
|
ctaTitle: {
|
|
34
33
|
fontSize: 10,
|
|
@@ -6,10 +6,10 @@ const react_1 = tslib_1.__importStar(require("react"));
|
|
|
6
6
|
const react_2 = require("swiper/react");
|
|
7
7
|
const Scroll_1 = tslib_1.__importDefault(require("../components/Scroll"));
|
|
8
8
|
const Img_1 = tslib_1.__importDefault(require("../components/Img"));
|
|
9
|
+
const EventProvider_1 = tslib_1.__importDefault(require("../components/EventProvider"));
|
|
9
10
|
const index_module_less_1 = tslib_1.__importDefault(require("./index.module.less"));
|
|
10
11
|
const hooks_1 = require("../../../../core/hooks");
|
|
11
12
|
const tool_1 = require("../../../../core/utils/tool");
|
|
12
|
-
const EventProvider_1 = tslib_1.__importDefault(require("../components/EventProvider"));
|
|
13
13
|
const MultiCommodityDiro = (_a) => {
|
|
14
14
|
var _b, _c;
|
|
15
15
|
var { content, style, bgImg, recData, bottom_image, ctaTempStyles, translateY = 0, isActive, index } = _a, props = tslib_1.__rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "translateY", "isActive", "index"]);
|
|
@@ -17,7 +17,7 @@ const MultiCommodityDiro = (_a) => {
|
|
|
17
17
|
const [products] = (0, react_1.useState)((_c = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProducts) !== null && _c !== void 0 ? _c : [1, 2]);
|
|
18
18
|
return (react_1.default.createElement(Scroll_1.default, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
|
|
19
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
20
|
-
return (react_1.default.createElement(react_1.default.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (react_1.default.createElement(react_2.SwiperSlide, { key: itemIndex, className: (0, css_1.css)(Object.assign(Object.assign({}, style), { flexShrink: 0,
|
|
20
|
+
return (react_1.default.createElement(react_1.default.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (react_1.default.createElement(react_2.SwiperSlide, { key: itemIndex, className: (0, css_1.css)(Object.assign(Object.assign({}, style), { flexShrink: 0, marginInlineStart: 0, marginInlineEnd: '8px' })), tag: 'li', role: 'listitem' },
|
|
21
21
|
react_1.default.createElement(EventProvider_1.default, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props),
|
|
22
22
|
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, translateY: translateY, imgStyle: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img, isActive: isActive }),
|
|
23
23
|
react_1.default.createElement("div", { className: (0, css_1.css)({
|
|
@@ -23,12 +23,11 @@ const MultiCommodityDiro = (0, create_1.createMaterial)(_1.default, {
|
|
|
23
23
|
borderRadius: 3,
|
|
24
24
|
width: 60,
|
|
25
25
|
height: 60,
|
|
26
|
-
|
|
26
|
+
marginInlineEnd: 8
|
|
27
27
|
},
|
|
28
28
|
title: {
|
|
29
29
|
fontSize: 12,
|
|
30
|
-
color: '#000'
|
|
31
|
-
textAlign: 'left'
|
|
30
|
+
color: '#000'
|
|
32
31
|
},
|
|
33
32
|
ctaTitle: {
|
|
34
33
|
fontSize: 10,
|
|
@@ -6,10 +6,10 @@ const react_1 = tslib_1.__importStar(require("react"));
|
|
|
6
6
|
const react_2 = require("swiper/react");
|
|
7
7
|
const Scroll_1 = tslib_1.__importDefault(require("../components/Scroll"));
|
|
8
8
|
const Img_1 = tslib_1.__importDefault(require("../components/Img"));
|
|
9
|
+
const EventProvider_1 = tslib_1.__importDefault(require("../components/EventProvider"));
|
|
9
10
|
const index_module_less_1 = tslib_1.__importDefault(require("./index.module.less"));
|
|
10
11
|
const hooks_1 = require("../../../../core/hooks");
|
|
11
12
|
const tool_1 = require("../../../../core/utils/tool");
|
|
12
|
-
const EventProvider_1 = tslib_1.__importDefault(require("../components/EventProvider"));
|
|
13
13
|
const MultiCommodityDiroNew = (_a) => {
|
|
14
14
|
var _b, _c;
|
|
15
15
|
var { content, style, bgImg, recData, bottom_image, ctaTempStyles, translateY = 0, isActive, index } = _a, props = tslib_1.__rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "translateY", "isActive", "index"]);
|
|
@@ -17,7 +17,7 @@ const MultiCommodityDiroNew = (_a) => {
|
|
|
17
17
|
const [products] = (0, react_1.useState)((_c = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProducts) !== null && _c !== void 0 ? _c : [1, 2]);
|
|
18
18
|
return (react_1.default.createElement(Scroll_1.default, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
|
|
19
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
20
|
-
return (react_1.default.createElement(react_1.default.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (react_1.default.createElement(react_2.SwiperSlide, { key: itemIndex, className: (0, css_1.css)(Object.assign(Object.assign({}, style), { flexShrink: 0,
|
|
20
|
+
return (react_1.default.createElement(react_1.default.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (react_1.default.createElement(react_2.SwiperSlide, { key: itemIndex, className: (0, css_1.css)(Object.assign(Object.assign({}, style), { flexShrink: 0, marginInlineStart: 0, marginInlineEnd: '8px' })), tag: 'li', role: 'listitem' },
|
|
21
21
|
react_1.default.createElement(EventProvider_1.default, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props),
|
|
22
22
|
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, translateY: translateY, imgStyle: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img, isActive: isActive }),
|
|
23
23
|
react_1.default.createElement("div", { className: (0, css_1.css)({
|
|
@@ -23,19 +23,17 @@ const MultiCommodityDiroNew = (0, create_1.createMaterial)(_1.default, {
|
|
|
23
23
|
borderRadius: 8,
|
|
24
24
|
width: 78,
|
|
25
25
|
height: 78,
|
|
26
|
-
|
|
26
|
+
marginInlineEnd: 16
|
|
27
27
|
},
|
|
28
28
|
title: {
|
|
29
29
|
fontSize: 12,
|
|
30
|
-
color: '#000'
|
|
31
|
-
textAlign: 'left'
|
|
30
|
+
color: '#000'
|
|
32
31
|
},
|
|
33
32
|
ctaTitle: {
|
|
34
33
|
textDecoration: 'underline',
|
|
35
34
|
fontSize: 12,
|
|
36
35
|
fontWeight: 'bold',
|
|
37
36
|
color: '#000',
|
|
38
|
-
textAlign: 'left',
|
|
39
37
|
width: 150,
|
|
40
38
|
height: 20
|
|
41
39
|
}
|
|
@@ -23,12 +23,11 @@ const NineCommodity = (0, create_1.createMaterial)(_1.default, {
|
|
|
23
23
|
borderRadius: 3,
|
|
24
24
|
width: 60,
|
|
25
25
|
height: 60,
|
|
26
|
-
|
|
26
|
+
marginInlineEnd: 8
|
|
27
27
|
},
|
|
28
28
|
title: {
|
|
29
29
|
fontSize: 12,
|
|
30
|
-
color: '#fff'
|
|
31
|
-
textAlign: 'left'
|
|
30
|
+
color: '#fff'
|
|
32
31
|
},
|
|
33
32
|
ctaTitle: {
|
|
34
33
|
fontSize: 10,
|
|
@@ -24,7 +24,7 @@ const CommodityGroup = ({ products, data, defImg, style, onCLick, popupDetailDat
|
|
|
24
24
|
return (react_1.default.createElement(react_1.default.Fragment, null, (item === null || item === void 0 ? void 0 : item.bindCta) ? (react_1.default.createElement(react_2.SwiperSlide, { className: (0, css_1.css)({
|
|
25
25
|
width: '50px',
|
|
26
26
|
height: '50px',
|
|
27
|
-
|
|
27
|
+
marginInlineEnd: '10px'
|
|
28
28
|
}), onClick: () => {
|
|
29
29
|
handleClick(item, index);
|
|
30
30
|
}, key: index },
|