pb-sxp-ui 1.0.49 → 1.0.50

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/pb-ui.js CHANGED
@@ -12133,13 +12133,15 @@ Made in Italy` })));
12133
12133
  }, [bffEventReport, data, index, isFirstPlay, videoRef]);
12134
12134
  const handLoadeddata = React.useCallback(() => {
12135
12135
  var _a;
12136
- if (!videoRef || isBgColor || firstFrameSrc || !blur)
12136
+ if (!videoRef || firstFrameSrc || !blur)
12137
12137
  return;
12138
12138
  const videoDomRef = document.getElementById('player-container-id_html5_api');
12139
- if (((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.cover) || !canvasRef || !videoDomRef || !canvasRef.current)
12139
+ if (!videoDomRef)
12140
+ return;
12141
+ videoDomRef.style.objectFit = 'contain';
12142
+ if (((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.cover) || !canvasRef || !canvasRef.current || isBgColor)
12140
12143
  return;
12141
12144
  const setFrameImg = () => {
12142
- videoDomRef.style.objectFit = 'contain';
12143
12145
  const video = videoDomRef;
12144
12146
  const canvas = canvasRef === null || canvasRef === void 0 ? void 0 : canvasRef.current;
12145
12147
  const ctx = canvas.getContext('2d');
@@ -12651,7 +12653,7 @@ Made in Italy` })));
12651
12653
  * @Author: binruan@chatlabs.com
12652
12654
  * @Date: 2024-01-15 19:03:09
12653
12655
  * @LastEditors: binruan@chatlabs.com
12654
- * @LastEditTime: 2024-04-30 15:43:40
12656
+ * @LastEditTime: 2024-04-30 16:16:05
12655
12657
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
12656
12658
  *
12657
12659
  */
@@ -12825,9 +12827,9 @@ Made in Italy` })));
12825
12827
  if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.logoUrl) && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowLogo)) {
12826
12828
  minusHeight += 45;
12827
12829
  }
12828
- if (tagList.length > 0) {
12829
- minusHeight += 45;
12830
- }
12830
+ // if (tagList.length > 0) {
12831
+ // minusHeight += 45;
12832
+ // }
12831
12833
  return containerHeight - minusHeight;
12832
12834
  }, [globalConfig, containerHeight, tagList]);
12833
12835
  const renderLogo = React.useMemo(() => {