pb-sxp-ui 1.0.93 → 1.0.94
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 +11 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +1 -1
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +11 -4
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +1 -1
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/PictureGroup/Picture.js +1 -1
- package/es/core/components/SxpPageRender/VideoWidget/index.js +9 -2
- package/lib/core/components/SxpPageRender/PictureGroup/Picture.js +1 -1
- package/lib/core/components/SxpPageRender/VideoWidget/index.js +9 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -13104,7 +13104,14 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
13104
13104
|
if (!(sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.placeholder_image) || isLoadFinish) {
|
13105
13105
|
return null;
|
13106
13106
|
}
|
13107
|
-
return (React.createElement("img", { style: {
|
13107
|
+
return (React.createElement("img", { style: {
|
13108
|
+
position: 'absolute',
|
13109
|
+
left: 0,
|
13110
|
+
top: 0,
|
13111
|
+
width: '100%',
|
13112
|
+
height: '100%',
|
13113
|
+
objectFit: 'cover'
|
13114
|
+
}, src: sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.placeholder_image, alt: 'placeholder image' }));
|
13108
13115
|
}, [isLoadFinish, sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.placeholder_image]);
|
13109
13116
|
const renderLoading = useMemo(() => {
|
13110
13117
|
if (!waiting || !isLoadFinish)
|
@@ -13139,7 +13146,7 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
13139
13146
|
return null;
|
13140
13147
|
}
|
13141
13148
|
return (React.createElement(React.Fragment, null, blur ? (React.createElement("div", { className: 'video-container', key: rec === null || rec === void 0 ? void 0 : rec.video.itemId, onClick: handleClickVideo(), style: Object.assign({ position: 'relative', width: '100%', height, overflow: 'hidden' }, bgStyle) },
|
13142
|
-
!isBgColor && (React.createElement(FormatImage$1, { src: blurBgSrc, style: Object.assign({ height: '100%', width: '100%', objectFit: 'cover' }, blurStyle) })),
|
13149
|
+
!isBgColor && isLoadFinish && (React.createElement(FormatImage$1, { src: blurBgSrc, style: Object.assign({ height: '100%', width: '100%', objectFit: 'cover' }, blurStyle) })),
|
13143
13150
|
React.createElement("canvas", { ref: canvasRef, style: { display: 'none' } }),
|
13144
13151
|
React.createElement("div", { style: {
|
13145
13152
|
position: 'absolute',
|
@@ -13216,7 +13223,7 @@ const FingerSwipeTip = ({ imageUrl, style }) => {
|
|
13216
13223
|
* @Author: binruan@chatlabs.com
|
13217
13224
|
* @Date: 2024-03-20 10:27:31
|
13218
13225
|
* @LastEditors: binruan@chatlabs.com
|
13219
|
-
* @LastEditTime: 2024-
|
13226
|
+
* @LastEditTime: 2024-06-24 10:37:19
|
13220
13227
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\PictureGroup\Picture.tsx
|
13221
13228
|
*
|
13222
13229
|
*/
|
@@ -13256,7 +13263,7 @@ const Picture = (props) => {
|
|
13256
13263
|
transform: translateY,
|
13257
13264
|
left: 0,
|
13258
13265
|
right: 0
|
13259
|
-
} }))));
|
13266
|
+
}, onLoad: onShowFirstImage }))));
|
13260
13267
|
};
|
13261
13268
|
|
13262
13269
|
/*
|