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/pb-ui.js
CHANGED
@@ -770,7 +770,6 @@
|
|
770
770
|
});
|
771
771
|
typeof window !== 'undefined' &&
|
772
772
|
(window.sxpPopup = (type, aniType) => {
|
773
|
-
setPopup(type);
|
774
773
|
if (aniType && (aniType === null || aniType === void 0 ? void 0 : aniType.name) !== 'none') {
|
775
774
|
setPopupAni(Object.assign(Object.assign({}, popupAni), aniType));
|
776
775
|
}
|
@@ -780,6 +779,9 @@
|
|
780
779
|
duration: 0
|
781
780
|
});
|
782
781
|
}
|
782
|
+
setTimeout(() => {
|
783
|
+
setPopup(type);
|
784
|
+
});
|
783
785
|
});
|
784
786
|
typeof window !== 'undefined' &&
|
785
787
|
(window.getJointUtmLink = (url) => {
|
@@ -8172,7 +8174,7 @@
|
|
8172
8174
|
* @Author: binruan@chatlabs.com
|
8173
8175
|
* @Date: 2023-11-02 18:34:34
|
8174
8176
|
* @LastEditors: binruan@chatlabs.com
|
8175
|
-
* @LastEditTime: 2024-04-
|
8177
|
+
* @LastEditTime: 2024-04-10 11:11:50
|
8176
8178
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Modal\index.tsx
|
8177
8179
|
*
|
8178
8180
|
*/
|
@@ -8829,8 +8831,8 @@ Made in Italy` })));
|
|
8829
8831
|
}), src: (_j = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _j !== void 0 ? _j : bottom_image, alt: '' }))),
|
8830
8832
|
React.createElement("div", { className: 'pb-commondityDiroNew-content' },
|
8831
8833
|
React.createElement("div", { className: 'pb-commondityDiroNew-content-top' },
|
8832
|
-
React.createElement("div",
|
8833
|
-
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'),
|
8834
|
+
React.createElement("div", { className: 'pb-commondityDiroNew-content-top-left' },
|
8835
|
+
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'),
|
8834
8836
|
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')),
|
8835
8837
|
React.createElement("div", { className: 'pb-commondityDiroNew-content-top-right' },
|
8836
8838
|
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),
|
@@ -8845,7 +8847,7 @@ Made in Italy` })));
|
|
8845
8847
|
* @Author: binruan@chatlabs.com
|
8846
8848
|
* @Date: 2024-03-20 10:27:31
|
8847
8849
|
* @LastEditors: binruan@chatlabs.com
|
8848
|
-
* @LastEditTime: 2024-04-
|
8850
|
+
* @LastEditTime: 2024-04-09 16:25:44
|
8849
8851
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetailDiroNew\material.tsx
|
8850
8852
|
*
|
8851
8853
|
*/
|
@@ -8867,7 +8869,7 @@ Made in Italy` })));
|
|
8867
8869
|
price: {
|
8868
8870
|
color: '#000',
|
8869
8871
|
fontWeight: 'bold',
|
8870
|
-
fontSize:
|
8872
|
+
fontSize: 13
|
8871
8873
|
},
|
8872
8874
|
title: {
|
8873
8875
|
color: '#000',
|
@@ -8911,7 +8913,7 @@ Made in Italy` })));
|
|
8911
8913
|
* @Author: binruan@chatlabs.com
|
8912
8914
|
* @Date: 2024-03-26 16:50:25
|
8913
8915
|
* @LastEditors: binruan@chatlabs.com
|
8914
|
-
* @LastEditTime: 2024-04-
|
8916
|
+
* @LastEditTime: 2024-04-09 21:40:18
|
8915
8917
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\components\settingRender.tsx
|
8916
8918
|
*
|
8917
8919
|
*/
|
@@ -9271,7 +9273,8 @@ Made in Italy` })));
|
|
9271
9273
|
width: 236,
|
9272
9274
|
height: 74,
|
9273
9275
|
borderRadius: 3,
|
9274
|
-
backgroundColor: 'rgba(0,0,0,.3)'
|
9276
|
+
backgroundColor: 'rgba(0,0,0,.3)',
|
9277
|
+
marginBottom: 8
|
9275
9278
|
}
|
9276
9279
|
},
|
9277
9280
|
w: 100,
|
@@ -9307,7 +9310,7 @@ Made in Italy` })));
|
|
9307
9310
|
* @Author: binruan@chatlabs.com
|
9308
9311
|
* @Date: 2023-07-28 18:29:57
|
9309
9312
|
* @LastEditors: binruan@chatlabs.com
|
9310
|
-
* @LastEditTime: 2024-
|
9313
|
+
* @LastEditTime: 2024-04-09 21:42:21
|
9311
9314
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\Appoint\material.tsx
|
9312
9315
|
*
|
9313
9316
|
*/
|
@@ -9344,7 +9347,8 @@ Made in Italy` })));
|
|
9344
9347
|
width: 236,
|
9345
9348
|
height: 44,
|
9346
9349
|
borderRadius: 3,
|
9347
|
-
backgroundColor: 'rgba(0,0,0,.3)'
|
9350
|
+
backgroundColor: 'rgba(0,0,0,.3)',
|
9351
|
+
marginBottom: 8
|
9348
9352
|
}
|
9349
9353
|
},
|
9350
9354
|
w: 100,
|
@@ -9420,7 +9424,8 @@ Made in Italy` })));
|
|
9420
9424
|
width: 236,
|
9421
9425
|
height: 74,
|
9422
9426
|
borderRadius: 3,
|
9423
|
-
backgroundColor: 'rgba(0,0,0,.3)'
|
9427
|
+
backgroundColor: 'rgba(0,0,0,.3)',
|
9428
|
+
marginBottom: 8
|
9424
9429
|
}
|
9425
9430
|
},
|
9426
9431
|
w: 100,
|
@@ -9511,7 +9516,8 @@ Made in Italy` })));
|
|
9511
9516
|
width: 236,
|
9512
9517
|
height: 74,
|
9513
9518
|
borderRadius: 3,
|
9514
|
-
backgroundColor: '#fff'
|
9519
|
+
backgroundColor: '#fff',
|
9520
|
+
marginBottom: 8
|
9515
9521
|
}
|
9516
9522
|
},
|
9517
9523
|
w: 100,
|
@@ -9559,7 +9565,7 @@ Made in Italy` })));
|
|
9559
9565
|
* @Author: binruan@chatlabs.com
|
9560
9566
|
* @Date: 2023-07-28 18:29:57
|
9561
9567
|
* @LastEditors: binruan@chatlabs.com
|
9562
|
-
* @LastEditTime: 2024-
|
9568
|
+
* @LastEditTime: 2024-04-09 11:54:27
|
9563
9569
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\CommodityDiroNew\material.tsx
|
9564
9570
|
*
|
9565
9571
|
*/
|
@@ -9583,13 +9589,13 @@ Made in Italy` })));
|
|
9583
9589
|
marginRight: 16
|
9584
9590
|
},
|
9585
9591
|
title: {
|
9586
|
-
fontSize:
|
9592
|
+
fontSize: 13,
|
9587
9593
|
color: '#000',
|
9588
9594
|
textAlign: 'left'
|
9589
9595
|
},
|
9590
9596
|
ctaTitle: {
|
9591
9597
|
textDecoration: 'underline',
|
9592
|
-
fontSize:
|
9598
|
+
fontSize: 14,
|
9593
9599
|
fontWeight: 'bold',
|
9594
9600
|
color: '#000',
|
9595
9601
|
textAlign: 'left',
|
@@ -9603,7 +9609,8 @@ Made in Italy` })));
|
|
9603
9609
|
width: 260,
|
9604
9610
|
height: 86,
|
9605
9611
|
padding: 4,
|
9606
|
-
backgroundColor: 'rgba(255,255,255,0.75)'
|
9612
|
+
backgroundColor: 'rgba(255,255,255,0.75)',
|
9613
|
+
marginBottom: 8
|
9607
9614
|
}
|
9608
9615
|
},
|
9609
9616
|
w: 100,
|
@@ -9623,8 +9630,8 @@ Made in Italy` })));
|
|
9623
9630
|
}
|
9624
9631
|
];
|
9625
9632
|
|
9626
|
-
const Scroll = ({ children }) => {
|
9627
|
-
return (React.createElement(Swiper, { direction: 'horizontal', slidesPerView: 'auto', freeMode: true, mousewheel: true, modules: [freeMode, Scrollbar, Mousewheel], style: {
|
9633
|
+
const Scroll = ({ children, isPadding = true }) => {
|
9634
|
+
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));
|
9628
9635
|
};
|
9629
9636
|
var Scroll$1 = React.memo(Scroll);
|
9630
9637
|
|
@@ -9668,9 +9675,9 @@ Made in Italy` })));
|
|
9668
9675
|
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 }) }));
|
9669
9676
|
onClick === null || onClick === void 0 ? void 0 : onClick();
|
9670
9677
|
}, popupAni === null || popupAni === void 0 ? void 0 : popupAni.duration);
|
9671
|
-
return (React.createElement(Scroll$1,
|
9678
|
+
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item) => {
|
9672
9679
|
var _a, _b, _c, _d, _e, _f;
|
9673
|
-
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.css(Object.assign({
|
9680
|
+
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.css(Object.assign(Object.assign({}, style), { display: 'flex', flexShrink: 0, marginLeft: 0, marginRight: '8px' })) }, props, { onClick: () => handleClick(item) }),
|
9674
9681
|
React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
|
9675
9682
|
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 })),
|
9676
9683
|
React.createElement("div", { className: css.css({
|
@@ -9734,7 +9741,8 @@ Made in Italy` })));
|
|
9734
9741
|
width: 236,
|
9735
9742
|
height: 74,
|
9736
9743
|
borderRadius: 3,
|
9737
|
-
backgroundColor: '#fff'
|
9744
|
+
backgroundColor: '#fff',
|
9745
|
+
marginBottom: 8
|
9738
9746
|
}
|
9739
9747
|
},
|
9740
9748
|
w: 100,
|
@@ -9771,9 +9779,9 @@ Made in Italy` })));
|
|
9771
9779
|
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 }) }));
|
9772
9780
|
onClick === null || onClick === void 0 ? void 0 : onClick();
|
9773
9781
|
}, popupAni === null || popupAni === void 0 ? void 0 : popupAni.duration);
|
9774
|
-
return (React.createElement(Scroll$1,
|
9782
|
+
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item) => {
|
9775
9783
|
var _a, _b, _c, _d, _e, _f;
|
9776
|
-
return (React.createElement(SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item.itemId, className: css.css(Object.assign({
|
9784
|
+
return (React.createElement(SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item.itemId, className: css.css(Object.assign(Object.assign({}, style), { display: 'flex', flexShrink: 0, marginLeft: 0, marginRight: '8px' })) }, props, { onClick: () => handleClick(item) }),
|
9777
9785
|
React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
|
9778
9786
|
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 })),
|
9779
9787
|
React.createElement("div", { className: css.css({
|
@@ -9837,7 +9845,8 @@ Made in Italy` })));
|
|
9837
9845
|
width: 236,
|
9838
9846
|
height: 74,
|
9839
9847
|
borderRadius: 3,
|
9840
|
-
backgroundColor: 'rgba(0,0,0,.3)'
|
9848
|
+
backgroundColor: 'rgba(0,0,0,.3)',
|
9849
|
+
marginBottom: 8
|
9841
9850
|
}
|
9842
9851
|
},
|
9843
9852
|
w: 100,
|
@@ -9873,9 +9882,9 @@ Made in Italy` })));
|
|
9873
9882
|
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 }) }));
|
9874
9883
|
onClick === null || onClick === void 0 ? void 0 : onClick();
|
9875
9884
|
}, popupAni === null || popupAni === void 0 ? void 0 : popupAni.duration);
|
9876
|
-
return (React.createElement(Scroll$1,
|
9885
|
+
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item) => {
|
9877
9886
|
var _a, _b, _c, _d, _e, _f;
|
9878
|
-
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.css(Object.assign({
|
9887
|
+
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.css(Object.assign(Object.assign({}, style), { display: 'flex', flexShrink: 0, marginLeft: 0, marginRight: '8px' })) }, props, { onClick: () => handleClick(item) }),
|
9879
9888
|
React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
|
9880
9889
|
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 })),
|
9881
9890
|
React.createElement("div", { className: css.css({
|
@@ -9897,7 +9906,7 @@ Made in Italy` })));
|
|
9897
9906
|
* @Author: binruan@chatlabs.com
|
9898
9907
|
* @Date: 2023-07-28 18:29:57
|
9899
9908
|
* @LastEditors: binruan@chatlabs.com
|
9900
|
-
* @LastEditTime: 2024-
|
9909
|
+
* @LastEditTime: 2024-04-09 21:40:37
|
9901
9910
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\MultiCommodityDiroNew\material.tsx
|
9902
9911
|
*
|
9903
9912
|
*/
|
@@ -9941,7 +9950,8 @@ Made in Italy` })));
|
|
9941
9950
|
width: 260,
|
9942
9951
|
height: 86,
|
9943
9952
|
padding: 4,
|
9944
|
-
backgroundColor: 'rgba(255,255,255,0.75)'
|
9953
|
+
backgroundColor: 'rgba(255,255,255,0.75)',
|
9954
|
+
marginBottom: 8
|
9945
9955
|
}
|
9946
9956
|
},
|
9947
9957
|
w: 100,
|
@@ -12356,14 +12366,14 @@ Made in Italy` })));
|
|
12356
12366
|
* @Author: binruan@chatlabs.com
|
12357
12367
|
* @Date: 2023-12-26 16:11:34
|
12358
12368
|
* @LastEditors: binruan@chatlabs.com
|
12359
|
-
* @LastEditTime: 2024-
|
12369
|
+
* @LastEditTime: 2024-04-09 18:17:54
|
12360
12370
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\RenderCard.tsx
|
12361
12371
|
*
|
12362
12372
|
*/
|
12363
12373
|
const RenderCard = ({ rec, index, tempMap, resolver }) => {
|
12364
12374
|
const { schema } = useEditor();
|
12365
12375
|
const renderComp = React.useMemo(() => {
|
12366
|
-
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;
|
12376
|
+
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;
|
12367
12377
|
if (!(rec === null || rec === void 0 ? void 0 : rec.video))
|
12368
12378
|
return null;
|
12369
12379
|
let cta = null;
|
@@ -12386,8 +12396,10 @@ Made in Italy` })));
|
|
12386
12396
|
return null;
|
12387
12397
|
}
|
12388
12398
|
if (value && resolver) {
|
12389
|
-
const
|
12390
|
-
|
12399
|
+
const t = resolver[(_w = value === null || value === void 0 ? void 0 : value.item) === null || _w === void 0 ? void 0 : _w.type];
|
12400
|
+
const Component = withBindDataSource(t);
|
12401
|
+
const defaulSetting = (_x = t === null || t === void 0 ? void 0 : t.extend) === null || _x === void 0 ? void 0 : _x.defaulSetting;
|
12402
|
+
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 })));
|
12391
12403
|
}
|
12392
12404
|
else {
|
12393
12405
|
return null;
|
@@ -12413,7 +12425,7 @@ Made in Italy` })));
|
|
12413
12425
|
* @Author: binruan@chatlabs.com
|
12414
12426
|
* @Date: 2024-01-15 19:03:09
|
12415
12427
|
* @LastEditors: binruan@chatlabs.com
|
12416
|
-
* @LastEditTime: 2024-04-
|
12428
|
+
* @LastEditTime: 2024-04-10 10:13:48
|
12417
12429
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
12418
12430
|
*
|
12419
12431
|
*/
|
@@ -12580,9 +12592,11 @@ Made in Italy` })));
|
|
12580
12592
|
}
|
12581
12593
|
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) {
|
12582
12594
|
return (_d = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _d === void 0 ? void 0 : _d.map((value, index) => {
|
12583
|
-
var _a, _b, _c, _d, _e, _f;
|
12584
|
-
const
|
12585
|
-
|
12595
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
12596
|
+
const t = resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type];
|
12597
|
+
const Component = withBindDataSource(t);
|
12598
|
+
const defaulSetting = (_b = t === null || t === void 0 ? void 0 : t.extend) === null || _b === void 0 ? void 0 : _b.defaulSetting;
|
12599
|
+
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' }) })));
|
12586
12600
|
});
|
12587
12601
|
}
|
12588
12602
|
return null;
|
@@ -12791,7 +12805,7 @@ Made in Italy` })));
|
|
12791
12805
|
* @Author: binruan@chatlabs.com
|
12792
12806
|
* @Date: 2023-10-31 10:56:01
|
12793
12807
|
* @LastEditors: binruan@chatlabs.com
|
12794
|
-
* @LastEditTime: 2024-04-
|
12808
|
+
* @LastEditTime: 2024-04-10 09:57:19
|
12795
12809
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
|
12796
12810
|
*
|
12797
12811
|
*/
|
@@ -12837,10 +12851,12 @@ Made in Italy` })));
|
|
12837
12851
|
const renderPopupDetail = React.useMemo(() => {
|
12838
12852
|
var _a, _b, _c;
|
12839
12853
|
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) => {
|
12840
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
12854
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
12841
12855
|
if ((value === null || value === void 0 ? void 0 : value.id) === popup) {
|
12842
|
-
const
|
12843
|
-
|
12856
|
+
const t = resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type];
|
12857
|
+
const Component = withBindDataSource(t);
|
12858
|
+
const defaulSetting = (_b = t === null || t === void 0 ? void 0 : t.extend) === null || _b === void 0 ? void 0 : _b.defaulSetting;
|
12859
|
+
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 })));
|
12844
12860
|
}
|
12845
12861
|
else {
|
12846
12862
|
return React.createElement(React.Fragment, null);
|