pb-sxp-ui 1.0.3-alpha.4 → 1.0.3
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 +56 -40
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +4 -5
- package/dist/index.js +56 -40
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +3 -3
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +56 -40
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +3 -3
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/Popup/index.js +5 -3
- package/es/core/components/SxpPageRender/RenderCard.js +5 -3
- package/es/core/components/SxpPageRender/index.js +5 -3
- package/es/core/context/EditorContext.js +3 -1
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +2 -2
- package/es/materials/sxp/popup/CommodityDetailDiroNew/material.js +1 -1
- package/es/materials/sxp/template/Appoint/material.js +2 -1
- package/es/materials/sxp/template/Commodity/material.js +2 -1
- package/es/materials/sxp/template/CommodityDiro/material.js +2 -1
- package/es/materials/sxp/template/CommodityDiroNew/material.js +4 -3
- package/es/materials/sxp/template/Link/material.js +2 -1
- package/es/materials/sxp/template/MultiCommodity/index.js +2 -2
- package/es/materials/sxp/template/MultiCommodity/material.js +2 -1
- package/es/materials/sxp/template/MultiCommodityDiro/index.js +2 -2
- package/es/materials/sxp/template/MultiCommodityDiro/material.js +2 -1
- package/es/materials/sxp/template/MultiCommodityDiroNew/index.js +2 -2
- package/es/materials/sxp/template/MultiCommodityDiroNew/material.js +2 -1
- package/es/materials/sxp/template/components/Scroll.d.ts +1 -0
- package/es/materials/sxp/template/components/Scroll.js +2 -2
- package/lib/core/components/SxpPageRender/Popup/index.js +5 -3
- package/lib/core/components/SxpPageRender/RenderCard.js +5 -3
- package/lib/core/components/SxpPageRender/index.js +5 -3
- package/lib/core/context/EditorContext.js +3 -1
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +2 -2
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/material.js +1 -1
- package/lib/materials/sxp/template/Appoint/material.js +2 -1
- package/lib/materials/sxp/template/Commodity/material.js +2 -1
- package/lib/materials/sxp/template/CommodityDiro/material.js +2 -1
- package/lib/materials/sxp/template/CommodityDiroNew/material.js +4 -3
- package/lib/materials/sxp/template/Link/material.js +2 -1
- package/lib/materials/sxp/template/MultiCommodity/index.js +2 -2
- package/lib/materials/sxp/template/MultiCommodity/material.js +2 -1
- package/lib/materials/sxp/template/MultiCommodityDiro/index.js +2 -2
- package/lib/materials/sxp/template/MultiCommodityDiro/material.js +2 -1
- package/lib/materials/sxp/template/MultiCommodityDiroNew/index.js +2 -2
- package/lib/materials/sxp/template/MultiCommodityDiroNew/material.js +2 -1
- package/lib/materials/sxp/template/components/Scroll.d.ts +1 -0
- package/lib/materials/sxp/template/components/Scroll.js +2 -2
- package/package.json +1 -1
package/dist/index.css
CHANGED
@@ -156,7 +156,10 @@
|
|
156
156
|
display: -ms-flexbox;
|
157
157
|
display: flex;
|
158
158
|
}
|
159
|
-
.pb-commondityDiroNew-content-top-
|
159
|
+
.pb-commondityDiroNew-content-top-left {
|
160
|
+
width: 100%;
|
161
|
+
}
|
162
|
+
.pb-commondityDiroNew-content-top-left-title {
|
160
163
|
font-size: 13px;
|
161
164
|
-webkit-box-flex: 1;
|
162
165
|
-webkit-flex: 1;
|
@@ -1333,14 +1336,10 @@ button.swiper-pagination-bullet {
|
|
1333
1336
|
gap: 6px;
|
1334
1337
|
margin-left: 20px;
|
1335
1338
|
}
|
1336
|
-
.clc-sxp-bottom-card {
|
1337
|
-
margin-bottom: 10px;
|
1338
|
-
}
|
1339
1339
|
.clc-sxp-bottom-text {
|
1340
1340
|
padding: 0 20px;
|
1341
1341
|
}
|
1342
1342
|
.clc-sxp-bottom-hashtag {
|
1343
|
-
margin-left: 20px;
|
1344
1343
|
margin-top: 16px;
|
1345
1344
|
}
|
1346
1345
|
.clc-sxp-bottom-hashtag-item {
|
package/dist/index.js
CHANGED
@@ -755,7 +755,6 @@ const EditorCore = forwardRef(({ children, resolver, isSsr, schema, enableDataSo
|
|
755
755
|
});
|
756
756
|
typeof window !== 'undefined' &&
|
757
757
|
(window.sxpPopup = (type, aniType) => {
|
758
|
-
setPopup(type);
|
759
758
|
if (aniType && (aniType === null || aniType === void 0 ? void 0 : aniType.name) !== 'none') {
|
760
759
|
setPopupAni(Object.assign(Object.assign({}, popupAni), aniType));
|
761
760
|
}
|
@@ -765,6 +764,9 @@ const EditorCore = forwardRef(({ children, resolver, isSsr, schema, enableDataSo
|
|
765
764
|
duration: 0
|
766
765
|
});
|
767
766
|
}
|
767
|
+
setTimeout(() => {
|
768
|
+
setPopup(type);
|
769
|
+
});
|
768
770
|
});
|
769
771
|
typeof window !== 'undefined' &&
|
770
772
|
(window.getJointUtmLink = (url) => {
|
@@ -8157,7 +8159,7 @@ function useEventReport() {
|
|
8157
8159
|
* @Author: binruan@chatlabs.com
|
8158
8160
|
* @Date: 2023-11-02 18:34:34
|
8159
8161
|
* @LastEditors: binruan@chatlabs.com
|
8160
|
-
* @LastEditTime: 2024-04-
|
8162
|
+
* @LastEditTime: 2024-04-10 11:11:50
|
8161
8163
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Modal\index.tsx
|
8162
8164
|
*
|
8163
8165
|
*/
|
@@ -8814,8 +8816,8 @@ Made in Italy` })));
|
|
8814
8816
|
}), src: (_j = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _j !== void 0 ? _j : bottom_image, alt: '' }))),
|
8815
8817
|
React.createElement("div", { className: 'pb-commondityDiroNew-content' },
|
8816
8818
|
React.createElement("div", { className: 'pb-commondityDiroNew-content-top' },
|
8817
|
-
React.createElement("div",
|
8818
|
-
React.createElement("div", { className: 'pb-commondityDiroNew-content-top-title', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title }, (_k = product === null || product === void 0 ? void 0 : product.title) !== null && _k !== void 0 ? _k : 'Large Dior Toujours Bag'),
|
8819
|
+
React.createElement("div", { className: 'pb-commondityDiroNew-content-top-left' },
|
8820
|
+
React.createElement("div", { className: 'pb-commondityDiroNew-content-top-left-title', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title }, (_k = product === null || product === void 0 ? void 0 : product.title) !== null && _k !== void 0 ? _k : 'Large Dior Toujours Bag'),
|
8819
8821
|
React.createElement("div", { className: 'pb-commondityDiroNew-content-collection', hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.collection) || (product === null || product === void 0 ? void 0 : product.collection) === ''), style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.collection }, (product === null || product === void 0 ? void 0 : product.collection) || 'Black Macrocannage Calfskin')),
|
8820
8822
|
React.createElement("div", { className: 'pb-commondityDiroNew-content-top-right' },
|
8821
8823
|
React.createElement("div", { className: 'pb-commondityDiroNew-content-top-right-price', hidden: !!product && !(product === null || product === void 0 ? void 0 : product.price), style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price }, priceText),
|
@@ -8830,7 +8832,7 @@ var CommodityDetailDiroNewComponent = memo(CommodityDetailDiroNew$1);
|
|
8830
8832
|
* @Author: binruan@chatlabs.com
|
8831
8833
|
* @Date: 2024-03-20 10:27:31
|
8832
8834
|
* @LastEditors: binruan@chatlabs.com
|
8833
|
-
* @LastEditTime: 2024-04-
|
8835
|
+
* @LastEditTime: 2024-04-09 16:25:44
|
8834
8836
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetailDiroNew\material.tsx
|
8835
8837
|
*
|
8836
8838
|
*/
|
@@ -8852,7 +8854,7 @@ const CommodityDetailDiroNew = createMaterial(CommodityDetailDiroNewComponent, {
|
|
8852
8854
|
price: {
|
8853
8855
|
color: '#000',
|
8854
8856
|
fontWeight: 'bold',
|
8855
|
-
fontSize:
|
8857
|
+
fontSize: 13
|
8856
8858
|
},
|
8857
8859
|
title: {
|
8858
8860
|
color: '#000',
|
@@ -8896,7 +8898,7 @@ const CommodityDetailDiroNew = createMaterial(CommodityDetailDiroNewComponent, {
|
|
8896
8898
|
* @Author: binruan@chatlabs.com
|
8897
8899
|
* @Date: 2024-03-26 16:50:25
|
8898
8900
|
* @LastEditors: binruan@chatlabs.com
|
8899
|
-
* @LastEditTime: 2024-04-
|
8901
|
+
* @LastEditTime: 2024-04-09 21:40:18
|
8900
8902
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\components\settingRender.tsx
|
8901
8903
|
*
|
8902
8904
|
*/
|
@@ -9256,7 +9258,8 @@ const Commodity = createMaterial(CommodityComponent, {
|
|
9256
9258
|
width: 236,
|
9257
9259
|
height: 74,
|
9258
9260
|
borderRadius: 3,
|
9259
|
-
backgroundColor: 'rgba(0,0,0,.3)'
|
9261
|
+
backgroundColor: 'rgba(0,0,0,.3)',
|
9262
|
+
marginBottom: 8
|
9260
9263
|
}
|
9261
9264
|
},
|
9262
9265
|
w: 100,
|
@@ -9292,7 +9295,7 @@ var AppointComponent = memo(Appoint$1);
|
|
9292
9295
|
* @Author: binruan@chatlabs.com
|
9293
9296
|
* @Date: 2023-07-28 18:29:57
|
9294
9297
|
* @LastEditors: binruan@chatlabs.com
|
9295
|
-
* @LastEditTime: 2024-
|
9298
|
+
* @LastEditTime: 2024-04-09 21:42:21
|
9296
9299
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\Appoint\material.tsx
|
9297
9300
|
*
|
9298
9301
|
*/
|
@@ -9329,7 +9332,8 @@ const Appoint = createMaterial(AppointComponent, {
|
|
9329
9332
|
width: 236,
|
9330
9333
|
height: 44,
|
9331
9334
|
borderRadius: 3,
|
9332
|
-
backgroundColor: 'rgba(0,0,0,.3)'
|
9335
|
+
backgroundColor: 'rgba(0,0,0,.3)',
|
9336
|
+
marginBottom: 8
|
9333
9337
|
}
|
9334
9338
|
},
|
9335
9339
|
w: 100,
|
@@ -9405,7 +9409,8 @@ const Link = createMaterial(LinkComponent, {
|
|
9405
9409
|
width: 236,
|
9406
9410
|
height: 74,
|
9407
9411
|
borderRadius: 3,
|
9408
|
-
backgroundColor: 'rgba(0,0,0,.3)'
|
9412
|
+
backgroundColor: 'rgba(0,0,0,.3)',
|
9413
|
+
marginBottom: 8
|
9409
9414
|
}
|
9410
9415
|
},
|
9411
9416
|
w: 100,
|
@@ -9496,7 +9501,8 @@ const CommodityDiro = createMaterial(CommodityDiroComponent, {
|
|
9496
9501
|
width: 236,
|
9497
9502
|
height: 74,
|
9498
9503
|
borderRadius: 3,
|
9499
|
-
backgroundColor: '#fff'
|
9504
|
+
backgroundColor: '#fff',
|
9505
|
+
marginBottom: 8
|
9500
9506
|
}
|
9501
9507
|
},
|
9502
9508
|
w: 100,
|
@@ -9544,7 +9550,7 @@ var CommodityDiroNewComponent = memo(CommodityDiroNew$1);
|
|
9544
9550
|
* @Author: binruan@chatlabs.com
|
9545
9551
|
* @Date: 2023-07-28 18:29:57
|
9546
9552
|
* @LastEditors: binruan@chatlabs.com
|
9547
|
-
* @LastEditTime: 2024-
|
9553
|
+
* @LastEditTime: 2024-04-09 11:54:27
|
9548
9554
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\CommodityDiroNew\material.tsx
|
9549
9555
|
*
|
9550
9556
|
*/
|
@@ -9568,13 +9574,13 @@ const CommodityDiroNew = createMaterial(CommodityDiroNewComponent, {
|
|
9568
9574
|
marginRight: 16
|
9569
9575
|
},
|
9570
9576
|
title: {
|
9571
|
-
fontSize:
|
9577
|
+
fontSize: 13,
|
9572
9578
|
color: '#000',
|
9573
9579
|
textAlign: 'left'
|
9574
9580
|
},
|
9575
9581
|
ctaTitle: {
|
9576
9582
|
textDecoration: 'underline',
|
9577
|
-
fontSize:
|
9583
|
+
fontSize: 14,
|
9578
9584
|
fontWeight: 'bold',
|
9579
9585
|
color: '#000',
|
9580
9586
|
textAlign: 'left',
|
@@ -9588,7 +9594,8 @@ const CommodityDiroNew = createMaterial(CommodityDiroNewComponent, {
|
|
9588
9594
|
width: 260,
|
9589
9595
|
height: 86,
|
9590
9596
|
padding: 4,
|
9591
|
-
backgroundColor: 'rgba(255,255,255,0.75)'
|
9597
|
+
backgroundColor: 'rgba(255,255,255,0.75)',
|
9598
|
+
marginBottom: 8
|
9592
9599
|
}
|
9593
9600
|
},
|
9594
9601
|
w: 100,
|
@@ -9608,8 +9615,8 @@ var interactionRender$2 = [
|
|
9608
9615
|
}
|
9609
9616
|
];
|
9610
9617
|
|
9611
|
-
const Scroll = ({ children }) => {
|
9612
|
-
return (React.createElement(Swiper, { direction: 'horizontal', slidesPerView: 'auto', freeMode: true, mousewheel: true, modules: [freeMode, Scrollbar, Mousewheel], style: {
|
9618
|
+
const Scroll = ({ children, isPadding = true }) => {
|
9619
|
+
return (React.createElement(Swiper, { direction: 'horizontal', slidesPerView: 'auto', freeMode: true, mousewheel: true, modules: [freeMode, Scrollbar, Mousewheel], style: { padding: isPadding ? '0 12px 0 20px' : 0 } }, children));
|
9613
9620
|
};
|
9614
9621
|
var Scroll$1 = memo(Scroll);
|
9615
9622
|
|
@@ -9653,9 +9660,9 @@ const MultiCommodityDiro$1 = (_a) => {
|
|
9653
9660
|
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 }) }));
|
9654
9661
|
onClick === null || onClick === void 0 ? void 0 : onClick();
|
9655
9662
|
}, popupAni === null || popupAni === void 0 ? void 0 : popupAni.duration);
|
9656
|
-
return (React.createElement(Scroll$1,
|
9663
|
+
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item) => {
|
9657
9664
|
var _a, _b, _c, _d, _e, _f;
|
9658
|
-
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({
|
9665
|
+
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(Object.assign({}, style), { display: 'flex', flexShrink: 0, marginLeft: 0, marginRight: '8px' })) }, props, { onClick: () => handleClick(item) }),
|
9659
9666
|
React.createElement("div", { className: css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
|
9660
9667
|
React.createElement(Img$1, { 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 })),
|
9661
9668
|
React.createElement("div", { className: css({
|
@@ -9719,7 +9726,8 @@ const MultiCommodityDiro = createMaterial(MultiCommodityDiroComponent, {
|
|
9719
9726
|
width: 236,
|
9720
9727
|
height: 74,
|
9721
9728
|
borderRadius: 3,
|
9722
|
-
backgroundColor: '#fff'
|
9729
|
+
backgroundColor: '#fff',
|
9730
|
+
marginBottom: 8
|
9723
9731
|
}
|
9724
9732
|
},
|
9725
9733
|
w: 100,
|
@@ -9756,9 +9764,9 @@ const MultiCommodity$1 = (_a) => {
|
|
9756
9764
|
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 }) }));
|
9757
9765
|
onClick === null || onClick === void 0 ? void 0 : onClick();
|
9758
9766
|
}, popupAni === null || popupAni === void 0 ? void 0 : popupAni.duration);
|
9759
|
-
return (React.createElement(Scroll$1,
|
9767
|
+
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item) => {
|
9760
9768
|
var _a, _b, _c, _d, _e, _f;
|
9761
|
-
return (React.createElement(SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item.itemId, className: css(Object.assign({
|
9769
|
+
return (React.createElement(SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item.itemId, className: css(Object.assign(Object.assign({}, style), { display: 'flex', flexShrink: 0, marginLeft: 0, marginRight: '8px' })) }, props, { onClick: () => handleClick(item) }),
|
9762
9770
|
React.createElement("div", { className: css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
|
9763
9771
|
React.createElement(Img$1, { 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 })),
|
9764
9772
|
React.createElement("div", { className: css({
|
@@ -9822,7 +9830,8 @@ const MultiCommodity = createMaterial(MultiCommodityComponent, {
|
|
9822
9830
|
width: 236,
|
9823
9831
|
height: 74,
|
9824
9832
|
borderRadius: 3,
|
9825
|
-
backgroundColor: 'rgba(0,0,0,.3)'
|
9833
|
+
backgroundColor: 'rgba(0,0,0,.3)',
|
9834
|
+
marginBottom: 8
|
9826
9835
|
}
|
9827
9836
|
},
|
9828
9837
|
w: 100,
|
@@ -9858,9 +9867,9 @@ const MultiCommodityDiroNew$1 = (_a) => {
|
|
9858
9867
|
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 }) }));
|
9859
9868
|
onClick === null || onClick === void 0 ? void 0 : onClick();
|
9860
9869
|
}, popupAni === null || popupAni === void 0 ? void 0 : popupAni.duration);
|
9861
|
-
return (React.createElement(Scroll$1,
|
9870
|
+
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item) => {
|
9862
9871
|
var _a, _b, _c, _d, _e, _f;
|
9863
|
-
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({
|
9872
|
+
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(Object.assign({}, style), { display: 'flex', flexShrink: 0, marginLeft: 0, marginRight: '8px' })) }, props, { onClick: () => handleClick(item) }),
|
9864
9873
|
React.createElement("div", { className: css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
|
9865
9874
|
React.createElement(Img$1, { 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 })),
|
9866
9875
|
React.createElement("div", { className: css({
|
@@ -9882,7 +9891,7 @@ var MultiCommodityDiroNewComponent = memo(MultiCommodityDiroNew$1);
|
|
9882
9891
|
* @Author: binruan@chatlabs.com
|
9883
9892
|
* @Date: 2023-07-28 18:29:57
|
9884
9893
|
* @LastEditors: binruan@chatlabs.com
|
9885
|
-
* @LastEditTime: 2024-
|
9894
|
+
* @LastEditTime: 2024-04-09 21:40:37
|
9886
9895
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\MultiCommodityDiroNew\material.tsx
|
9887
9896
|
*
|
9888
9897
|
*/
|
@@ -9926,7 +9935,8 @@ const MultiCommodityDiroNew = createMaterial(MultiCommodityDiroNewComponent, {
|
|
9926
9935
|
width: 260,
|
9927
9936
|
height: 86,
|
9928
9937
|
padding: 4,
|
9929
|
-
backgroundColor: 'rgba(255,255,255,0.75)'
|
9938
|
+
backgroundColor: 'rgba(255,255,255,0.75)',
|
9939
|
+
marginBottom: 8
|
9930
9940
|
}
|
9931
9941
|
},
|
9932
9942
|
w: 100,
|
@@ -12341,14 +12351,14 @@ function withBindDataSource(Component) {
|
|
12341
12351
|
* @Author: binruan@chatlabs.com
|
12342
12352
|
* @Date: 2023-12-26 16:11:34
|
12343
12353
|
* @LastEditors: binruan@chatlabs.com
|
12344
|
-
* @LastEditTime: 2024-
|
12354
|
+
* @LastEditTime: 2024-04-09 18:17:54
|
12345
12355
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\RenderCard.tsx
|
12346
12356
|
*
|
12347
12357
|
*/
|
12348
12358
|
const RenderCard = ({ rec, index, tempMap, resolver }) => {
|
12349
12359
|
const { schema } = useEditor();
|
12350
12360
|
const renderComp = useMemo(() => {
|
12351
|
-
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;
|
12361
|
+
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;
|
12352
12362
|
if (!(rec === null || rec === void 0 ? void 0 : rec.video))
|
12353
12363
|
return null;
|
12354
12364
|
let cta = null;
|
@@ -12371,8 +12381,10 @@ const RenderCard = ({ rec, index, tempMap, resolver }) => {
|
|
12371
12381
|
return null;
|
12372
12382
|
}
|
12373
12383
|
if (value && resolver) {
|
12374
|
-
const
|
12375
|
-
|
12384
|
+
const t = resolver[(_w = value === null || value === void 0 ? void 0 : value.item) === null || _w === void 0 ? void 0 : _w.type];
|
12385
|
+
const Component = withBindDataSource(t);
|
12386
|
+
const defaulSetting = (_x = t === null || t === void 0 ? void 0 : t.extend) === null || _x === void 0 ? void 0 : _x.defaulSetting;
|
12387
|
+
return (React.createElement(Component, Object.assign({ style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), (_y = value === null || value === void 0 ? void 0 : value.item) === null || _y === void 0 ? void 0 : _y.style), { zIndex: 50, marginLeft: '20px', boxSizing: 'border-box' }), 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 })));
|
12376
12388
|
}
|
12377
12389
|
else {
|
12378
12390
|
return null;
|
@@ -12398,7 +12410,7 @@ const Nudge = ({ nudge }) => {
|
|
12398
12410
|
* @Author: binruan@chatlabs.com
|
12399
12411
|
* @Date: 2024-01-15 19:03:09
|
12400
12412
|
* @LastEditors: binruan@chatlabs.com
|
12401
|
-
* @LastEditTime: 2024-04-
|
12413
|
+
* @LastEditTime: 2024-04-10 10:13:48
|
12402
12414
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
12403
12415
|
*
|
12404
12416
|
*/
|
@@ -12565,9 +12577,11 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
12565
12577
|
}
|
12566
12578
|
if (rec.product && Array.isArray(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) && ((_c = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _c === void 0 ? void 0 : _c.length) > 0) {
|
12567
12579
|
return (_d = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _d === void 0 ? void 0 : _d.map((value, index) => {
|
12568
|
-
var _a, _b, _c, _d, _e, _f;
|
12569
|
-
const
|
12570
|
-
|
12580
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
12581
|
+
const t = resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type];
|
12582
|
+
const Component = withBindDataSource(t);
|
12583
|
+
const defaulSetting = (_b = t === null || t === void 0 ? void 0 : t.extend) === null || _b === void 0 ? void 0 : _b.defaulSetting;
|
12584
|
+
return (React.createElement(Component, Object.assign({ key: index, textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (_c = value === null || value === void 0 ? void 0 : value.item) === null || _c === void 0 ? void 0 : _c.textStyle), bindDatas: (_e = (_d = value === null || value === void 0 ? void 0 : value.item) === null || _d === void 0 ? void 0 : _d.bindDatas) !== null && _e !== void 0 ? _e : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_f = value === null || value === void 0 ? void 0 : value.item) === null || _f === void 0 ? void 0 : _f.props, { event: ((_g = value === null || value === void 0 ? void 0 : value.item) === null || _g === void 0 ? void 0 : _g.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id, viewTime: viewTime.current, rec: rec, isPost: true, tipText: tipText, style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), (_h = value === null || value === void 0 ? void 0 : value.item) === null || _h === void 0 ? void 0 : _h.style), { height: '100%', overflow: 'auto' }) })));
|
12571
12585
|
});
|
12572
12586
|
}
|
12573
12587
|
return null;
|
@@ -12776,7 +12790,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
12776
12790
|
* @Author: binruan@chatlabs.com
|
12777
12791
|
* @Date: 2023-10-31 10:56:01
|
12778
12792
|
* @LastEditors: binruan@chatlabs.com
|
12779
|
-
* @LastEditTime: 2024-04-
|
12793
|
+
* @LastEditTime: 2024-04-10 09:57:19
|
12780
12794
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
|
12781
12795
|
*
|
12782
12796
|
*/
|
@@ -12822,10 +12836,12 @@ const Popup = () => {
|
|
12822
12836
|
const renderPopupDetail = useMemo(() => {
|
12823
12837
|
var _a, _b, _c;
|
12824
12838
|
return (_c = (_b = (_a = schema === null || schema === void 0 ? void 0 : schema.sxpPageConf) === null || _a === void 0 ? void 0 : _a.globalConfig) === null || _b === void 0 ? void 0 : _b.popupList) === null || _c === void 0 ? void 0 : _c.map((value, index) => {
|
12825
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
12839
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
12826
12840
|
if ((value === null || value === void 0 ? void 0 : value.id) === popup) {
|
12827
|
-
const
|
12828
|
-
|
12841
|
+
const t = resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type];
|
12842
|
+
const Component = withBindDataSource(t);
|
12843
|
+
const defaulSetting = (_b = t === null || t === void 0 ? void 0 : t.extend) === null || _b === void 0 ? void 0 : _b.defaulSetting;
|
12844
|
+
return (React.createElement(Component, Object.assign({ key: index, style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), (_c = value === null || value === void 0 ? void 0 : value.item) === null || _c === void 0 ? void 0 : _c.style), { width: '100%', height: '80vh', overflow: 'auto' }), textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (_d = value === null || value === void 0 ? void 0 : value.item) === null || _d === void 0 ? void 0 : _d.textStyle), bindDatas: (_f = (_e = value === null || value === void 0 ? void 0 : value.item) === null || _e === void 0 ? void 0 : _e.bindDatas) !== null && _f !== void 0 ? _f : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_g = value === null || value === void 0 ? void 0 : value.item) === null || _g === void 0 ? void 0 : _g.props, { event: ((_h = value === null || value === void 0 ? void 0 : value.item) === null || _h === void 0 ? void 0 : _h.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id })));
|
12829
12845
|
}
|
12830
12846
|
else {
|
12831
12847
|
return React.createElement(React.Fragment, null);
|