pb-sxp-ui 1.17.0 → 1.17.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 +173 -161
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +7 -15
- package/dist/index.js +173 -161
- 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 +173 -161
- 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/index.js +3 -5
- package/es/core/components/DiyStoryPreview/index.js +18 -7
- package/es/core/components/SxpPageRender/ExpandableText.js +2 -2
- package/es/core/components/SxpPageRender/RenderCard.d.ts +1 -0
- package/es/core/components/SxpPageRender/RenderCard.js +2 -14
- package/es/core/components/SxpPageRender/index.js +4 -4
- package/es/materials/sxp/consentPopup/Display/index.js +1 -1
- package/es/materials/sxp/cta/AniLinkPopup/material.js +3 -2
- package/es/materials/sxp/popup/CommodityDetail/material.js +2 -1
- package/es/materials/sxp/popup/CommodityList/index.js +5 -4
- 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 +2 -1
- package/es/materials/sxp/template/Commodity/material.js +3 -2
- package/es/materials/sxp/template/CommodityDiro/material.js +3 -2
- package/es/materials/sxp/template/CommodityDiroNew/material.js +4 -2
- package/es/materials/sxp/template/Link/material.js +4 -2
- package/es/materials/sxp/template/MultiCommodity/index.js +1 -1
- package/es/materials/sxp/template/MultiCommodity/material.js +2 -1
- package/es/materials/sxp/template/MultiCommodityDiro/index.js +1 -1
- package/es/materials/sxp/template/MultiCommodityDiro/material.js +3 -2
- package/es/materials/sxp/template/MultiCommodityDiroNew/index.js +1 -1
- package/es/materials/sxp/template/MultiCommodityDiroNew/material.js +4 -2
- package/es/materials/sxp/template/NineCommodity/material.js +3 -2
- 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/index.js +3 -5
- package/lib/core/components/DiyStoryPreview/index.js +18 -7
- package/lib/core/components/SxpPageRender/ExpandableText.js +2 -2
- package/lib/core/components/SxpPageRender/RenderCard.d.ts +1 -0
- package/lib/core/components/SxpPageRender/RenderCard.js +2 -14
- package/lib/core/components/SxpPageRender/index.js +4 -4
- package/lib/materials/sxp/consentPopup/Display/index.js +1 -1
- package/lib/materials/sxp/cta/AniLinkPopup/material.js +2 -1
- package/lib/materials/sxp/popup/CommodityDetail/material.js +2 -1
- package/lib/materials/sxp/popup/CommodityList/index.js +5 -4
- 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 +2 -1
- package/lib/materials/sxp/template/Commodity/material.js +3 -2
- package/lib/materials/sxp/template/CommodityDiro/material.js +3 -2
- package/lib/materials/sxp/template/CommodityDiroNew/material.js +4 -2
- package/lib/materials/sxp/template/Link/material.js +4 -2
- package/lib/materials/sxp/template/MultiCommodity/index.js +1 -1
- package/lib/materials/sxp/template/MultiCommodity/material.js +2 -1
- package/lib/materials/sxp/template/MultiCommodityDiro/index.js +1 -1
- package/lib/materials/sxp/template/MultiCommodityDiro/material.js +3 -2
- package/lib/materials/sxp/template/MultiCommodityDiroNew/index.js +1 -1
- package/lib/materials/sxp/template/MultiCommodityDiroNew/material.js +4 -2
- package/lib/materials/sxp/template/NineCommodity/material.js +3 -2
- 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
@@ -47,7 +47,7 @@ const ExpandableText = ({ text, maxStr = 108, style, className, onClick, foldTex
|
|
47
47
|
display: '-webkit-box',
|
48
48
|
WebkitBoxOrient: 'vertical'
|
49
49
|
})), { wordBreak: 'break-word', textRendering: 'geometricPrecision', fontKerning: 'none', textSizeAdjust: '100%', boxSizing: 'border-box', contain: 'content' }), dangerouslySetInnerHTML: { __html: (0, tool_1.setFontForText)(text === null || text === void 0 ? void 0 : text.replace(/\n/g, '</br>'), textStyle) } }),
|
50
|
-
react_1.default.createElement("div", { ref: realRef, style: {
|
50
|
+
isPost && (react_1.default.createElement("div", { ref: realRef, style: {
|
51
51
|
wordBreak: 'break-word',
|
52
52
|
textRendering: 'geometricPrecision',
|
53
53
|
fontKerning: 'none',
|
@@ -58,7 +58,7 @@ const ExpandableText = ({ text, maxStr = 108, style, className, onClick, foldTex
|
|
58
58
|
opacity: 0,
|
59
59
|
clipPath: 'inset(100%)',
|
60
60
|
transform: 'translateX(-9999px)'
|
61
|
-
}, dangerouslySetInnerHTML: { __html: (0, tool_1.setFontForText)(text === null || text === void 0 ? void 0 : text.replace(/\n/g, '</br>'), textStyle) } }),
|
61
|
+
}, dangerouslySetInnerHTML: { __html: (0, tool_1.setFontForText)(text === null || text === void 0 ? void 0 : text.replace(/\n/g, '</br>'), textStyle) } })),
|
62
62
|
text && isPost && isShow && (react_1.default.createElement("button", { "aria-label": isShowMore ? unfoldText || 'show less' : foldText || 'show more', style: { textDecoration: 'underline', cursor: 'pointer' }, onClick: onClick !== null && onClick !== void 0 ? onClick : handleClick, dangerouslySetInnerHTML: {
|
63
63
|
__html: (0, tool_1.setFontForText)(isShowMore ? unfoldText || 'show less' : foldText || 'show more', textStyle)
|
64
64
|
} }))));
|
@@ -6,22 +6,10 @@ require("./index.less");
|
|
6
6
|
const lodash_1 = require("lodash");
|
7
7
|
const withBindDataSource_1 = tslib_1.__importDefault(require("../../../core/hoc/withBindDataSource"));
|
8
8
|
const hooks_1 = require("../../../core/hooks");
|
9
|
-
const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive, isNineProduct }) => {
|
10
|
-
var _a, _b, _c, _d, _e;
|
9
|
+
const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive, value, isNineProduct }) => {
|
11
10
|
const { schema } = (0, hooks_1.useEditor)();
|
12
11
|
if (!(rec === null || rec === void 0 ? void 0 : rec.video))
|
13
12
|
return null;
|
14
|
-
let cta = null;
|
15
|
-
if ((_b = (_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.bindProducts) === null || _b === void 0 ? void 0 : _b.length) {
|
16
|
-
cta = '多商品CTA';
|
17
|
-
}
|
18
|
-
else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProduct) {
|
19
|
-
cta = '商品CTA';
|
20
|
-
}
|
21
|
-
else {
|
22
|
-
cta = (_e = (_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.bindCta) === null || _e === void 0 ? void 0 : _e.itemId;
|
23
|
-
}
|
24
|
-
const value = tempMap === null || tempMap === void 0 ? void 0 : tempMap[cta];
|
25
13
|
const renderComp = (0, react_1.useMemo)(() => {
|
26
14
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
|
27
15
|
if (includesCtaType && !(includesCtaType === null || includesCtaType === void 0 ? void 0 : includesCtaType.includes((_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type)))
|
@@ -46,7 +34,7 @@ const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive,
|
|
46
34
|
const sbf = style.backdropFilter;
|
47
35
|
style.backdropFilter = `blur(${sbf !== null && sbf !== void 0 ? sbf : 0}px)`;
|
48
36
|
}
|
49
|
-
return (react_1.default.createElement(Component, Object.assign({ style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), style), { zIndex: 50,
|
37
|
+
return (react_1.default.createElement(Component, Object.assign({ style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), style), { zIndex: 50, marginLeft: '20px', boxSizing: 'border-box', transform: 'translate3d(0px, 0px, 0px)' }), textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (_z = value === null || value === void 0 ? void 0 : value.item) === null || _z === void 0 ? void 0 : _z.textStyle), bindDatas: (_1 = (_0 = value === null || value === void 0 ? void 0 : value.item) === null || _0 === void 0 ? void 0 : _0.bindDatas) !== null && _1 !== void 0 ? _1 : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_2 = value === null || value === void 0 ? void 0 : value.item) === null || _2 === void 0 ? void 0 : _2.props, { event: ((_3 = value === null || value === void 0 ? void 0 : value.item) === null || _3 === void 0 ? void 0 : _3.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id, key: value === null || value === void 0 ? void 0 : value.id, recData: rec, isExternalLink: isExternalLink, index: index, isActive: isActive })));
|
50
38
|
}
|
51
39
|
else {
|
52
40
|
return null;
|
@@ -317,17 +317,17 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
317
317
|
index === ((rtcList === null || rtcList === void 0 ? void 0 : rtcList[0]) === 'organic menu' ? 2 : 1) &&
|
318
318
|
((_f = ['MultiCommodity', 'MultiCommodityDiro', 'MultiCommodityDiroNew']) === null || _f === void 0 ? void 0 : _f.includes((_g = value === null || value === void 0 ? void 0 : value.item) === null || _g === void 0 ? void 0 : _g.type));
|
319
319
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
320
|
-
isNineProduct && (react_1.default.createElement(RenderCard_1.default, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, isNineProduct: isNineProduct })),
|
320
|
+
isNineProduct && (react_1.default.createElement(RenderCard_1.default, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, value: value, isNineProduct: isNineProduct })),
|
321
321
|
((_h = rec === null || rec === void 0 ? void 0 : rec.video) === null || _h === void 0 ? void 0 : _h.title) && !isShowMore && react_1.default.createElement("div", { className: 'clc-sxp-bottom-shadow' }),
|
322
322
|
react_1.default.createElement("div", { className: 'clc-sxp-bottom', style: { marginBottom: `${(_j = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.bottomInfoDist) !== null && _j !== void 0 ? _j : 40}px` } },
|
323
323
|
react_1.default.createElement(Nudge_1.default, { nudge: nudge }),
|
324
324
|
((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) === undefined || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA)) && !isNineProduct ? (react_1.default.createElement("div", { className: 'clc-sxp-bottom-card' },
|
325
|
-
react_1.default.createElement(RenderCard_1.default, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex }))) : null,
|
325
|
+
react_1.default.createElement(RenderCard_1.default, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, value: value }))) : null,
|
326
326
|
react_1.default.createElement("div", null,
|
327
327
|
react_1.default.createElement(ExpandableText_1.default, { className: 'clc-sxp-bottom-text', isPost: true, foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, text: (_l = (_k = rec === null || rec === void 0 ? void 0 : rec.video) === null || _k === void 0 ? void 0 : _k.title) !== null && _l !== void 0 ? _l : '', style: Object.assign(Object.assign({}, descStyle), { textShadow: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isOpenTextShadow) ? '2px 2px 4px rgba(0, 0, 0, 0.5)' : 'none' }), onChange: onExpandableChange }),
|
328
|
-
react_1.default.createElement(RenderCard_1.default, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLink'], isActive: index === activeIndex }),
|
328
|
+
react_1.default.createElement(RenderCard_1.default, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLink'], isActive: index === activeIndex, value: value }),
|
329
329
|
react_1.default.createElement(Hashtag_1.default, { index: activeIndex, tags: (_o = (_m = rec === null || rec === void 0 ? void 0 : rec.video) === null || _m === void 0 ? void 0 : _m.hashTags) !== null && _o !== void 0 ? _o : [], itemId: (_p = rec === null || rec === void 0 ? void 0 : rec.video) === null || _p === void 0 ? void 0 : _p.itemId, itemType: ((_q = rec === null || rec === void 0 ? void 0 : rec.video) === null || _q === void 0 ? void 0 : _q.itemId) ? 'VIDEO' : null, rec: rec, hashTagStyle: hashTagStyle, hashTagRightMargin: containerWidth - (hashTagRightMargin !== null && hashTagRightMargin !== void 0 ? hashTagRightMargin : 0) }))),
|
330
|
-
react_1.default.createElement(RenderCard_1.default, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex })));
|
330
|
+
react_1.default.createElement(RenderCard_1.default, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex, value: value })));
|
331
331
|
}
|
332
332
|
return null;
|
333
333
|
}, [
|
@@ -28,7 +28,7 @@ const Display = (_a) => {
|
|
28
28
|
react_1.default.createElement("span", { style: content === null || content === void 0 ? void 0 : content.style, dangerouslySetInnerHTML: {
|
29
29
|
__html: (0, tool_1.setFontForText)((_b = content === null || content === void 0 ? void 0 : content.text) === null || _b === void 0 ? void 0 : _b.replace(/\n/g, '</br>'), content === null || content === void 0 ? void 0 : content.style)
|
30
30
|
} }),
|
31
|
-
react_1.default.createElement("span", { style: Object.assign(Object.assign({}, interaction === null || interaction === void 0 ? void 0 : interaction.style), {
|
31
|
+
react_1.default.createElement("span", { style: Object.assign(Object.assign({}, interaction === null || interaction === void 0 ? void 0 : interaction.style), { marginLeft: '5px' }), dangerouslySetInnerHTML: {
|
32
32
|
__html: (0, tool_1.setFontForText)((_c = interaction === null || interaction === void 0 ? void 0 : interaction.text) === null || _c === void 0 ? void 0 : _c.replace(/\n/g, '</br>'), interaction === null || interaction === void 0 ? void 0 : interaction.style)
|
33
33
|
}, onClick: handleClick })),
|
34
34
|
isShowClose && (react_1.default.createElement("button", { "aria-label": 'close', className: 'consentPopupDisplay-close', onClick: handleClickClose },
|
@@ -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"));
|
7
6
|
const _1 = tslib_1.__importDefault(require("."));
|
8
7
|
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,6 +28,7 @@ const AniLinkPopup = (0, create_1.createMaterial)(_1.default, {
|
|
28
28
|
title: {
|
29
29
|
fontSize: 14,
|
30
30
|
color: '#000',
|
31
|
+
textAlign: 'left',
|
31
32
|
lineHeight: 2.6
|
32
33
|
},
|
33
34
|
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"));
|
7
6
|
const _1 = tslib_1.__importDefault(require("."));
|
8
7
|
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,6 +44,7 @@ const CommodityDetail = (0, create_1.createMaterial)(_1.default, {
|
|
44
44
|
taxInfo: {
|
45
45
|
color: '#000',
|
46
46
|
fontSize: 13,
|
47
|
+
textAlign: 'left',
|
47
48
|
marginBottom: '10px'
|
48
49
|
}
|
49
50
|
},
|
@@ -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"));
|
8
6
|
const hooks_1 = require("../../../../core/hooks");
|
9
7
|
require("./index.less");
|
10
8
|
const useEventReport_1 = require("../../../../core/hooks/useEventReport");
|
11
9
|
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,11 +55,12 @@ 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%'
|
58
|
+
width: '100%',
|
59
|
+
textAlign: 'left'
|
59
60
|
}) }, props),
|
60
61
|
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 }),
|
61
62
|
react_1.default.createElement("div", { style: {
|
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.
|
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.marginRight) !== null && _f !== void 0 ? _f : 0}px)`,
|
63
64
|
display: 'flex',
|
64
65
|
flexDirection: 'column',
|
65
66
|
justifyContent: 'space-between'
|
@@ -23,11 +23,12 @@ const Appoint = (0, create_1.createMaterial)(_1.default, {
|
|
23
23
|
borderRadius: 3,
|
24
24
|
width: 30,
|
25
25
|
height: 30,
|
26
|
-
|
26
|
+
marginRight: 8
|
27
27
|
},
|
28
28
|
ctaTitle: {
|
29
29
|
fontSize: 12,
|
30
30
|
color: '#fff',
|
31
|
+
textAlign: 'left',
|
31
32
|
width: 130,
|
32
33
|
height: 20
|
33
34
|
}
|
@@ -23,11 +23,12 @@ const Commodity = (0, create_1.createMaterial)(_1.default, {
|
|
23
23
|
borderRadius: 3,
|
24
24
|
width: 60,
|
25
25
|
height: 60,
|
26
|
-
|
26
|
+
marginRight: 8
|
27
27
|
},
|
28
28
|
title: {
|
29
29
|
fontSize: 12,
|
30
|
-
color: '#fff'
|
30
|
+
color: '#fff',
|
31
|
+
textAlign: 'left'
|
31
32
|
},
|
32
33
|
ctaTitle: {
|
33
34
|
fontSize: 10,
|
@@ -23,11 +23,12 @@ const CommodityDiro = (0, create_1.createMaterial)(_1.default, {
|
|
23
23
|
borderRadius: 3,
|
24
24
|
width: 60,
|
25
25
|
height: 60,
|
26
|
-
|
26
|
+
marginRight: 8
|
27
27
|
},
|
28
28
|
title: {
|
29
29
|
fontSize: 12,
|
30
|
-
color: '#000'
|
30
|
+
color: '#000',
|
31
|
+
textAlign: 'left'
|
31
32
|
},
|
32
33
|
ctaTitle: {
|
33
34
|
fontSize: 10,
|
@@ -23,17 +23,19 @@ const CommodityDiroNew = (0, create_1.createMaterial)(_1.default, {
|
|
23
23
|
borderRadius: 8,
|
24
24
|
width: 78,
|
25
25
|
height: 78,
|
26
|
-
|
26
|
+
marginRight: 16
|
27
27
|
},
|
28
28
|
title: {
|
29
29
|
fontSize: 13,
|
30
|
-
color: '#000'
|
30
|
+
color: '#000',
|
31
|
+
textAlign: 'left'
|
31
32
|
},
|
32
33
|
ctaTitle: {
|
33
34
|
textDecoration: 'underline',
|
34
35
|
fontSize: 14,
|
35
36
|
fontWeight: 'bold',
|
36
37
|
color: '#000',
|
38
|
+
textAlign: 'left',
|
37
39
|
width: 150,
|
38
40
|
height: 20
|
39
41
|
}
|
@@ -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"));
|
9
8
|
const _1 = tslib_1.__importDefault(require("."));
|
10
9
|
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,17 +25,19 @@ const Link = (0, create_1.createMaterial)(_1.default, {
|
|
25
25
|
borderRadius: 3,
|
26
26
|
width: 60,
|
27
27
|
height: 60,
|
28
|
-
|
28
|
+
marginRight: 8
|
29
29
|
},
|
30
30
|
ctaTitle: {
|
31
31
|
fontSize: 12,
|
32
32
|
color: '#fff',
|
33
|
+
textAlign: 'left',
|
33
34
|
width: 130,
|
34
35
|
height: 20
|
35
36
|
}
|
36
37
|
},
|
37
38
|
customTitle: {
|
38
39
|
style: {
|
40
|
+
textAlign: 'left',
|
39
41
|
textDecoration: 'underline',
|
40
42
|
fontWeight: 'bold',
|
41
43
|
width: 130,
|
@@ -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, marginLeft: 0, marginRight: '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,11 +23,12 @@ const MultiCommodity = (0, create_1.createMaterial)(_1.default, {
|
|
23
23
|
borderRadius: 3,
|
24
24
|
width: 60,
|
25
25
|
height: 60,
|
26
|
-
|
26
|
+
marginRight: 8
|
27
27
|
},
|
28
28
|
title: {
|
29
29
|
fontSize: 12,
|
30
30
|
color: '#fff',
|
31
|
+
textAlign: 'left'
|
31
32
|
},
|
32
33
|
ctaTitle: {
|
33
34
|
fontSize: 10,
|
@@ -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, marginLeft: 0, marginRight: '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,11 +23,12 @@ const MultiCommodityDiro = (0, create_1.createMaterial)(_1.default, {
|
|
23
23
|
borderRadius: 3,
|
24
24
|
width: 60,
|
25
25
|
height: 60,
|
26
|
-
|
26
|
+
marginRight: 8
|
27
27
|
},
|
28
28
|
title: {
|
29
29
|
fontSize: 12,
|
30
|
-
color: '#000'
|
30
|
+
color: '#000',
|
31
|
+
textAlign: 'left'
|
31
32
|
},
|
32
33
|
ctaTitle: {
|
33
34
|
fontSize: 10,
|
@@ -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, marginLeft: 0, marginRight: '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,17 +23,19 @@ const MultiCommodityDiroNew = (0, create_1.createMaterial)(_1.default, {
|
|
23
23
|
borderRadius: 8,
|
24
24
|
width: 78,
|
25
25
|
height: 78,
|
26
|
-
|
26
|
+
marginRight: 16
|
27
27
|
},
|
28
28
|
title: {
|
29
29
|
fontSize: 12,
|
30
|
-
color: '#000'
|
30
|
+
color: '#000',
|
31
|
+
textAlign: 'left'
|
31
32
|
},
|
32
33
|
ctaTitle: {
|
33
34
|
textDecoration: 'underline',
|
34
35
|
fontSize: 12,
|
35
36
|
fontWeight: 'bold',
|
36
37
|
color: '#000',
|
38
|
+
textAlign: 'left',
|
37
39
|
width: 150,
|
38
40
|
height: 20
|
39
41
|
}
|
@@ -23,11 +23,12 @@ const NineCommodity = (0, create_1.createMaterial)(_1.default, {
|
|
23
23
|
borderRadius: 3,
|
24
24
|
width: 60,
|
25
25
|
height: 60,
|
26
|
-
|
26
|
+
marginRight: 8
|
27
27
|
},
|
28
28
|
title: {
|
29
29
|
fontSize: 12,
|
30
|
-
color: '#fff'
|
30
|
+
color: '#fff',
|
31
|
+
textAlign: 'left'
|
31
32
|
},
|
32
33
|
ctaTitle: {
|
33
34
|
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
|
+
marginRight: '10px'
|
28
28
|
}), onClick: () => {
|
29
29
|
handleClick(item, index);
|
30
30
|
}, key: index },
|