pb-sxp-ui 1.0.0 → 1.0.2-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/README.md +2 -2
- package/dist/index.cjs +938 -389
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +24 -18
- package/dist/index.js +938 -389
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +3 -5
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +3 -5
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +938 -389
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +3 -5
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageCore/index.d.ts +1 -0
- package/es/core/components/SxpPageCore/index.js +2 -2
- package/es/core/components/SxpPageRender/ExpandableText.d.ts +1 -0
- package/es/core/components/SxpPageRender/ExpandableText.js +16 -9
- package/es/core/components/SxpPageRender/Hashtag/index.js +1 -1
- package/es/core/components/SxpPageRender/Modal/index.d.ts +2 -0
- package/es/core/components/SxpPageRender/Modal/index.js +7 -4
- package/es/core/components/SxpPageRender/Nudge/index.d.ts +24 -0
- package/es/core/components/SxpPageRender/Nudge/index.js +13 -0
- package/es/core/components/SxpPageRender/PictureGroup/index.js +11 -7
- package/es/core/components/SxpPageRender/Popup/index.js +3 -3
- package/es/core/components/SxpPageRender/VideoWidget/index.js +30 -21
- package/es/core/components/SxpPageRender/WaterFall/WaterfallList.js +4 -3
- package/es/core/components/SxpPageRender/index.d.ts +20 -1
- package/es/core/components/SxpPageRender/index.js +19 -16
- package/es/core/components/SxpPageRender/typing.d.ts +1 -0
- package/es/core/components/SxpPageRender/useIconLink.d.ts +1 -1
- package/es/core/components/SxpPageRender/useIconLink.js +8 -3
- package/es/core/context/EditorContext.d.ts +5 -0
- package/es/core/context/EditorContext.js +21 -3
- package/es/core/context/SxpDataSourceProvider.js +1 -1
- package/es/core/create.d.ts +1 -1
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.d.ts +13 -1
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +20 -17
- package/es/materials/sxp/popup/CommodityDetailDiroNew/material.js +35 -1
- package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.d.ts +134 -0
- package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +175 -0
- package/es/materials/sxp/template/Appoint/index.d.ts +2 -0
- package/es/materials/sxp/template/Appoint/index.js +4 -18
- package/es/materials/sxp/template/Appoint/material.js +22 -6
- package/es/materials/sxp/template/Commodity/index.d.ts +2 -0
- package/es/materials/sxp/template/Commodity/index.js +5 -22
- package/es/materials/sxp/template/Commodity/material.js +31 -6
- package/es/materials/sxp/template/CommodityDiro/index.d.ts +2 -0
- package/es/materials/sxp/template/CommodityDiro/index.js +5 -24
- package/es/materials/sxp/template/CommodityDiro/material.js +30 -5
- package/es/materials/sxp/template/CommodityDiroNew/index.d.ts +2 -0
- package/es/materials/sxp/template/CommodityDiroNew/index.js +5 -24
- package/es/materials/sxp/template/CommodityDiroNew/material.js +32 -6
- package/es/materials/sxp/template/Link/index.d.ts +2 -0
- package/es/materials/sxp/template/Link/index.js +4 -13
- package/es/materials/sxp/template/Link/material.js +22 -5
- package/es/materials/sxp/template/MultiCommodity/index.d.ts +2 -0
- package/es/materials/sxp/template/MultiCommodity/index.js +8 -24
- package/es/materials/sxp/template/MultiCommodity/material.js +30 -5
- package/es/materials/sxp/template/MultiCommodityDiro/index.d.ts +2 -0
- package/es/materials/sxp/template/MultiCommodityDiro/index.js +8 -27
- package/es/materials/sxp/template/MultiCommodityDiro/material.js +31 -6
- package/es/materials/sxp/template/MultiCommodityDiroNew/index.d.ts +2 -0
- package/es/materials/sxp/template/MultiCommodityDiroNew/index.js +8 -25
- package/es/materials/sxp/template/MultiCommodityDiroNew/material.js +32 -6
- package/es/materials/sxp/template/components/EventProvider.d.ts +2 -1
- package/es/materials/sxp/template/components/EventProvider.js +5 -4
- package/es/materials/sxp/template/components/settingRender.d.ts +108 -0
- package/es/materials/sxp/template/components/settingRender.js +198 -0
- package/es/materials/sxp/template/components/typing.d.ts +6 -0
- package/es/materials/sxp/template/components/typing.js +1 -0
- package/lib/core/components/SxpPageCore/index.d.ts +1 -0
- package/lib/core/components/SxpPageCore/index.js +2 -2
- package/lib/core/components/SxpPageRender/ExpandableText.d.ts +1 -0
- package/lib/core/components/SxpPageRender/ExpandableText.js +16 -9
- package/lib/core/components/SxpPageRender/Hashtag/index.js +1 -1
- package/lib/core/components/SxpPageRender/Modal/index.d.ts +2 -0
- package/lib/core/components/SxpPageRender/Modal/index.js +7 -4
- package/lib/core/components/SxpPageRender/Nudge/index.d.ts +24 -0
- package/lib/core/components/SxpPageRender/Nudge/index.js +16 -0
- package/lib/core/components/SxpPageRender/PictureGroup/index.js +10 -6
- package/lib/core/components/SxpPageRender/Popup/index.js +3 -3
- package/lib/core/components/SxpPageRender/VideoWidget/index.js +30 -21
- package/lib/core/components/SxpPageRender/WaterFall/WaterfallList.js +3 -2
- package/lib/core/components/SxpPageRender/index.d.ts +20 -1
- package/lib/core/components/SxpPageRender/index.js +19 -16
- package/lib/core/components/SxpPageRender/typing.d.ts +1 -0
- package/lib/core/components/SxpPageRender/useIconLink.d.ts +1 -1
- package/lib/core/components/SxpPageRender/useIconLink.js +8 -3
- package/lib/core/context/EditorContext.d.ts +5 -0
- package/lib/core/context/EditorContext.js +21 -3
- package/lib/core/context/SxpDataSourceProvider.js +1 -1
- package/lib/core/create.d.ts +1 -1
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.d.ts +13 -1
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +20 -17
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/material.js +35 -1
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.d.ts +134 -0
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +177 -0
- package/lib/materials/sxp/template/Appoint/index.d.ts +2 -0
- package/lib/materials/sxp/template/Appoint/index.js +4 -18
- package/lib/materials/sxp/template/Appoint/material.js +22 -6
- package/lib/materials/sxp/template/Commodity/index.d.ts +2 -0
- package/lib/materials/sxp/template/Commodity/index.js +5 -22
- package/lib/materials/sxp/template/Commodity/material.js +31 -6
- package/lib/materials/sxp/template/CommodityDiro/index.d.ts +2 -0
- package/lib/materials/sxp/template/CommodityDiro/index.js +5 -24
- package/lib/materials/sxp/template/CommodityDiro/material.js +30 -5
- package/lib/materials/sxp/template/CommodityDiroNew/index.d.ts +2 -0
- package/lib/materials/sxp/template/CommodityDiroNew/index.js +5 -24
- package/lib/materials/sxp/template/CommodityDiroNew/material.js +32 -6
- package/lib/materials/sxp/template/Link/index.d.ts +2 -0
- package/lib/materials/sxp/template/Link/index.js +4 -13
- package/lib/materials/sxp/template/Link/material.js +22 -5
- package/lib/materials/sxp/template/MultiCommodity/index.d.ts +2 -0
- package/lib/materials/sxp/template/MultiCommodity/index.js +7 -23
- package/lib/materials/sxp/template/MultiCommodity/material.js +30 -5
- package/lib/materials/sxp/template/MultiCommodityDiro/index.d.ts +2 -0
- package/lib/materials/sxp/template/MultiCommodityDiro/index.js +7 -26
- package/lib/materials/sxp/template/MultiCommodityDiro/material.js +31 -6
- package/lib/materials/sxp/template/MultiCommodityDiroNew/index.d.ts +2 -0
- package/lib/materials/sxp/template/MultiCommodityDiroNew/index.js +7 -24
- package/lib/materials/sxp/template/MultiCommodityDiroNew/material.js +32 -6
- package/lib/materials/sxp/template/components/EventProvider.d.ts +2 -1
- package/lib/materials/sxp/template/components/EventProvider.js +4 -3
- package/lib/materials/sxp/template/components/settingRender.d.ts +108 -0
- package/lib/materials/sxp/template/components/settingRender.js +200 -0
- package/lib/materials/sxp/template/components/typing.d.ts +6 -0
- package/lib/materials/sxp/template/components/typing.js +2 -0
- package/package.json +2 -1
@@ -1,3 +1,4 @@
|
|
1
|
+
import settingRender from '../components/settingRender';
|
1
2
|
import interactionRender from './interactionRender';
|
2
3
|
import CommodityComponent from '.';
|
3
4
|
import { createMaterial } from '../../../../core/create';
|
@@ -8,15 +9,39 @@ const Commodity = createMaterial(CommodityComponent, {
|
|
8
9
|
type: 'Commodity',
|
9
10
|
related: {
|
10
11
|
interactionRender,
|
11
|
-
bindableProps: []
|
12
|
+
bindableProps: [],
|
13
|
+
settingRender
|
12
14
|
},
|
13
15
|
defaulSetting: {
|
14
|
-
props: {
|
16
|
+
props: {
|
17
|
+
ctaTempStyles: {
|
18
|
+
img: {
|
19
|
+
borderRadius: 3,
|
20
|
+
width: 60,
|
21
|
+
height: 60,
|
22
|
+
marginRight: 8
|
23
|
+
},
|
24
|
+
title: {
|
25
|
+
fontSize: 12,
|
26
|
+
color: '#fff',
|
27
|
+
textAlign: 'left'
|
28
|
+
},
|
29
|
+
ctaTitle: {
|
30
|
+
fontSize: 10,
|
31
|
+
color: '#fff',
|
32
|
+
textAlign: 'center',
|
33
|
+
width: 130,
|
34
|
+
height: 20,
|
35
|
+
backgroundColor: 'rgba(0,0,0,.5)'
|
36
|
+
}
|
37
|
+
}
|
38
|
+
},
|
15
39
|
style: {
|
16
|
-
padding:
|
17
|
-
|
18
|
-
|
19
|
-
borderRadius:
|
40
|
+
padding: 7,
|
41
|
+
width: 236,
|
42
|
+
height: 74,
|
43
|
+
borderRadius: 3,
|
44
|
+
backgroundColor: 'rgba(0,0,0,.3)'
|
20
45
|
}
|
21
46
|
},
|
22
47
|
w: 100,
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
+
import { ICtaTempStylesType } from '../components/typing';
|
2
3
|
import { RecItemType } from '../../../../core/components/SxpPageRender/typing';
|
3
4
|
export interface ICommodityDiroProps {
|
4
5
|
content?: string;
|
@@ -6,6 +7,7 @@ export interface ICommodityDiroProps {
|
|
6
7
|
bgImg?: Record<string, any> | string;
|
7
8
|
recData?: RecItemType;
|
8
9
|
bottom_image?: string;
|
10
|
+
ctaTempStyles?: ICtaTempStylesType;
|
9
11
|
}
|
10
12
|
declare const _default: React.NamedExoticComponent<ICommodityDiroProps>;
|
11
13
|
export default _default;
|
@@ -6,20 +6,12 @@ import styles from './index.module.less';
|
|
6
6
|
import { useSxpDataSource } from '../../../../core/hooks';
|
7
7
|
const CommodityDiro = (_a) => {
|
8
8
|
var _b, _c, _d, _e, _f, _g, _h;
|
9
|
-
var { content, style, bgImg, recData, bottom_image } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image"]);
|
9
|
+
var { content, style, bgImg, recData, bottom_image, ctaTempStyles } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles"]);
|
10
10
|
const { sxpParameter } = useSxpDataSource();
|
11
11
|
const product = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProduct;
|
12
12
|
const src = (_e = (_d = (_c = product === null || product === void 0 ? void 0 : product.homePage) === null || _c === void 0 ? void 0 : _c[0]) !== null && _d !== void 0 ? _d : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _e !== void 0 ? _e : bottom_image;
|
13
|
-
return (React.createElement(EventProvider, Object.assign({ rec: recData, className: css(Object.assign(
|
14
|
-
React.createElement("div", { className: css({
|
15
|
-
width: '60px',
|
16
|
-
height: '60px',
|
17
|
-
marginRight: '8px',
|
18
|
-
borderRadius: '3px',
|
19
|
-
overflow: 'hidden',
|
20
|
-
flexShrink: 0,
|
21
|
-
backgroundColor: '#f2f2f2'
|
22
|
-
}) },
|
13
|
+
return (React.createElement(EventProvider, Object.assign({ rec: recData, className: css(Object.assign({}, style)), style: { display: 'flex' } }, props),
|
14
|
+
React.createElement("div", { className: css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
|
23
15
|
React.createElement("img", { className: css({ width: '100%', objectFit: 'cover', height: '100%' }), src: src, hidden: !src, alt: '' })),
|
24
16
|
React.createElement("div", { className: css({
|
25
17
|
color: '#fff',
|
@@ -29,18 +21,7 @@ const CommodityDiro = (_a) => {
|
|
29
21
|
width: '100%',
|
30
22
|
overflow: 'hidden'
|
31
23
|
}) },
|
32
|
-
React.createElement("div", { className: styles['tow-line-ellipsis'] }, (_f = product === null || product === void 0 ? void 0 : product.title) !== null && _f !== void 0 ? _f : 'Product Name'),
|
33
|
-
React.createElement("div", { className: css({
|
34
|
-
background: 'rgba(0,0,0,1)',
|
35
|
-
fontSize: '10px',
|
36
|
-
padding: '2px 7px',
|
37
|
-
textAlign: 'center',
|
38
|
-
textOverflow: 'ellipsis',
|
39
|
-
overflow: 'hidden',
|
40
|
-
borderRadius: '25px',
|
41
|
-
width: 'fit-content',
|
42
|
-
maxWidth: '100%',
|
43
|
-
whiteSpace: 'nowrap'
|
44
|
-
}) }, (_h = (_g = product === null || product === void 0 ? void 0 : product.bindCta) === null || _g === void 0 ? void 0 : _g.enTitle) !== null && _h !== void 0 ? _h : 'Shop Now'))));
|
24
|
+
React.createElement("div", { className: styles['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (_f = product === null || product === void 0 ? void 0 : product.title) !== null && _f !== void 0 ? _f : 'Product Name'),
|
25
|
+
React.createElement("div", { className: css(Object.assign({ padding: '2px 7px', textOverflow: 'ellipsis', overflow: 'hidden', borderRadius: '25px', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (_h = (_g = product === null || product === void 0 ? void 0 : product.bindCta) === null || _g === void 0 ? void 0 : _g.enTitle) !== null && _h !== void 0 ? _h : 'Shop Now'))));
|
45
26
|
};
|
46
27
|
export default memo(CommodityDiro);
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import settingRender from '../components/settingRender';
|
1
2
|
import interactionRender from './interactionRender';
|
2
3
|
import CommodityDiroComponent from '.';
|
3
4
|
import { createMaterial } from '../../../../core/create';
|
@@ -8,15 +9,39 @@ const CommodityDiro = createMaterial(CommodityDiroComponent, {
|
|
8
9
|
type: 'CommodityDiro',
|
9
10
|
related: {
|
10
11
|
interactionRender,
|
12
|
+
settingRender,
|
11
13
|
bindableProps: []
|
12
14
|
},
|
13
15
|
defaulSetting: {
|
14
|
-
props: {
|
16
|
+
props: {
|
17
|
+
ctaTempStyles: {
|
18
|
+
img: {
|
19
|
+
borderRadius: 3,
|
20
|
+
width: 60,
|
21
|
+
height: 60,
|
22
|
+
marginRight: 8
|
23
|
+
},
|
24
|
+
title: {
|
25
|
+
fontSize: 12,
|
26
|
+
color: '#000',
|
27
|
+
textAlign: 'left'
|
28
|
+
},
|
29
|
+
ctaTitle: {
|
30
|
+
fontSize: 10,
|
31
|
+
color: '#fff',
|
32
|
+
textAlign: 'center',
|
33
|
+
width: 80,
|
34
|
+
height: 20,
|
35
|
+
backgroundColor: 'rgba(0,0,0,1)'
|
36
|
+
}
|
37
|
+
}
|
38
|
+
},
|
15
39
|
style: {
|
16
|
-
padding:
|
17
|
-
|
18
|
-
|
19
|
-
|
40
|
+
padding: 7,
|
41
|
+
width: 236,
|
42
|
+
height: 74,
|
43
|
+
borderRadius: 3,
|
44
|
+
backgroundColor: '#fff'
|
20
45
|
}
|
21
46
|
},
|
22
47
|
w: 100,
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
+
import { ICtaTempStylesType } from '../components/typing';
|
2
3
|
import { RecItemType } from '../../../../core/components/SxpPageRender/typing';
|
3
4
|
export interface ICommodityDiroNewProps {
|
4
5
|
content?: string;
|
@@ -6,6 +7,7 @@ export interface ICommodityDiroNewProps {
|
|
6
7
|
bgImg?: Record<string, any> | string;
|
7
8
|
recData?: RecItemType;
|
8
9
|
bottom_image?: string;
|
10
|
+
ctaTempStyles?: ICtaTempStylesType;
|
9
11
|
}
|
10
12
|
declare const _default: React.NamedExoticComponent<ICommodityDiroNewProps>;
|
11
13
|
export default _default;
|
@@ -6,20 +6,12 @@ import styles from './index.module.less';
|
|
6
6
|
import { useSxpDataSource } from '../../../../core/hooks';
|
7
7
|
const CommodityDiroNew = (_a) => {
|
8
8
|
var _b, _c, _d, _e, _f, _g, _h;
|
9
|
-
var { content, style, bgImg, recData, bottom_image } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image"]);
|
9
|
+
var { content, style, bgImg, recData, bottom_image, ctaTempStyles } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles"]);
|
10
10
|
const { sxpParameter } = useSxpDataSource();
|
11
11
|
const product = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProduct;
|
12
12
|
const src = (_e = (_d = (_c = product === null || product === void 0 ? void 0 : product.homePage) === null || _c === void 0 ? void 0 : _c[0]) !== null && _d !== void 0 ? _d : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _e !== void 0 ? _e : bottom_image;
|
13
|
-
return (React.createElement(EventProvider, Object.assign({ rec: recData, className: css(Object.assign(
|
14
|
-
React.createElement("div", { className: css({
|
15
|
-
width: '78px',
|
16
|
-
height: '78px',
|
17
|
-
marginRight: '16px',
|
18
|
-
borderRadius: '8px',
|
19
|
-
overflow: 'hidden',
|
20
|
-
flexShrink: 0,
|
21
|
-
backgroundColor: '#f2f2f2'
|
22
|
-
}) },
|
13
|
+
return (React.createElement(EventProvider, Object.assign({ rec: recData, className: css(Object.assign({}, style)), style: { display: 'flex' } }, props),
|
14
|
+
React.createElement("div", { className: css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
|
23
15
|
React.createElement("img", { className: css({ width: '100%', objectFit: 'cover', height: '100%' }), src: src, hidden: !src, alt: '' })),
|
24
16
|
React.createElement("div", { className: css({
|
25
17
|
color: '#fff',
|
@@ -29,18 +21,7 @@ const CommodityDiroNew = (_a) => {
|
|
29
21
|
width: '100%',
|
30
22
|
overflow: 'hidden'
|
31
23
|
}) },
|
32
|
-
React.createElement("div", { className: styles['tow-line-ellipsis'] }, (_f = product === null || product === void 0 ? void 0 : product.title) !== null && _f !== void 0 ? _f : 'Product Name'),
|
33
|
-
React.createElement("div", { className: css({
|
34
|
-
fontSize: '13px',
|
35
|
-
fontWeight: 'bold',
|
36
|
-
textOverflow: 'ellipsis',
|
37
|
-
overflow: 'hidden',
|
38
|
-
width: 'fit-content',
|
39
|
-
maxWidth: '100%',
|
40
|
-
whiteSpace: 'nowrap',
|
41
|
-
textDecoration: 'underline',
|
42
|
-
color: '#000',
|
43
|
-
lineHeight: '20px'
|
44
|
-
}) }, (_h = (_g = product === null || product === void 0 ? void 0 : product.bindCta) === null || _g === void 0 ? void 0 : _g.enTitle) !== null && _h !== void 0 ? _h : 'Shop now'))));
|
24
|
+
React.createElement("div", { className: styles['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (_f = product === null || product === void 0 ? void 0 : product.title) !== null && _f !== void 0 ? _f : 'Product Name'),
|
25
|
+
React.createElement("div", { className: css(Object.assign({ textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (_h = (_g = product === null || product === void 0 ? void 0 : product.bindCta) === null || _g === void 0 ? void 0 : _g.enTitle) !== null && _h !== void 0 ? _h : 'Shop now'))));
|
45
26
|
};
|
46
27
|
export default memo(CommodityDiroNew);
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import settingRender from '../components/settingRender';
|
1
2
|
import interactionRender from './interactionRender';
|
2
3
|
import CommodityDiroNewComponent from '.';
|
3
4
|
import { createMaterial } from '../../../../core/create';
|
@@ -8,15 +9,40 @@ const CommodityDiroNew = createMaterial(CommodityDiroNewComponent, {
|
|
8
9
|
type: 'CommodityDiroNew',
|
9
10
|
related: {
|
10
11
|
interactionRender,
|
11
|
-
bindableProps: []
|
12
|
+
bindableProps: [],
|
13
|
+
settingRender
|
12
14
|
},
|
13
15
|
defaulSetting: {
|
14
|
-
props: {
|
16
|
+
props: {
|
17
|
+
ctaTempStyles: {
|
18
|
+
img: {
|
19
|
+
borderRadius: 8,
|
20
|
+
width: 78,
|
21
|
+
height: 78,
|
22
|
+
marginRight: 16
|
23
|
+
},
|
24
|
+
title: {
|
25
|
+
fontSize: 12,
|
26
|
+
color: '#000',
|
27
|
+
textAlign: 'left'
|
28
|
+
},
|
29
|
+
ctaTitle: {
|
30
|
+
textDecoration: 'underline',
|
31
|
+
fontSize: 12,
|
32
|
+
fontWeight: 'bold',
|
33
|
+
color: '#000',
|
34
|
+
textAlign: 'left',
|
35
|
+
width: 150,
|
36
|
+
height: 20
|
37
|
+
}
|
38
|
+
}
|
39
|
+
},
|
15
40
|
style: {
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
41
|
+
borderRadius: 4,
|
42
|
+
width: 260,
|
43
|
+
height: 86,
|
44
|
+
padding: 4,
|
45
|
+
backgroundColor: 'rgba(255,255,255,0.75)'
|
20
46
|
}
|
21
47
|
},
|
22
48
|
w: 100,
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
+
import { ICtaTempStylesType } from '../components/typing';
|
2
3
|
import { RecItemType } from '../../../../core/components/SxpPageRender/typing';
|
3
4
|
export interface ILinkProps {
|
4
5
|
content?: string;
|
@@ -6,6 +7,7 @@ export interface ILinkProps {
|
|
6
7
|
bgImg?: Record<string, any> | string;
|
7
8
|
recData?: RecItemType;
|
8
9
|
bottom_image?: string;
|
10
|
+
ctaTempStyles?: ICtaTempStylesType;
|
9
11
|
}
|
10
12
|
declare const _default: React.NamedExoticComponent<ILinkProps>;
|
11
13
|
export default _default;
|
@@ -7,7 +7,7 @@ import { useSxpDataSource } from '../../../../core/hooks';
|
|
7
7
|
import { useEventReport } from '../../../../core/hooks/useEventReport';
|
8
8
|
const Link = (_a) => {
|
9
9
|
var _b, _c, _d, _e, _f;
|
10
|
-
var { content, style, bgImg, recData, bottom_image } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image"]);
|
10
|
+
var { content, style, bgImg, recData, bottom_image, ctaTempStyles } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles"]);
|
11
11
|
const { sxpParameter, bffEventReport } = useSxpDataSource();
|
12
12
|
const { jumpToWeb } = useEventReport();
|
13
13
|
const cta = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindCta;
|
@@ -18,24 +18,15 @@ const Link = (_a) => {
|
|
18
18
|
window.location.href = window.getJointUtmLink(cta.link);
|
19
19
|
}
|
20
20
|
};
|
21
|
-
return (React.createElement(EventProvider, Object.assign({ rec: recData, className: css(Object.assign(
|
22
|
-
React.createElement("div", { className: css({
|
23
|
-
width: '60px',
|
24
|
-
height: '60px',
|
25
|
-
marginRight: '8px',
|
26
|
-
borderRadius: '3px',
|
27
|
-
backgroundColor: '#f2f2f2',
|
28
|
-
overflow: 'hidden',
|
29
|
-
flexShrink: 0
|
30
|
-
}) },
|
21
|
+
return (React.createElement(EventProvider, Object.assign({ rec: recData, className: css(Object.assign({ alignItems: 'center' }, style)), style: { display: 'flex' } }, props, { onClick: handleTo }),
|
22
|
+
React.createElement("div", { className: css(Object.assign({ backgroundColor: '#f2f2f2', overflow: 'hidden', flexShrink: 0 }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
|
31
23
|
React.createElement("img", { className: css({ width: '100%', objectFit: 'cover', height: '100%' }), src: (_e = (_d = cta === null || cta === void 0 ? void 0 : cta.icon) !== null && _d !== void 0 ? _d : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _e !== void 0 ? _e : bottom_image, alt: '' })),
|
32
24
|
React.createElement("div", { className: css({
|
33
|
-
color: '#fff',
|
34
25
|
display: 'flex',
|
35
26
|
alignItems: 'center',
|
36
27
|
width: '100%',
|
37
28
|
overflow: 'hidden'
|
38
29
|
}) },
|
39
|
-
React.createElement("div", { className: styles['tow-line-ellipsis'] }, (_f = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _f !== void 0 ? _f : 'Product Name'))));
|
30
|
+
React.createElement("div", { className: styles['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle }, (_f = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _f !== void 0 ? _f : 'Product Name'))));
|
40
31
|
};
|
41
32
|
export default memo(Link);
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import settingRender from '../components/settingRender';
|
1
2
|
import LinkComponent from '.';
|
2
3
|
import { createMaterial } from '../../../../core/create';
|
3
4
|
const Link = createMaterial(LinkComponent, {
|
@@ -6,17 +7,33 @@ const Link = createMaterial(LinkComponent, {
|
|
6
7
|
category: 'template',
|
7
8
|
type: 'Link',
|
8
9
|
related: {
|
10
|
+
settingRender: settingRender === null || settingRender === void 0 ? void 0 : settingRender.filter((i) => i.type !== 'commodityTitle'),
|
9
11
|
bindableProps: []
|
10
12
|
},
|
11
13
|
defaulSetting: {
|
12
14
|
props: {
|
13
|
-
|
15
|
+
ctaTempStyles: {
|
16
|
+
img: {
|
17
|
+
borderRadius: 3,
|
18
|
+
width: 60,
|
19
|
+
height: 60,
|
20
|
+
marginRight: 8
|
21
|
+
},
|
22
|
+
ctaTitle: {
|
23
|
+
fontSize: 12,
|
24
|
+
color: '#fff',
|
25
|
+
textAlign: 'left',
|
26
|
+
width: 130,
|
27
|
+
height: 20
|
28
|
+
}
|
29
|
+
}
|
14
30
|
},
|
15
31
|
style: {
|
16
|
-
padding:
|
17
|
-
|
18
|
-
|
19
|
-
borderRadius:
|
32
|
+
padding: 7,
|
33
|
+
width: 236,
|
34
|
+
height: 74,
|
35
|
+
borderRadius: 3,
|
36
|
+
backgroundColor: 'rgba(0,0,0,.3)'
|
20
37
|
}
|
21
38
|
},
|
22
39
|
w: 100,
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
+
import { ICtaTempStylesType } from '../components/typing';
|
2
3
|
import { RecItemType } from '../../../../core/components/SxpPageRender/typing';
|
3
4
|
export interface IMultiCommodityProps {
|
4
5
|
content?: string;
|
@@ -7,6 +8,7 @@ export interface IMultiCommodityProps {
|
|
7
8
|
recData?: RecItemType;
|
8
9
|
onClick?: () => void;
|
9
10
|
bottom_image?: string;
|
11
|
+
ctaTempStyles?: ICtaTempStylesType;
|
10
12
|
}
|
11
13
|
declare const _default: React.NamedExoticComponent<IMultiCommodityProps>;
|
12
14
|
export default _default;
|
@@ -6,12 +6,13 @@ import { throttle } from 'lodash';
|
|
6
6
|
import Img from '../components/Img';
|
7
7
|
import Scroll from '../components/Scroll';
|
8
8
|
import styles from './index.module.less';
|
9
|
-
import { useSxpDataSource } from '../../../../core/hooks';
|
9
|
+
import { useEditor, useSxpDataSource } from '../../../../core/hooks';
|
10
10
|
const MultiCommodity = (_a) => {
|
11
11
|
var _b, _c;
|
12
|
-
var { content, style, bgImg, recData, onClick, bottom_image } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "onClick", "bottom_image"]);
|
12
|
+
var { content, style, bgImg, recData, onClick, bottom_image, ctaTempStyles } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "onClick", "bottom_image", "ctaTempStyles"]);
|
13
13
|
const { sxpParameter } = useSxpDataSource();
|
14
14
|
const { ctaEvent, setPopupDetailData } = useSxpDataSource();
|
15
|
+
const { popupAni } = useEditor();
|
15
16
|
const [products, setProducts] = 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]);
|
16
17
|
const handleClick = throttle((item) => {
|
17
18
|
ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
|
@@ -20,19 +21,11 @@ const MultiCommodity = (_a) => {
|
|
20
21
|
}, recData, item);
|
21
22
|
setPopupDetailData === null || setPopupDetailData === void 0 ? void 0 : setPopupDetailData(Object.assign(Object.assign({}, recData), { video: Object.assign(Object.assign({}, recData === null || recData === void 0 ? void 0 : recData.video), { bindProduct: item }) }));
|
22
23
|
onClick === null || onClick === void 0 ? void 0 : onClick();
|
23
|
-
},
|
24
|
+
}, popupAni === null || popupAni === void 0 ? void 0 : popupAni.duration);
|
24
25
|
return (React.createElement(Scroll, null, products === null || products === void 0 ? void 0 : products.map((item) => {
|
25
26
|
var _a, _b, _c, _d, _e, _f;
|
26
|
-
return (React.createElement(SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item.itemId, className: css(Object.assign(
|
27
|
-
React.createElement("div", { className: css({
|
28
|
-
width: '60px',
|
29
|
-
height: '60px',
|
30
|
-
marginRight: '8px',
|
31
|
-
borderRadius: '3px',
|
32
|
-
overflow: 'hidden',
|
33
|
-
flexShrink: 0,
|
34
|
-
backgroundColor: '#f2f2f2'
|
35
|
-
}) },
|
27
|
+
return (React.createElement(SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item.itemId, className: css(Object.assign({ flexShrink: 0 }, style)), style: { display: 'flex' } }, props, { onClick: () => handleClick(item) }),
|
28
|
+
React.createElement("div", { className: css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
|
36
29
|
React.createElement(Img, { src: (_c = (_b = (_a = item === null || item === void 0 ? void 0 : item.homePage) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _c !== void 0 ? _c : bottom_image, rec: recData, item: item })),
|
37
30
|
React.createElement("div", { className: css({
|
38
31
|
color: '#fff',
|
@@ -42,17 +35,8 @@ const MultiCommodity = (_a) => {
|
|
42
35
|
width: '100%',
|
43
36
|
overflow: 'hidden'
|
44
37
|
}) },
|
45
|
-
React.createElement("div", { className: styles['two-line-ellipsis'] }, (_d = item === null || item === void 0 ? void 0 : item.title) !== null && _d !== void 0 ? _d : 'Product Name'),
|
46
|
-
React.createElement("div", { className: css({
|
47
|
-
background: 'rgba(0,0,0,.5)',
|
48
|
-
fontSize: '10px',
|
49
|
-
padding: '2px 7px',
|
50
|
-
width: 'auto',
|
51
|
-
textAlign: 'center',
|
52
|
-
textOverflow: 'ellipsis',
|
53
|
-
overflow: 'hidden',
|
54
|
-
whiteSpace: 'nowrap'
|
55
|
-
}) }, (_f = (_e = item === null || item === void 0 ? void 0 : item.bindCta) === null || _e === void 0 ? void 0 : _e.enTitle) !== null && _f !== void 0 ? _f : 'Shop Now'))));
|
38
|
+
React.createElement("div", { className: styles['two-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (_d = item === null || item === void 0 ? void 0 : item.title) !== null && _d !== void 0 ? _d : 'Product Name'),
|
39
|
+
React.createElement("div", { className: css(Object.assign({ padding: '2px 7px', textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (_f = (_e = item === null || item === void 0 ? void 0 : item.bindCta) === null || _e === void 0 ? void 0 : _e.enTitle) !== null && _f !== void 0 ? _f : 'Shop Now'))));
|
56
40
|
})));
|
57
41
|
};
|
58
42
|
export default memo(MultiCommodity);
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import settingRender from '../components/settingRender';
|
1
2
|
import interactionRender from './interactionRender';
|
2
3
|
import MultiCommodityComponent from '.';
|
3
4
|
import { createMaterial } from '../../../../core/create';
|
@@ -8,15 +9,39 @@ const MultiCommodity = createMaterial(MultiCommodityComponent, {
|
|
8
9
|
type: 'MultiCommodity',
|
9
10
|
related: {
|
10
11
|
interactionRender,
|
12
|
+
settingRender,
|
11
13
|
bindableProps: []
|
12
14
|
},
|
13
15
|
defaulSetting: {
|
14
|
-
props: {
|
16
|
+
props: {
|
17
|
+
ctaTempStyles: {
|
18
|
+
img: {
|
19
|
+
borderRadius: 3,
|
20
|
+
width: 60,
|
21
|
+
height: 60,
|
22
|
+
marginRight: 8
|
23
|
+
},
|
24
|
+
title: {
|
25
|
+
fontSize: 12,
|
26
|
+
color: '#fff',
|
27
|
+
textAlign: 'left'
|
28
|
+
},
|
29
|
+
ctaTitle: {
|
30
|
+
fontSize: 10,
|
31
|
+
color: '#fff',
|
32
|
+
textAlign: 'center',
|
33
|
+
width: 130,
|
34
|
+
height: 20,
|
35
|
+
backgroundColor: 'rgba(0,0,0,.5)'
|
36
|
+
}
|
37
|
+
}
|
38
|
+
},
|
15
39
|
style: {
|
16
|
-
padding:
|
17
|
-
|
18
|
-
|
19
|
-
borderRadius:
|
40
|
+
padding: 7,
|
41
|
+
width: 236,
|
42
|
+
height: 74,
|
43
|
+
borderRadius: 3,
|
44
|
+
backgroundColor: 'rgba(0,0,0,.3)'
|
20
45
|
}
|
21
46
|
},
|
22
47
|
w: 100,
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
+
import { ICtaTempStylesType } from '../components/typing';
|
2
3
|
import { RecItemType } from '../../../../core/components/SxpPageRender/typing';
|
3
4
|
export interface IMultiCommodityDiroProps {
|
4
5
|
content?: string;
|
@@ -7,6 +8,7 @@ export interface IMultiCommodityDiroProps {
|
|
7
8
|
recData?: RecItemType;
|
8
9
|
onClick?: () => void;
|
9
10
|
bottom_image?: string;
|
11
|
+
ctaTempStyles?: ICtaTempStylesType;
|
10
12
|
}
|
11
13
|
declare const _default: React.NamedExoticComponent<IMultiCommodityDiroProps>;
|
12
14
|
export default _default;
|
@@ -6,11 +6,12 @@ import { throttle } from 'lodash';
|
|
6
6
|
import Scroll from '../components/Scroll';
|
7
7
|
import Img from '../components/Img';
|
8
8
|
import styles from './index.module.less';
|
9
|
-
import { useSxpDataSource } from '../../../../core/hooks';
|
9
|
+
import { useEditor, useSxpDataSource } from '../../../../core/hooks';
|
10
10
|
const MultiCommodityDiro = (_a) => {
|
11
11
|
var _b, _c;
|
12
|
-
var { content, style, bgImg, recData, onClick, bottom_image } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "onClick", "bottom_image"]);
|
12
|
+
var { content, style, bgImg, recData, onClick, bottom_image, ctaTempStyles } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "onClick", "bottom_image", "ctaTempStyles"]);
|
13
13
|
const { ctaEvent, setPopupDetailData, sxpParameter } = useSxpDataSource();
|
14
|
+
const { popupAni } = useEditor();
|
14
15
|
const [products, setProducts] = 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]);
|
15
16
|
const handleClick = throttle((item) => {
|
16
17
|
ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
|
@@ -19,19 +20,11 @@ const MultiCommodityDiro = (_a) => {
|
|
19
20
|
}, recData, item);
|
20
21
|
setPopupDetailData === null || setPopupDetailData === void 0 ? void 0 : setPopupDetailData(Object.assign(Object.assign({}, recData), { video: Object.assign(Object.assign({}, recData === null || recData === void 0 ? void 0 : recData.video), { bindProduct: item }) }));
|
21
22
|
onClick === null || onClick === void 0 ? void 0 : onClick();
|
22
|
-
},
|
23
|
+
}, popupAni === null || popupAni === void 0 ? void 0 : popupAni.duration);
|
23
24
|
return (React.createElement(Scroll, null, products === null || products === void 0 ? void 0 : products.map((item) => {
|
24
25
|
var _a, _b, _c, _d, _e, _f;
|
25
|
-
return (React.createElement(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: css(Object.assign(
|
26
|
-
React.createElement("div", { className: css({
|
27
|
-
width: '60px',
|
28
|
-
height: '60px',
|
29
|
-
marginRight: '8px',
|
30
|
-
borderRadius: '3px',
|
31
|
-
overflow: 'hidden',
|
32
|
-
flexShrink: 0,
|
33
|
-
backgroundColor: '#f2f2f2'
|
34
|
-
}) },
|
26
|
+
return (React.createElement(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: css(Object.assign({ flexShrink: 0 }, style)), style: { display: 'flex' } }, props, { onClick: () => handleClick(item) }),
|
27
|
+
React.createElement("div", { className: css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
|
35
28
|
React.createElement(Img, { src: (_c = (_b = (_a = item === null || item === void 0 ? void 0 : item.homePage) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _c !== void 0 ? _c : bottom_image, rec: recData, item: item })),
|
36
29
|
React.createElement("div", { className: css({
|
37
30
|
color: '#000',
|
@@ -41,20 +34,8 @@ const MultiCommodityDiro = (_a) => {
|
|
41
34
|
width: '100%',
|
42
35
|
overflow: 'hidden'
|
43
36
|
}) },
|
44
|
-
React.createElement("div", { className: styles['two-line-ellipsis'] }, (_d = item === null || item === void 0 ? void 0 : item.title) !== null && _d !== void 0 ? _d : 'Product Name'),
|
45
|
-
React.createElement("div", { className: css({
|
46
|
-
background: 'rgba(0,0,0,1)',
|
47
|
-
fontSize: '10px',
|
48
|
-
padding: '2px 7px',
|
49
|
-
textAlign: 'center',
|
50
|
-
textOverflow: 'ellipsis',
|
51
|
-
overflow: 'hidden',
|
52
|
-
borderRadius: '25px',
|
53
|
-
width: 'fit-content',
|
54
|
-
maxWidth: '100%',
|
55
|
-
color: '#fff',
|
56
|
-
whiteSpace: 'nowrap'
|
57
|
-
}) }, (_f = (_e = item === null || item === void 0 ? void 0 : item.bindCta) === null || _e === void 0 ? void 0 : _e.enTitle) !== null && _f !== void 0 ? _f : 'Shop Now'))));
|
37
|
+
React.createElement("div", { className: styles['two-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (_d = item === null || item === void 0 ? void 0 : item.title) !== null && _d !== void 0 ? _d : 'Product Name'),
|
38
|
+
React.createElement("div", { className: css(Object.assign({ padding: '2px 7px', textOverflow: 'ellipsis', overflow: 'hidden', borderRadius: '25px', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (_f = (_e = item === null || item === void 0 ? void 0 : item.bindCta) === null || _e === void 0 ? void 0 : _e.enTitle) !== null && _f !== void 0 ? _f : 'Shop Now'))));
|
58
39
|
})));
|
59
40
|
};
|
60
41
|
export default memo(MultiCommodityDiro);
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import settingRender from '../components/settingRender';
|
1
2
|
import interactionRender from './interactionRender';
|
2
3
|
import MultiCommodityDiroComponent from '.';
|
3
4
|
import { createMaterial } from '../../../../core/create';
|
@@ -8,15 +9,39 @@ const MultiCommodityDiro = createMaterial(MultiCommodityDiroComponent, {
|
|
8
9
|
type: 'MultiCommodityDiro',
|
9
10
|
related: {
|
10
11
|
interactionRender,
|
11
|
-
bindableProps: []
|
12
|
+
bindableProps: [],
|
13
|
+
settingRender
|
12
14
|
},
|
13
15
|
defaulSetting: {
|
14
|
-
props: {
|
16
|
+
props: {
|
17
|
+
ctaTempStyles: {
|
18
|
+
img: {
|
19
|
+
borderRadius: 3,
|
20
|
+
width: 60,
|
21
|
+
height: 60,
|
22
|
+
marginRight: 8
|
23
|
+
},
|
24
|
+
title: {
|
25
|
+
fontSize: 12,
|
26
|
+
color: '#000',
|
27
|
+
textAlign: 'left'
|
28
|
+
},
|
29
|
+
ctaTitle: {
|
30
|
+
fontSize: 10,
|
31
|
+
color: '#fff',
|
32
|
+
textAlign: 'center',
|
33
|
+
width: 80,
|
34
|
+
height: 20,
|
35
|
+
backgroundColor: 'rgba(0,0,0,1)'
|
36
|
+
}
|
37
|
+
}
|
38
|
+
},
|
15
39
|
style: {
|
16
|
-
padding:
|
17
|
-
|
18
|
-
|
19
|
-
borderRadius:
|
40
|
+
padding: 7,
|
41
|
+
width: 236,
|
42
|
+
height: 74,
|
43
|
+
borderRadius: 3,
|
44
|
+
backgroundColor: '#fff'
|
20
45
|
}
|
21
46
|
},
|
22
47
|
w: 100,
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
+
import { ICtaTempStylesType } from '../components/typing';
|
2
3
|
import { RecItemType } from '../../../../core/components/SxpPageRender/typing';
|
3
4
|
export interface IMultiCommodityDiroNewProps {
|
4
5
|
content?: string;
|
@@ -7,6 +8,7 @@ export interface IMultiCommodityDiroNewProps {
|
|
7
8
|
recData?: RecItemType;
|
8
9
|
onClick?: () => void;
|
9
10
|
bottom_image?: string;
|
11
|
+
ctaTempStyles?: ICtaTempStylesType;
|
10
12
|
}
|
11
13
|
declare const _default: React.NamedExoticComponent<IMultiCommodityDiroNewProps>;
|
12
14
|
export default _default;
|