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 CHANGED
@@ -13127,7 +13127,14 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
13127
13127
  if (!(sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.placeholder_image) || isLoadFinish) {
13128
13128
  return null;
13129
13129
  }
13130
- return (React.createElement("img", { style: { position: 'absolute', left: 0, top: 0, width: '100%', height: '100%', objectFit: 'cover' }, src: sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.placeholder_image, alt: 'placeholder image' }));
13130
+ return (React.createElement("img", { style: {
13131
+ position: 'absolute',
13132
+ left: 0,
13133
+ top: 0,
13134
+ width: '100%',
13135
+ height: '100%',
13136
+ objectFit: 'cover'
13137
+ }, src: sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.placeholder_image, alt: 'placeholder image' }));
13131
13138
  }, [isLoadFinish, sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.placeholder_image]);
13132
13139
  const renderLoading = React.useMemo(() => {
13133
13140
  if (!waiting || !isLoadFinish)
@@ -13162,7 +13169,7 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
13162
13169
  return null;
13163
13170
  }
13164
13171
  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) },
13165
- !isBgColor && (React.createElement(FormatImage$1, { src: blurBgSrc, style: Object.assign({ height: '100%', width: '100%', objectFit: 'cover' }, blurStyle) })),
13172
+ !isBgColor && isLoadFinish && (React.createElement(FormatImage$1, { src: blurBgSrc, style: Object.assign({ height: '100%', width: '100%', objectFit: 'cover' }, blurStyle) })),
13166
13173
  React.createElement("canvas", { ref: canvasRef, style: { display: 'none' } }),
13167
13174
  React.createElement("div", { style: {
13168
13175
  position: 'absolute',
@@ -13239,7 +13246,7 @@ const FingerSwipeTip = ({ imageUrl, style }) => {
13239
13246
  * @Author: binruan@chatlabs.com
13240
13247
  * @Date: 2024-03-20 10:27:31
13241
13248
  * @LastEditors: binruan@chatlabs.com
13242
- * @LastEditTime: 2024-04-30 18:36:47
13249
+ * @LastEditTime: 2024-06-24 10:37:19
13243
13250
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\PictureGroup\Picture.tsx
13244
13251
  *
13245
13252
  */
@@ -13279,7 +13286,7 @@ const Picture = (props) => {
13279
13286
  transform: translateY,
13280
13287
  left: 0,
13281
13288
  right: 0
13282
- } }))));
13289
+ }, onLoad: onShowFirstImage }))));
13283
13290
  };
13284
13291
 
13285
13292
  /*